gpt4 book ai didi

python-3.x - 未知 PCM 卡.pcm.rear (pyaudio)

转载 作者:行者123 更新时间:2023-12-04 07:20:27 30 4
gpt4 key购买 nike

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

#!/usr/bin/env python3

import pydub, pydub.playback

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

这段代码引发了我不明白的错误。
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 本身播放得很好。我怎样才能防止这些错误。

最佳答案

删除以下蓝牙包时会删除拒绝的连接(如果您真的想要)sudo apt-get remove bluez-alsa
通过注释掉 /usr/share/alsa/alsa.conf 中的相关行来删除未知的 PCM 卡.

其他我不知道,但你可以从这里开始:PyAudio working, but spits out error messages each time .

关于python-3.x - 未知 PCM 卡.pcm.rear (pyaudio),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31603555/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com