4 ms·
> 1. I want to teach it ten words. How do I do this? I'm assuming you mean "my target vocabulary is only ten words". In that case, you have a couple of options
by reubenmorais 7y ago
> 1. I want to teach it ten words. How do I do this?
I'm assuming you mean "my target vocabulary is only ten words". In that case, you have a couple of options:
1. Just use it as is and see how it does.
2. Create a language model containing just those 10 words so that the engine is constrained to that vocabulary, which should improve accuracy.
3. Train a (smaller) model from scratch, which requires (audio, transcript) pairs. This is basically research work, there's no recipe you can just follow. The advantage is that if you can make it work, it can be a much smaller model than a model trained for general English dictation.
> 2. I want to speak into my microphone (available as a Pulseaudio device) and recognise the words and output the words as a text stream on stdout. How do I do this?
We have a few examples with microphone input, but they're all based on voice activity detection: https://github.com/mozilla/DeepSpeech/tree/master/examples https://github.com/mozilla/DeepSpeech/tree/master/examples
I should write an example that is just continuous streaming and output without any voice activity detection.
I'd be happy to discuss further on Discourse: https://discourse.mozilla.org/c/deep-speech https://discourse.mozilla.org/c/deep-speech
- na85 7y ago>Just use it as is and see how it does. How? The docs seem to be suffering from the same problem as the git docs: they assume the reader is already a domain expert, which would seem to run counter to the stated goal of being simple (and ubiquitous). I tried to figure out how to "just use" deepspeech and failed.
- reubenmorais 7y agoThere's a basic example here transcribing from an audio file: https://github.com/mozilla/DeepSpeech/tree/v0.6.0/#project-deepspeech https://github.com/mozilla/DeepSpeech/tree/v0.6.0/#project-d... There are also examples transcribing from the microphone as I mentioned above: https://github.com/mozilla/DeepSpeech/tree/master/examples/ https://github.com/mozilla/DeepSpeech/tree/master/examples/ I also have a small GUI example here [0], click once to start recording, once again to stop and show transcript. It receives the same command line arguments as the ones shown in the README link above (namely --model, --lm and --trie). The README starts with a very basic installation and usage guide, I don't see how that's assuming any expertise. [0] https://github.com/reuben/ds-qttest https://github.com/reuben/ds-qttest
- mncharity 7y ago> There are also examples Fyi, the other 4 example links there are 404. Also in the root README. The linked README's are missing, or diversely suffixed and mislinked.
- sgt101 7y agoYou are right, and I expect Reuben and team will fix this and are grateful for the heads up. I was able to find the right links though, for example the WAV transcriber is at : https://github.com/mozilla/DeepSpeech/blob/v0.6.0/examples/vad_transcriber/wavTranscription.md https://github.com/mozilla/DeepSpeech/blob/v0.6.0/examples/v...
- mncharity 7y ago(Nod. I may have edited that out from under you - sorry. And thanks.)
- reubenmorais 7y agoUgh, sorry. I fixed it on master. We'll probably cut a v0.6.1 soon to publish small fixes like these.
- mncharity 7y agoThanks for all your work - it's appreciated.