Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ if audio:
|
|
25 |
audio_data = np.frombuffer(audio['bytes'], dtype=np.int16)
|
26 |
|
27 |
# Convert audio to text
|
28 |
-
transcription = audio_to_text(audio_data)
|
29 |
|
30 |
# Display the transcription
|
31 |
st.write("Transcription:", transcription)
|
|
|
25 |
audio_data = np.frombuffer(audio['bytes'], dtype=np.int16)
|
26 |
|
27 |
# Convert audio to text
|
28 |
+
transcription = audio_to_text(audio_data,audio['sample_rate'])
|
29 |
|
30 |
# Display the transcription
|
31 |
st.write("Transcription:", transcription)
|