quietnet icon indicating copy to clipboard operation
quietnet copied to clipboard

speech recognition problem in ubuntu

Open mahmoudibra96 opened this issue 5 years ago • 0 comments

i try this code import speech_recognition as sr r=sr.Recognizer() with sr.Microphone() as source: print("Speak any thing") audio = r.listen(source)

try:
    text=r.recognize_google(audio)
    print('You said: {}'.format(text))
except:
    print("Sorry Can not Recognise your voice")

and got this problem ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Speak any thing

mahmoudibra96 avatar Mar 28 '20 19:03 mahmoudibra96