tuna2134 commited on
Commit
2397c99
1 Parent(s): bc2d42e
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -9,8 +9,7 @@ model.load_sbv2file_from_path("amitaro", "models/amitaro.sbv2")
9
 
10
 
11
  def generate(text):
12
- style_vector = model.get_style_vector("amitaro", 0, 1.0)
13
- wav_data = model.synthesize(text, "amitaro", style_vector, 0.0, 0.5)
14
  byte_io = io.BytesIO(wav_data)
15
  sr, data = wavfile.read(byte_io)
16
  return sr, data
 
9
 
10
 
11
  def generate(text):
12
+ wav_data = model.synthesize(text, "amitaro", 0, 0.0, 0.5)
 
13
  byte_io = io.BytesIO(wav_data)
14
  sr, data = wavfile.read(byte_io)
15
  return sr, data