doevent commited on
Commit
60444aa
1 Parent(s): 3d8fc15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,8 +6,6 @@ import time
6
 
7
  logging.basicConfig(level=logging.INFO)
8
 
9
- # TTS with on the fly voice conversion
10
- api = TTS("tts_models/deu/fairseq/vits", gpu=False)
11
  count = 0
12
 
13
 
@@ -18,7 +16,9 @@ def audio_tts(txt, audio_file):
18
  time.sleep(5)
19
  os.system("rm -R /tmp/*")
20
  count = 0
21
-
 
 
22
  api.tts_with_vc_to_file(txt,
23
  speaker_wav=audio_file,
24
  file_path="ouptut.wav")
 
6
 
7
  logging.basicConfig(level=logging.INFO)
8
 
 
 
9
  count = 0
10
 
11
 
 
16
  time.sleep(5)
17
  os.system("rm -R /tmp/*")
18
  count = 0
19
+
20
+ # TTS with on the fly voice conversion
21
+ api = TTS("tts_models/ru/fairseq/vits", gpu=False)
22
  api.tts_with_vc_to_file(txt,
23
  speaker_wav=audio_file,
24
  file_path="ouptut.wav")