bcci commited on
Commit
9c48211
Β·
verified Β·
1 Parent(s): 64b0296

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)