Spaces:
Sleeping
Sleeping
abdullahedcults
commited on
Commit
•
ab03346
1
Parent(s):
1e507fc
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def transcribe(audio):
|
|
45 |
def main():
|
46 |
st.title("Translate and Transcribe Audio")
|
47 |
|
48 |
-
|
49 |
st.write("The transcribed text will be displayed below.")
|
50 |
|
51 |
uploaded_file = st.file_uploader("Upload your recording (WAV format)", type=["wav"])
|
@@ -66,6 +66,9 @@ def main():
|
|
66 |
# Remove the temporary audio file
|
67 |
os.remove(audio_path)
|
68 |
|
|
|
|
|
|
|
69 |
audio_bytes = audio_recorder()
|
70 |
if audio_bytes:
|
71 |
st.audio(audio_bytes, format="audio/wav")
|
|
|
45 |
def main():
|
46 |
st.title("Translate and Transcribe Audio")
|
47 |
|
48 |
+
|
49 |
st.write("The transcribed text will be displayed below.")
|
50 |
|
51 |
uploaded_file = st.file_uploader("Upload your recording (WAV format)", type=["wav"])
|
|
|
66 |
# Remove the temporary audio file
|
67 |
os.remove(audio_path)
|
68 |
|
69 |
+
st.subheader("Or Try by Recording Custom Audio")
|
70 |
+
st.write("Click the 'Start Recording' button to start recording your voice. Press 'Stop Recording' when done.")
|
71 |
+
|
72 |
audio_bytes = audio_recorder()
|
73 |
if audio_bytes:
|
74 |
st.audio(audio_bytes, format="audio/wav")
|