From 8dc81042c324cf71b62c0038261bc3d9a979e0d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Fri, 17 May 2024 15:36:30 -0700 Subject: [PATCH] examples: use DailyTranscriptionSettings in translation-chatbot --- examples/translation-chatbot/bot.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/translation-chatbot/bot.py b/examples/translation-chatbot/bot.py index 7cd2cbd83..89ca461b1 100644 --- a/examples/translation-chatbot/bot.py +++ b/examples/translation-chatbot/bot.py @@ -3,7 +3,7 @@ import aiohttp import os import sys -from pipecat.frames.frames import Frame, InterimTranscriptionFrame, LLMMessagesFrame, TextFrame, TranscriptionFrame, TransportMessageFrame +from pipecat.frames.frames import Frame, LLMMessagesFrame, TextFrame from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.task import PipelineTask @@ -12,7 +12,7 @@ from pipecat.processors.aggregators.sentence import SentenceAggregator from pipecat.processors.frame_processor import FrameDirection, FrameProcessor from pipecat.services.azure import AzureTTSService from pipecat.services.openai import OpenAILLMService -from pipecat.transports.services.daily import DailyParams, DailyTransport, DailyTransportMessageFrame +from pipecat.transports.services.daily import DailyParams, DailyTranscriptionSettings, DailyTransport, DailyTransportMessageFrame from runner import configure @@ -84,7 +84,9 @@ async def main(room_url: str, token): DailyParams( audio_out_enabled=True, transcription_enabled=True, - transcription_interim_results=False, + transcription_settings=DailyTranscriptionSettings(extra={ + "interim_results": False + }) ) )