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 PyPI version GitHub license PyPI - Downloads

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:
    # display audio data as received on the backend
    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-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

streamlit_audiorec-0.1.1-py3-none-any.whl (872.8 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-audiorec-0.1.1.tar.gz.

File metadata

  • Download URL: streamlit-audiorec-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.3 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

File hashes

Hashes for streamlit-audiorec-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3424565f27a9c8b3ab439af91fc0f846de0d577f133b8225d76e346ec81e05e9
MD5 b26ef02271cf8aeca1616a42d4dfe355
BLAKE2b-256 4aac3af05f7c458340774a15035c0f4eca6d559c41f78498a988a8600c062756

See more details on using hashes here.

File details

Details for the file streamlit_audiorec-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: streamlit_audiorec-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 872.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.3 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

File hashes

Hashes for streamlit_audiorec-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a0c8e32460f7a6484d310fc3a2d6d958bb8b57fc17b8123eb46dca46e02954
MD5 f054a88d16df78aa084301c7f2c23e3c
BLAKE2b-256 877c79e4f7ac54e4e1cd4ae629b96046f56023f263dfb17699d736db6f0b4cee

See more details on using hashes here.

Supported by

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