Category : alsa

I’m using ubuntu 18.04 and trying to make an assistant speech recognition with python so I have a couple of weeks struggling with this problem at first it was : alSA lib confmisc.c:767:(parse_card) cannot find card ‘0’ then I solved it by changing alsa_config file but I’m still getting this : ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable ..

Read more

I want to write a game using pygame that is able to produce text-to-speech output. I found the package "pyttsx3", which works fine on its own, e.g. like this: import pyttsx3 engine = pyttsx3.init() engine.say("abc") engine.runAndWait() However, I can’t get it to work together with pygame: import pygame import pyttsx3 pygame.init() engine = pyttsx3.init() engine.say("abc") ..

Read more

I am using a speech recognition module. But when i output this code import speech_recognition as sr import pyttsx3 engine = pyttsx3.init() listner = sr.Recognizer() try: with sr.Microphone() as source: voice = listner.listen(source) command = listner.recognize_google(voice) engine.say(command) engine.runAndWait() print(command) except ValueError: pass i get this error, ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib ..

Read more