No project description provided
Project description
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")
Advanced 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 belowenergy_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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
audio-recorder-streamlit-0.0.5.tar.gz
(505.3 kB
view hashes)
Built Distribution
Close
Hashes for audio-recorder-streamlit-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35a84265e5fe4f4ca41d12e1b3a4f4f1ce9a6e0d19a45a0b30716fc3a42983f2 |
|
MD5 | d47c93cf5b5452849a4f871991a5d6b2 |
|
BLAKE2b-256 | de81620822374cca90721f5a45ee7f832c586641ca4a7c8fba462e9f0bf14ecd |
Close
Hashes for audio_recorder_streamlit-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c35d1768f2da4d06a04a415f9cf726dbbf0a4b3b1c2eac15ed40d4cabc5e469 |
|
MD5 | f0919327a0c56887d9c8fe547d1f3e56 |
|
BLAKE2b-256 | 6fbe6c10e1031b7643bb25c63c428084186ba6f8490417725e399a5d7c7fa351 |