GoogleSTTService: Add more robust handling of 409 errors

This commit is contained in:
Mark Backman
2025-11-06 12:59:37 -05:00
parent 94a3306679
commit 1fb6d6bd23
3 changed files with 22 additions and 1 deletions

View File

@@ -61,8 +61,9 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
logger.info(f"Starting bot")
stt = GoogleSTTService(
params=GoogleSTTService.InputParams(languages=Language.EN_US),
params=GoogleSTTService.InputParams(languages=Language.EN_US, model="chirp_3"),
credentials=os.getenv("GOOGLE_TEST_CREDENTIALS"),
location="us",
)
tts = GoogleTTSService(