Skip to content

Issue on Pyaudio_Test.ipynb #1

Description

@blinkomaniak

These lines:

stream = p.open(format=p.get_format_from_width(wf.getsampwidth()), channels=wf.getnchannels(), rate=wf.getframerate(), output=True, stream_callback=callback)

produces this error:


OSError Traceback (most recent call last)
in
3 rate=wf.getframerate(),
4 output=True,
----> 5 stream_callback=callback)

~/anaconda3/lib/python3.7/site-packages/pyaudio.py in open(self, *args, **kwargs)
748 """
749
--> 750 stream = Stream(self, *args, **kwargs)
751 self._streams.add(stream)
752 return stream

~/anaconda3/lib/python3.7/site-packages/pyaudio.py in init(self, PA_manager, rate, channels, format, input, output, input_device_index, output_device_index, frames_per_buffer, start, input_host_api_specific_stream_info, output_host_api_specific_stream_info, stream_callback)
439
440 # calling pa.open returns a stream object
--> 441 self._stream = pa.open(**arguments)
442
443 self._input_latency = self._stream.inputLatency

OSError: [Errno -9996] Invalid output device (no default output device)

What migth be the cause?
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions