|
From: onkel b. <onk...@gm...> - 2013-01-29 17:01:24
|
Hello, i am programming an Voicerobot (in BASH and PERL) who can start PCs, remind me of things, can tell me how the weather is and so on. (like JARVIS in Iron Man) Much more things will be added in future. The Robot is ready, but i have a problem with the record of my voice. For now i record the voice with following command: rec -c 1 -r 16000 -t flac temp/rec$i.flac silence 1 0.1 7% 2 1.0 5% (the flac format and 16k rate is given by the speech-to-text engine) The recording of the voice work in a loop because he should listen all the time and not when i push a button or something else. This work good in close ranges to the microphone. But when i go far away the speech-to-text engine isn't able to understand me. Because the speech-to-text engine is in the internet, i build a filter just send records where voice is supposed. I grep the "Rough frequency:" value of following command: sox temp/rec$i.flac -n stat Now my questions: Is there a way to determine if the voice is near or far away and when its far away, boost the voice frequency or something like that? Is there a better way to determine weather there is voice in my record? Do you have some other hints for my project? |