Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def synthesize_speech(text, sentence_silence, length_scale, normalize_text=True)
|
|
51 |
audio_data = np.frombuffer(buffer.read(), dtype=np.int16)
|
52 |
inference_time = time.time() - start
|
53 |
metric_text = f"Time to generate audio: {round(inference_time*1000)} milliseconds\n"
|
54 |
-
return (voice.config.sample_rate, audio_data),
|
55 |
|
56 |
|
57 |
with gr.Blocks(analytics_enabled=False) as demo:
|
|
|
51 |
audio_data = np.frombuffer(buffer.read(), dtype=np.int16)
|
52 |
inference_time = time.time() - start
|
53 |
metric_text = f"Time to generate audio: {round(inference_time*1000)} milliseconds\n"
|
54 |
+
return (voice.config.sample_rate, audio_data), metric_text
|
55 |
|
56 |
|
57 |
with gr.Blocks(analytics_enabled=False) as demo:
|