-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue on Pyaudio_Test.ipynb #1
Comments
Blinkomaniak,
To me it looks like you may have not specified a proper input and/or output device.
If you are on Windows the device listing is fairly extensive. On macOS the listing is very short.
I have a variety of course project that have sample Jupyter notebooks that begin with a checkout of the pyaudio_helper interface. Some samples are also included in the GitHub repo. Consider this https://scikit-dsp-comm.readthedocs.io/en/latest/nb_examples/Real-Time-DSP_Using_pyaudio_helper_and_ipywidgets.html example notebook. This IPYNB document is under docs/source/nb_examples/.
On a Win10 machine for example you might see:
[cid:image001.png@01D59E5C.DE0F1D50]
In this scenario I pick 1 as the input device index and 3 as the output device index:
[cid:image002.png@01D59E5C.DE0F1D50]
Other recent examples can be found at http://www.eas.uccs.edu/~mwickert/ece5650/notes/Python_Projects/Project1_f2019.zip and http://www.eas.uccs.edu/~mwickert/ece4680/lecture_notes/Audio_Record_Playback.zip .
Mark Wickert
From: blinkomaniak <notifications@github.com>
Sent: Saturday, November 16, 2019 11:00 PM
To: mwickert/SP-Comm-Tutorial-using-scikit-dsp-comm <SP-Comm-Tutorial-using-scikit-dsp-comm@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [mwickert/SP-Comm-Tutorial-using-scikit-dsp-comm] Issue on Pyaudio_Test.ipynb (#1)
This 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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#1?email_source=notifications&email_token=AC74UBWE4NXTHUUC3QR2LMLQUDMWTA5CNFSM4JOIL6JKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZ2W2EA>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC74UBQKCZ5IRDBSOZ6ZTULQUDMWTANCNFSM4JOIL6JA>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: