Skip to main content

server for mozilla deepspeech

Project description

# DeepSpeech Server

This is an http server that can be used to test the mozilla DeepSpeech project.
You need an environment with DeepSpeech and a model to run this server.

## Installation

You first need to install deepspeech. Depending on your system you can use the
CPU package:

pip3 install deepspeech

Or the GPU package:

pip3 install deepspeech-gpu

Then you can install the deepspeech server:

python3 setup.py install

The server is also available on pypi, so you can install it with pip:

pip3 install deepspeech-server


## Starting the server

deepspeech-server --config config.json

You can use deepspeech without training a model yourself. Pre-trained
models are provided by Mozilla in the release page of the project (See the
download section at the bottom):

https://github.com/mozilla/DeepSpeech/releases

### Server configuration

The configuration is done with a json file, provided with the "--config" argument.
Its structure is the following one:

{
"deepspeech": {
"model" :"model.pb",
"alphabet": "alphabet.txt",
"lm": "lm.binary",
"trie": "trie"
}
}

where:

__model__ is the protobuf model that was generated by deepspeech

__alphabet__ is the alphabet dictionary (as available in the "data" directory of
the DeepSpeech sources).

__lm__ is the language model.

__trie__ is the trie file.

## Using the server

Inference on the model is done via http post requests. For example with the
following curl command:

curl -X POST --data-binary @[myfile.wav] http://localhost:8000/stt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepspeech-server-0.3.0.zip (10.8 kB view details)

Uploaded Source

File details

Details for the file deepspeech-server-0.3.0.zip.

File metadata

File hashes

Hashes for deepspeech-server-0.3.0.zip
Algorithm Hash digest
SHA256 fbf4b539178c2aa7b75e5143dda22354854189d797c3bdbfbbdff86f270e82c1
MD5 8b21e77aaee10c9c0a04096c835d7682
BLAKE2b-256 e83959a40c5101b52799931d887e51b8a1d05b4c41a5f7cdf36d8c24ce36409f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page