Skip to main content

DeepSpeech as a (Docker) Service for IBus

This repository includes the following:

  • a Docker container that can run DeepSpeech hardware-accelerated by your host OS's (nVidia) graphics card; the container reads audio from a pipe and reports results to an event
  • an IBus Engine that allows the reslts of the recognition to be treated as regular input to the (Linux) host operating system

Installation/Setup

git clone https://github.com/mcfletch/deepspeech-docker.git
cd deepspeech-docker

Starting the daemon in a docker container:

./recogpipe/dockersetup.py
# when docker container is started...
./recogpipe/daemon.py

Feeding some data into the daemon from your microphone:

ffmpeg-audio.sh 

Feeding some data into the daemon from a wav file:

ffmpeg-sample.sh path/to/your/file.wav

Running the IBus daemon on your desktop:

./recogpipe/ibusengine.py

Testing bits out...

Sending audio to the daemon

./ffmpeg-audio.sh hw:1,1
./ffmpeg-sample.sh /path/to/some.wav

Viewing the raw transcripts from the daemon

nc -U /tmp/dspipe/events

Running the ibus engine interactively:

./ibusengine.py

PyPI Version

Metadata

Release files for recogpipe 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recogpipe 0.1.0
File Size Uploaded
recogpipe-0.1.0.tar.gz 1.2 MB Details

Release files / recogpipe-0.1.0.tar.gz

Download URL recogpipe-0.1.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
e77f670af956b831e731b0cc4eab9dffa5541cc4af90b8df152ec77c1570d2f4
BLAKE2b-256 checksum
How to use checksums
040442694ac91c43931fc3dc06eec57e331db6302b0834cb3e6a8447f4903370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page