bambocher / pocketsphinx-python

Python interface to CMU Sphinxbase and Pocketsphinx libraries
https://pypi.python.org/pypi/pocketsphinx
Other
373 stars 187 forks source link

audio_device selection in Livespeech #23

Open saibharani opened 7 years ago

saibharani commented 7 years ago

I want to do keyword recognition from a specific mic. Can you tell me how to do audio_device selection. I want to select audio_device with index 2. Thank you.

ismailryt commented 4 years ago

@Ozer0 actually no error right now, but now my problem is LiveSpeech cant recognize anything.. When i use http://blog.justsophie.com/python-speech-to-text-with-pocketsphinx/ decode method, it can recognize 1 word then input over flowed because my raspberry pi cpu too slow

So my last hope is using LiveSpeech, im wondering why no error but cant recognize anything, when I use pocketsphinx_continuous, it works can record my word and can give me output. Can you help me

Ozer0 commented 4 years ago

@Ozer0 actually no error right now, but now my problem is LiveSpeech cant recognize anything.. When i use http://blog.justsophie.com/python-speech-to-text-with-pocketsphinx/ decode method, it can recognize 1 word then input over flowed because my raspberry pi cpu too slow

So my last hope is using LiveSpeech, im wondering why no error but cant recognize anything, when I use pocketsphinx_continuous, it works can record my word and can give me output. Can you help me

Well, gotta say I used LiveSpeech in a Raspberry Zero so i don't think the CPU is your problem. What it could be is you have to use an infinite loop, are you using that on your python code? You can see part of my code above these answers

ismailryt commented 4 years ago

@Ozer0 i find the another solution! I use decode method not using LiveSpeech and can do hotword after that give intruction to system. Thanks for this thread and all of you guys, really helped me