Hi community,
I released a new version of streamlit-webrtc
, v0.20.0, with (experimental) audio support.
I added some samples to the example app which deal with audio streams: https://share.streamlit.io/whitphx/streamlit-webrtc-example/main/app.py
However I don’t have experience of audio/signal processing and some samples are just copied from the web… I want someone who are familiar with this field to help create better examples or consider more useful API
I also created a real time Speech-to-Text app: https://share.streamlit.io/whitphx/streamlit-stt-app/main/app_deepspeech.py , which I think is very impressive example utilizing audio capability of this new version of streamlit-webrtc
(The STT functionality is based on DeepSpeech).
(The generated text is not much precise probably because of my non-native English and sound environment such as microphone )
The source code is here.
For developers who have been using streamlit-webrtc
, please note that some breaking changes have been introduced in this version. VideoTransformerBase
class and its transform()
method are now deprecated and will be removed. Please use VideoProcessorBase
and its recv()
instead. For further info, check app.py.