From 92abe209f3f4450fec289545b30a7c50a498fa0e Mon Sep 17 00:00:00 2001 From: tocmo0nlord Date: Fri, 26 Jun 2026 01:13:45 +0000 Subject: [PATCH] Fix SpokenKokoroTTSService.run_tts signature (broke all call audio) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit run_tts is called as run_tts(self, text, context_id); the override only accepted (self, text), so every utterance raised "takes 2 positional arguments but 3 were given" and produced no audio — callers heard nothing on every call since the number-normalization change. Added context_id and pass it through. Verified the service now emits audio (118KB for a sample) with digits normalized. Co-Authored-By: Claude Opus 4.8 --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index d06e33b..5a92db5 100644 --- a/bot.py +++ b/bot.py @@ -320,8 +320,8 @@ class SpokenKokoroTTSService(KokoroTTSService): """KokoroTTSService that normalizes numbers to digit-by-digit speech before synthesis, so phone numbers/addresses/zips are read naturally instead of as cardinals + 'dash'.""" - async def run_tts(self, text: str): - async for frame in super().run_tts(tts_normalize(text)): + async def run_tts(self, text: str, context_id: str): + async for frame in super().run_tts(tts_normalize(text), context_id): yield frame