Speech to text on Linux
I got tired of wrist pain and hand pain when typing on the computer but my main computer is linux so it's difficult to find good software for speech recognition but i did a simple search on the internet and found a couple of terminal programs that are open source and decided to stall one of these: julius.
https://github.com/julius-speech/julius
The paragraph above was written entirely with my new terminal script dictate
that I made to wrap Julius.
Install Julius by following the readme.md
very carefully. And then put this script in your ~/.bashrc
(but careful to replace also THEUSER/PATH/TO
):
function dictate {
MODEL=/home/THEUSER/PATH/TO/julius-english-model
/home/THEUSER/PATH/TO/julius/julius/julius -C $MODEL/mic.jconf -dnnconf $MODEL/dnn.jconf | sed '/^sentence1/! s/^.*$//; s/sentence1: <s> //; s:</s>$::'
}
And your mic.jconf
should be:
-input mic
-htkconf wav_config
-h ENVR-v5.3.am
-hlist ENVR-v5.3.phn
-d ENVR-v5.3.lm
-v ENVR-v5.3.dct
-b 4000
-lmp 12 -6
-lmp2 12 -6
-fallback1pass
-multipath
-iwsp
-iwcd1 max
-spmodel sp
-no_ccd
-nolog
-quiet
-progout
-sepnum 150
-b2 360
-n 40
-s 2000
-m 8000
-lookuprange 5
-sb 80
-forcedict