Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -118,6 +118,7 @@ def tts_streaming(text: str, voice: str = "af_heart", speed: float = 1.0, format
|
|
118 |
try:
|
119 |
# Use the AUTOREGRESSIVE pipeline
|
120 |
for audio_chunk in pipeline(text, voice=voice, speed=speed):
|
|
|
121 |
if audio_chunk.numel() > 0: # Ensure we have audio data
|
122 |
if format.lower() == "wav":
|
123 |
yield audio_tensor_to_pcm_bytes(audio_chunk)
|
|
|
118 |
try:
|
119 |
# Use the AUTOREGRESSIVE pipeline
|
120 |
for audio_chunk in pipeline(text, voice=voice, speed=speed):
|
121 |
+
print(audio_chunk)
|
122 |
if audio_chunk.numel() > 0: # Ensure we have audio data
|
123 |
if format.lower() == "wav":
|
124 |
yield audio_tensor_to_pcm_bytes(audio_chunk)
|