DeepSpeech/client
2016-12-01 17:29:34 +01:00
..
BUILD Write a Tensorflow Serving client 2016-11-08 11:45:28 +01:00
deepspeech_client.py Make Tensorflow Serving APIs available out of tree 2016-12-01 17:29:34 +01:00
README.md Add a demos directory with two speech recognition demos 2016-11-30 18:15:22 +00:00

DeepSpeech client

A client for running queries on an exported DeepSpeech model.

Requirements

Building

Create a symbolic link in the Tensorflow Serving checkout to the deepspeech client directory.

cd serving
ln -s ../DeepSpeech/client ./deepspeech_client

If you haven't already, you'll need to build the Tensorflow Server.

bazel build -c opt //tensorflow_serving/model_servers:tensorflow_model_server

Then you can build the DeepSpeech client.

bazel build -c opt //deepspeech_client

Running

Start a server running an exported DeepSpeech model.

bazel-bin/tensorflow_serving/model_servers/tensorflow_model_server --port=9000 --model_name=deepspeech --model_base_path=/path/to/deepspeech/export

Now run the client.

bazel-bin/deepspeech_client/deepspeech_client --server=localhost:9000 --file=/path/to/audio.wav