3

The answer to this question provides some useful code for recording an audio file in a Python program.

However, this does not seem to work in a Jupyter Notebook. It would seem that in this case the audio input of the server machine is used and not the audio input of the web browser.

Is there a way to record audio in a Jupyter Notebook?

Stefan Falk
  • 23,898
  • 50
  • 191
  • 378

1 Answers1

3

This can be done with IPyWebRTC: https://ipywebrtc.readthedocs.io/en/latest/

You could use the Camera Stream to attach to the browsers webcam capabilities and record audio from there.

james.nadeau
  • 86
  • 1
  • 8