lalalic commited on
Commit
d16df30
·
verified ·
1 Parent(s): 9036972

Update xtts.py

Browse files
Files changed (1) hide show
  1. xtts.py +6 -0
xtts.py CHANGED
@@ -39,6 +39,12 @@ except:
39
 
40
  tts=None
41
  model=None
 
 
 
 
 
 
42
  @app.route("/convert")
43
  def predict():
44
  global tts
 
39
 
40
  tts=None
41
  model=None
42
+
43
+ TTS=import_module("TTS.api").TTS
44
+ model_name="tts_models/multilingual/multi-dataset/xtts_v2"
45
+ tts = TTS(model_name=model_name)
46
+ model=tts.synthesizer.tts_model
47
+
48
  @app.route("/convert")
49
  def predict():
50
  global tts