Flatten LiveOptions into individual fields on DeepgramSTTSettings and DeepgramSageMakerSTTSettings for backward-compatible dict-style updates via STTUpdateSettingsFrame; during the big service settings refactor, we accidentally got rid of the ability to update individual LiveOptions fields with a sparse update
This commit is contained in:
@@ -112,6 +112,13 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
|
||||
STTUpdateSettingsFrame(delta=DeepgramSageMakerSTTSettings(language=Language.ES))
|
||||
)
|
||||
|
||||
# Old-style dict update (for backward-compat testing):
|
||||
# await asyncio.sleep(10)
|
||||
# logger.info("Updating Deepgram SageMaker STT settings via dict: punctuate=False, filler_words=True")
|
||||
# await task.queue_frame(
|
||||
# STTUpdateSettingsFrame(settings={"punctuate": False, "filler_words": True})
|
||||
# )
|
||||
|
||||
@transport.event_handler("on_client_disconnected")
|
||||
async def on_client_disconnected(transport, client):
|
||||
logger.info(f"Client disconnected")
|
||||
|
||||
@@ -106,6 +106,13 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
|
||||
STTUpdateSettingsFrame(delta=DeepgramSTTSettings(language=Language.ES))
|
||||
)
|
||||
|
||||
# Old-style dict update (for backward-compat testing):
|
||||
# await asyncio.sleep(10)
|
||||
# logger.info("Updating Deepgram STT settings via dict: punctuate=False, filler_words=True")
|
||||
# await task.queue_frame(
|
||||
# STTUpdateSettingsFrame(settings={"punctuate": False, "filler_words": True})
|
||||
# )
|
||||
|
||||
@transport.event_handler("on_client_disconnected")
|
||||
async def on_client_disconnected(transport, client):
|
||||
logger.info(f"Client disconnected")
|
||||
|
||||
Reference in New Issue
Block a user