clementruhm commited on
Commit
e0cceab
1 Parent(s): 0f11bd1

app.py: accompany for variable sampling rate of models

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def main():
87
  if len(text_str) > 1024:
88
  text_str = text_str[:1024]
89
  samples = cast(TTS, tts).synthesize(text_str, speaker_str)
90
- return gr.Audio.update(value=(24000, samples))
91
 
92
  generate.click(synthesize_audio, inputs=[text, speaker], outputs=audio)
93
 
 
87
  if len(text_str) > 1024:
88
  text_str = text_str[:1024]
89
  samples = cast(TTS, tts).synthesize(text_str, speaker_str)
90
+ return gr.Audio.update(value=(cast(TTS, tts).get_sampling_rate(), samples))
91
 
92
  generate.click(synthesize_audio, inputs=[text, speaker], outputs=audio)
93