aurelben commited on
Commit
0039692
1 Parent(s): 65c92b6

change whisper version

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", split_sentences=True)
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="en",split_sentences=True)
83
  audio = "./output.wav"
84
  return stream, text, audio
85