Spaces:
Sleeping
Sleeping
added raw
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ if (len(audio) != st.session_state['length']):
|
|
60 |
st.session_state['length'] = len(audio)
|
61 |
# wav_file = open("audio.mp3", "wb")
|
62 |
# wav_file.write(audio.tobytes())
|
63 |
-
transcript = openai.Audio.
|
64 |
transcript["text"]
|
65 |
st.session_state['vignette'] += transcript["text"]
|
66 |
|
|
|
60 |
st.session_state['length'] = len(audio)
|
61 |
# wav_file = open("audio.mp3", "wb")
|
62 |
# wav_file.write(audio.tobytes())
|
63 |
+
transcript = openai.Audio.translate_raw("whisper-1", audio.tobytes(), filename = '1.mp3')
|
64 |
transcript["text"]
|
65 |
st.session_state['vignette'] += transcript["text"]
|
66 |
|