I run a python program that use pyaudio and try to use my computer microphone and speaker, but I got this erorr
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
voice-transformation$ python: src/hostapi/alsa/pa_linux_alsa.c:3636: PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds' failed.
Aborted (core dumped)And this is my python code for starting the stream
def start(self): if self.in_stream is not None and self.out_stream is not None: return try: # Initialize PyAudio for Output self.p_out = pa.PyAudio() self.out_stream = self.p_out.open( format=self.FORMAT, channels=self.CHANNEL_OUTPUT, rate=self.RATE, output=True, frames_per_buffer=self.CHUNK, ) self.out_stream.start_stream() # Initialize PyAudio for Input self.p = pa.PyAudio() self.in_stream = self.p.open( format=self.FORMAT, channels=self.CHANNEL_INPUT, rate=self.RATE, input=True, frames_per_buffer=self.CHUNK, stream_callback=self._process_stream, ) self.in_stream.start_stream() # while self.in_stream.is_active(): # time.sleep(0.1) except KeyboardInterrupt: self.stop() passIs it the erorr from my computer audio for it is from python program?
2 Reset to default