try updating the recorder
Browse files- app.py +3 -3
- requirements.txt +1 -0
app.py
CHANGED
@@ -4,7 +4,7 @@ import datetime
|
|
4 |
import streamlit as st
|
5 |
from asr import load_model, inference
|
6 |
from audio_recorder_streamlit import audio_recorder
|
7 |
-
|
8 |
|
9 |
@st.cache_resource
|
10 |
def load_asr_model():
|
@@ -45,12 +45,12 @@ def transcribe_audio(file_path):
|
|
45 |
def main():
|
46 |
"""
|
47 |
"""
|
48 |
-
st.title("
|
49 |
tab1, tab2 = st.tabs(["Record Audio", "Upload Audio"])
|
50 |
|
51 |
# Record Audio tab
|
52 |
with tab1:
|
53 |
-
audio_bytes = audio_recorder()
|
54 |
if audio_bytes:
|
55 |
st.audio(audio_bytes, format="audio/wav")
|
56 |
fname = save_audio_file(audio_bytes, "wav")
|
|
|
4 |
import streamlit as st
|
5 |
from asr import load_model, inference
|
6 |
from audio_recorder_streamlit import audio_recorder
|
7 |
+
from st_audiorec import st_audiorec
|
8 |
|
9 |
@st.cache_resource
|
10 |
def load_asr_model():
|
|
|
45 |
def main():
|
46 |
"""
|
47 |
"""
|
48 |
+
st.title("Xitlahto uan tiquitasqueh mox uilis quihcuilos tlen tiquihtos nin tipostl.")
|
49 |
tab1, tab2 = st.tabs(["Record Audio", "Upload Audio"])
|
50 |
|
51 |
# Record Audio tab
|
52 |
with tab1:
|
53 |
+
audio_bytes = st_audiorec() # audio_recorder()
|
54 |
if audio_bytes:
|
55 |
st.audio(audio_bytes, format="audio/wav")
|
56 |
fname = save_audio_file(audio_bytes, "wav")
|
requirements.txt
CHANGED
@@ -5,3 +5,4 @@ torchaudio
|
|
5 |
streamlit_webrtc
|
6 |
audio_recorder_streamlit
|
7 |
librosa
|
|
|
|
5 |
streamlit_webrtc
|
6 |
audio_recorder_streamlit
|
7 |
librosa
|
8 |
+
streamlit-audiorec
|