Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem: At present, the Audio widget can play a .wav, numpy data among others. However, once initialized, we cannot interact with this Widget through code. This is a problem when creating e.g. an interactive audio dashboard.
Solution: By adding an
With this pull request, you can do the following:
Output: Audio widget
Result: Code controlled audio play
While this solution allows for Audio widget interaction, such as 'play', 'pause' and 'currentTime' (seeking), it might be more desirable that this is implemented at a Widget level.
@NumesSanguis independently of this PR, you may be interested in the
Advantages is that you can put them in widget layouts, and data is passed as a binary buffer instead of a base64 encoded buffer over the wire.
Finally, combine with ipywebrtc, you can use it to record audio channel of video stream, stream it back etc...