语音识别:Jack服务器未运行 [英] speechRecognition: jack server is not running
本文介绍了语音识别:Jack服务器未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Speech Recognitionpython库设置声音识别器。
这是我到目前为止的代码:
#!/usr/bin/env python3
import speech_recognition as sr
r = sr.Recognizer('es-MX')
with sr.Microphone() as mic:
audio = r.listen(mic)
print(r.recognize(audio))
运行时我收到
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_l$
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
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
我使用的是在Linux LXLE 14.04 x64和PYTHON 3.4上运行的SpeechRecognition 1.3.1版
推荐答案
它会告诉您无法在您的设备上录制音频。它与杰克服务器无关,它还试图打开ALSA设备和蓝牙音频设备。确保您的设备上正确设置了音频。另请参阅
PyAudio does not work and bricks sound on ubuntu
PyAudio working, but spits out error messages each time
这篇关于语音识别:Jack服务器未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文