@@ -282,7 +282,7 @@ async def _tts_stream(text: str, voice: str = "Chloe"):
if audio and isinstance(audio, dict) and "data" in audio:
pcm = np.frombuffer(
base64.b64decode(audio["data"]), dtype=np.int16
- ).astype(np.float32) / 32768.0
+ )
if len(pcm) > 0:
yield pcm, 24000, False
except Exception: