Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Audio record streamlit

This streamlit component allows to register an audio utterence from a user.

Installation

pip install audio-recorder-streamlit

Usage

import streamlit as st
from audio_recorder_streamlit import audio_recorder

audio_bytes = audio_recorder()
if audio_bytes:
    st.audio(audio_bytes, format="audio/wav")

Recording parameters

You can adjust the recording parameters energy_threshold and pause_threshold:

  • energy_threshold: The energy recording sensibility above which we consider that the user is speaking.
  • pause_threshold: The number of seconds to spend below energy_level to automatically stop the recording.
# The recording will stop automatically
# 2 sec after the utterance end
audio_bytes = audio_recorder(pause_threshold=2.0)

Styling parameters

You can adjust the button style parameters:

audio_bytes = audio_recorder(
    recording_color="#e8b62c",
    neutral_color="#6aa36f",
    icon_name="user",
    icon_size="6x",
)

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

File details

Details for the file audio_recorder_streamlit-0.0.6.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for audio_recorder_streamlit-0.0.6.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 28b6a1620b1723ac028d7c7f329ce3a23469e8397e645b1749d3f569488416a9
MD5 39ead46b3542c7b6e8909806439db7e9
BLAKE2b-256 20c313ea14a9c4bf8f06f542f55c28ffc8bacbe324223ce80c08bbebee56b875

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

This release

0.0.6.dev0 This release

1 file

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page