Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
# Parameters
|
11 |
# The signature of the component is:
|
12 |
# audiorecorder(start_prompt="Start recording", stop_prompt="Stop recording", pause_prompt="", key=None):
|
13 |
-
# The prompt parameters are self-explanatory, and the
|
14 |
# to properly distinguish multiple audiorecorders on the page.
|
15 |
#
|
16 |
# Return value
|
@@ -32,7 +32,8 @@ import streamlit as st
|
|
32 |
from audiorecorder import audiorecorder
|
33 |
|
34 |
st.title("Audio Recorder")
|
35 |
-
|
|
|
36 |
|
37 |
if len(audio) > 0:
|
38 |
# To play audio in frontend:
|
|
|
10 |
# Parameters
|
11 |
# The signature of the component is:
|
12 |
# audiorecorder(start_prompt="Start recording", stop_prompt="Stop recording", pause_prompt="", key=None):
|
13 |
+
# The prompt parameters are self-explanatory, and the optional key parameter is used internally by streamlit
|
14 |
# to properly distinguish multiple audiorecorders on the page.
|
15 |
#
|
16 |
# Return value
|
|
|
32 |
from audiorecorder import audiorecorder
|
33 |
|
34 |
st.title("Audio Recorder")
|
35 |
+
# audiorecorder(start_prompt="Start recording", stop_prompt="Stop recording", pause_prompt="", key=None):
|
36 |
+
audio = audiorecorder("Click to record", "Click to stop recording", "Click to pause recording")
|
37 |
|
38 |
if len(audio) > 0:
|
39 |
# To play audio in frontend:
|