Spaces:
Sleeping
Sleeping
change whisper version
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def process_audio(input_audio, new_chunk):
|
|
79 |
text = autocomplete(transcription)
|
80 |
print (transcription, text)
|
81 |
api = TTS(model_name="tts_models/multilingual/multi-dataset/xtts_v2").to(device)
|
82 |
-
api.tts_to_file(text, file_path="output.wav", speaker="Ana Florence",language="
|
83 |
audio = "./output.wav"
|
84 |
return stream, text, audio
|
85 |
|
|
|
79 |
text = autocomplete(transcription)
|
80 |
print (transcription, text)
|
81 |
api = TTS(model_name="tts_models/multilingual/multi-dataset/xtts_v2").to(device)
|
82 |
+
api.tts_to_file(text, file_path="output.wav", speaker="Ana Florence",language="fr",split_sentences=True)
|
83 |
audio = "./output.wav"
|
84 |
return stream, text, audio
|
85 |
|