alumae / kaldi-gstreamer-server

Real-time full-duplex speech recognition server, based on the Kaldi toolkit and the GStreamer framwork.
BSD 2-Clause "Simplified" License
1.07k stars 341 forks source link

Online dictation with Microphone #44

Closed MatteoBotta closed 7 years ago

MatteoBotta commented 8 years ago

I work with kaldo-gstreamer-server and system transcribes correctly with different input file.

Now I could try to transcribe in online mode. Is it possible active the streaming audio with microphone in client.py script. For example like the script run_gui.py in voxforge/gst_demo Thanks in Advance

Matteo

skoocda commented 8 years ago

Hi Matteo,

Have you tried Dictate.JS ?

It's probably your best bet, just point it at your locally hosted Kaldi Gstreamer websocket location and then you can stream audio easily through a browser.

alumae commented 7 years ago

The client.py program can now accept microphone audio, see a notice at the beginning of the README.

shaheenkdr commented 4 years ago

@alumae Can we pipe the audio using rec to the python client or to the JS client ? Some insights on that would be immensely helpful. Thanks

alumae commented 4 years ago

Yes, you can pipe audio to python client like this: arecord -f S16_LE -r 16000 | python kaldigstserver/client.py -r 32000 -

shaheenkdr commented 4 years ago

@alumae Cool , thanks ! Also what would be the ideal way to pass RTMP streams to the client? Is it supported

alumae commented 4 years ago

Sorry, you have to figure this out yourself.

maitrungduc1410 commented 4 years ago

Here I have complete and working code for decoding from microphone, python 2 and 3 are supported. Hope this help someone