From 6f3c48c42802b11f58322b20eca564d693b79e0d Mon Sep 17 00:00:00 2001 From: ifr Date: Mon, 3 Dec 2018 13:04:57 +0100 Subject: [PATCH] Create README.MD --- examples/ffmpeg_vad_streaming/README.MD | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 examples/ffmpeg_vad_streaming/README.MD diff --git a/examples/ffmpeg_vad_streaming/README.MD b/examples/ffmpeg_vad_streaming/README.MD new file mode 100644 index 00000000..c7886662 --- /dev/null +++ b/examples/ffmpeg_vad_streaming/README.MD @@ -0,0 +1,29 @@ +# FFmpeg VAD Streaming + +Streaming inference from arbitrary source (FFmpeg input) to DeepSpeech, using VAD (voice activity detection). A fairly simple example demonstrating the DeepSpeech streaming API in Node.js. + +This example was successfully tested with a mobile phone streaming a live feed to a RTMP server (nginx-rtmp), which then could be used by this script for near real time speech recognition. + +## Installation + +```bash +npm install +``` + +Moreover FFmpeg must be installed: + +```bash +sudo apt-get install ffmpeg +``` + +## Usage + +Here is an example for a local audio file: +```bash +node ./index.js --audio --model $HOME/models/output_graph.pbmm --alphabet $HOME/models/alphabet.txt +``` + +Here is an example for a remote RTMP-Stream: +```bash +node ./index.js --audio rtmp://:1935/live/teststream --model $HOME/models/output_graph.pbmm --alphabet $HOME/models/alphabet.txt +```