未知 PCM 卡.pcm.rear (pyaudio) [英] Unknown PCM cards.pcm.rear (pyaudio)

查看:179
本文介绍了未知 PCM 卡.pcm.rear (pyaudio)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题与此pydub-Issue有关.他们告诉我错误信息与 pyaudio 相关.

The question is related to this pydub-Issue. They told me the error message is related to pyaudio.

#!/usr/bin/env python3

import pydub, pydub.playback

wav = pydub.AudioSegment.from_wav('/home/user/complete.wav')
pydub.playback.play(wav)

这段代码引发了我不明白的错误.

This code raise that errors I don't understand.

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_lfe
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)
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

wav 本身播放得很好.我怎样才能防止这些错误.

The wav itself is played well. How can I prevent that errors.

推荐答案

在移除以下蓝牙包时,拒绝的连接会被移除(如果你真的想要)sudo apt-get remove bluez-alsa

Refused connections are removed when removing the following bluetooth package (if you really want to) sudo apt-get remove bluez-alsa

通过注释掉/usr/share/alsa/alsa.conf中的相关行来移除未知的PCM卡.

Unknown PCM cards are removed by commenting out relevant lines in /usr/share/alsa/alsa.conf.

其他我不知道,但你可以从这里开始:PyAudio 工作正常,但每次都吐出错误信息.

The others I don't know about, but you could start looking here: PyAudio working, but spits out error messages each time.

这篇关于未知 PCM 卡.pcm.rear (pyaudio)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆