Unknown PCM cards.pcm.rear (pyaudio)

The question is related to this pydub-Issue . They told me that the error message was 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 causes errors that I do not 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 itself plays well. How can I prevent these errors.

+4
source share
1 answer

Disconnected connections are deleted when you remove the next bluetooth package (if you really want to) sudo apt-get remove bluez-alsa

Unknown PCM cards are deleted by commenting on the corresponding lines in /usr/share/alsa/alsa.conf.

Others that I don’t know about, but you can start looking here: PyAudio works, but it displays error messages every time .

+6
source

Source: https://habr.com/ru/post/1599450/


All Articles