Skip to main content

Record audio from the user's microphone in apps that are deployed to the web. (via Browser Media-API) [GitHub ☆ 160+: steamlit-audio-recorder]

Project description

Streamlit Audio Recorder

Streamlit App Generic badge Generic badge GitHub license

Custom component, implemented by Stefan Rummer,
based on doppelgunner 's Audio-React-Recorder

Screenshot 2022-05-16 at 16 58 36

Features & Specs

  • Manage access to the user's microphone via the browser's Media-API
  • Record, playback and revert audio-recordings in apps deployed to the web
  • Download the final recording to your local system! - WAV, 16 bit, 44.1 kHz
  • Directly return audio recording-data to Python backend! - arrayBuffer format

Setup & How to Use

1. PIP Install the component (download from PyPI)

pip install streamlit-audiorec

2. Import and Initialize the component (at the top of your script)

from st_audiorec import st_audiorec

3. Add an Instance of the audio recorder to your streamlit app's code.

wav_audio_data = st_audiorec()

if wav_audio_data is not None:
    st.audio(wav_audio_data, format='audio/wav')

4. Enjoy recording audio inside your streamlit app! 🎈

Feel free to reach out to me in case you have any questions!
Pls consider leaving a star ☆ with this repository to show your support.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_audiorec_ru_fork-0.1.5.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_audiorec_ru_fork-0.1.5-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_audiorec_ru_fork-0.1.5.tar.gz.

File metadata

File hashes

Hashes for streamlit_audiorec_ru_fork-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8e0c55cc4289b0bbc141655dbe76fac6e709882b5cfa8a2749fdd6fcfebe548c
MD5 dc96d42070aba52301cd20474aec3ada
BLAKE2b-256 215dc5acb58c292ee3c60d86d424e731612cdb521d633baa045adcdc39f2d7c5

See more details on using hashes here.

File details

Details for the file streamlit_audiorec_ru_fork-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_audiorec_ru_fork-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 06bcae67a4e92ec5e72f6e52b6090c112d1d3e9612cdf0d7da37fcdafded1676
MD5 42c999a3b1cc5682d6e7d48424fccd2b
BLAKE2b-256 5c7f3d9a64a6f9b8e7313adf283aa426f45bf79a121c938ad0a90f28451aca62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page