Use new pipecat.runner.local for examples

This commit is contained in:
Mark Backman
2025-07-27 07:43:25 -04:00
parent 250dec2371
commit b28c2b9a58
141 changed files with 147 additions and 674 deletions

View File

@@ -250,7 +250,6 @@ def setup(app):
excludes = [ excludes = [
str(project_root / "src/pipecat/pipeline/to_be_updated"), str(project_root / "src/pipecat/pipeline/to_be_updated"),
str(project_root / "src/pipecat/examples"),
str(project_root / "src/pipecat/tests"), str(project_root / "src/pipecat/tests"),
"**/test_*.py", "**/test_*.py",
"**/tests/*.py", "**/tests/*.py",

View File

@@ -201,6 +201,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -244,6 +244,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -55,6 +55,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -56,6 +56,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -53,6 +53,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -50,6 +50,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -63,6 +63,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -68,6 +68,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -71,6 +71,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -174,6 +174,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -137,6 +137,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -154,6 +154,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -107,6 +107,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -106,6 +106,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -148,6 +148,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -104,6 +104,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -139,6 +139,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -118,6 +118,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -104,6 +104,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -111,6 +111,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -107,6 +107,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -107,6 +107,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -109,6 +109,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -113,6 +113,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -108,6 +108,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -112,6 +112,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -110,6 +110,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -114,6 +114,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -103,6 +103,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -108,6 +108,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -110,6 +110,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -116,6 +116,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -109,6 +109,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -107,6 +107,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -112,6 +112,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -106,6 +106,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -103,6 +103,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -284,6 +284,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -107,6 +107,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -97,6 +97,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -111,6 +111,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -106,6 +106,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -109,6 +109,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -113,6 +113,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -112,6 +112,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -96,6 +96,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -11,7 +11,6 @@ import tkinter as tk
from dotenv import load_dotenv from dotenv import load_dotenv
from loguru import logger from loguru import logger
from pipecat.examples.run import maybe_capture_participant_camera
from pipecat.frames.frames import ( from pipecat.frames.frames import (
Frame, Frame,
InputAudioRawFrame, InputAudioRawFrame,
@@ -23,6 +22,7 @@ from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
from pipecat.runner.utils import maybe_capture_participant_camera
from pipecat.transports.base_transport import BaseTransport, TransportParams from pipecat.transports.base_transport import BaseTransport, TransportParams
from pipecat.transports.local.tk import TkLocalTransport, TkTransportParams from pipecat.transports.local.tk import TkLocalTransport, TkTransportParams
from pipecat.transports.services.daily import DailyParams from pipecat.transports.services.daily import DailyParams
@@ -121,6 +121,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -110,6 +110,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -162,6 +162,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -12,7 +12,6 @@ from dotenv import load_dotenv
from loguru import logger from loguru import logger
from pipecat.audio.vad.silero import SileroVADAnalyzer from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.examples.run import get_transport_client_id, maybe_capture_participant_camera
from pipecat.frames.frames import Frame, TextFrame, UserImageRequestFrame from pipecat.frames.frames import Frame, TextFrame, UserImageRequestFrame
from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
@@ -20,6 +19,7 @@ from pipecat.pipeline.task import PipelineTask
from pipecat.processors.aggregators.user_response import UserResponseAggregator from pipecat.processors.aggregators.user_response import UserResponseAggregator
from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
from pipecat.runner.utils import get_transport_client_id, maybe_capture_participant_camera
from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.moondream.vision import MoondreamService from pipecat.services.moondream.vision import MoondreamService
@@ -125,6 +125,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -12,7 +12,6 @@ from dotenv import load_dotenv
from loguru import logger from loguru import logger
from pipecat.audio.vad.silero import SileroVADAnalyzer from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.examples.run import get_transport_client_id, maybe_capture_participant_camera
from pipecat.frames.frames import Frame, TextFrame, UserImageRequestFrame from pipecat.frames.frames import Frame, TextFrame, UserImageRequestFrame
from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
@@ -20,6 +19,7 @@ from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.user_response import UserResponseAggregator from pipecat.processors.aggregators.user_response import UserResponseAggregator
from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
from pipecat.runner.utils import get_transport_client_id, maybe_capture_participant_camera
from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.google.llm import GoogleLLMService from pipecat.services.google.llm import GoogleLLMService
@@ -131,6 +131,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -12,7 +12,6 @@ from dotenv import load_dotenv
from loguru import logger from loguru import logger
from pipecat.audio.vad.silero import SileroVADAnalyzer from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.examples.run import get_transport_client_id, maybe_capture_participant_camera
from pipecat.frames.frames import Frame, TextFrame, UserImageRequestFrame from pipecat.frames.frames import Frame, TextFrame, UserImageRequestFrame
from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
@@ -20,6 +19,7 @@ from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.user_response import UserResponseAggregator from pipecat.processors.aggregators.user_response import UserResponseAggregator
from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
from pipecat.runner.utils import get_transport_client_id, maybe_capture_participant_camera
from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.openai.llm import OpenAILLMService from pipecat.services.openai.llm import OpenAILLMService
@@ -131,6 +131,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -12,7 +12,6 @@ from dotenv import load_dotenv
from loguru import logger from loguru import logger
from pipecat.audio.vad.silero import SileroVADAnalyzer from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.examples.run import get_transport_client_id, maybe_capture_participant_camera
from pipecat.frames.frames import Frame, TextFrame, UserImageRequestFrame from pipecat.frames.frames import Frame, TextFrame, UserImageRequestFrame
from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
@@ -20,6 +19,7 @@ from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.user_response import UserResponseAggregator from pipecat.processors.aggregators.user_response import UserResponseAggregator
from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
from pipecat.runner.utils import get_transport_client_id, maybe_capture_participant_camera
from pipecat.services.anthropic.llm import AnthropicLLMService from pipecat.services.anthropic.llm import AnthropicLLMService
from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.deepgram.stt import DeepgramSTTService
@@ -131,6 +131,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -72,6 +72,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -66,6 +66,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -66,6 +66,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -87,6 +87,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -65,6 +65,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -99,6 +99,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -66,6 +66,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -103,6 +103,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -84,6 +84,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -76,6 +76,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -156,6 +156,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -149,6 +149,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -14,11 +14,11 @@ from loguru import logger
from pipecat.adapters.schemas.function_schema import FunctionSchema from pipecat.adapters.schemas.function_schema import FunctionSchema
from pipecat.adapters.schemas.tools_schema import ToolsSchema from pipecat.adapters.schemas.tools_schema import ToolsSchema
from pipecat.audio.vad.silero import SileroVADAnalyzer from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.examples.run import get_transport_client_id, maybe_capture_participant_camera
from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext
from pipecat.runner.utils import get_transport_client_id, maybe_capture_participant_camera
from pipecat.services.anthropic.llm import AnthropicLLMService from pipecat.services.anthropic.llm import AnthropicLLMService
from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.deepgram.stt import DeepgramSTTService
@@ -200,6 +200,6 @@ If you need to use a tool, simply use the tool. Do not tell the user the tool yo
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -141,6 +141,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -14,11 +14,11 @@ from loguru import logger
from pipecat.adapters.schemas.function_schema import FunctionSchema from pipecat.adapters.schemas.function_schema import FunctionSchema
from pipecat.adapters.schemas.tools_schema import ToolsSchema from pipecat.adapters.schemas.tools_schema import ToolsSchema
from pipecat.audio.vad.silero import SileroVADAnalyzer from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.examples.run import get_transport_client_id, maybe_capture_participant_camera
from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext
from pipecat.runner.utils import get_transport_client_id, maybe_capture_participant_camera
from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.llm_service import FunctionCallParams from pipecat.services.llm_service import FunctionCallParams
@@ -189,6 +189,6 @@ indicate you should use the get_image tool are:
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -14,12 +14,12 @@ from loguru import logger
from pipecat.adapters.schemas.function_schema import FunctionSchema from pipecat.adapters.schemas.function_schema import FunctionSchema
from pipecat.adapters.schemas.tools_schema import ToolsSchema from pipecat.adapters.schemas.tools_schema import ToolsSchema
from pipecat.audio.vad.silero import SileroVADAnalyzer from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.examples.run import get_transport_client_id, maybe_capture_participant_camera
from pipecat.frames.frames import TTSSpeakFrame from pipecat.frames.frames import TTSSpeakFrame
from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext
from pipecat.runner.utils import get_transport_client_id, maybe_capture_participant_camera
from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.google.llm import GoogleLLMService from pipecat.services.google.llm import GoogleLLMService
@@ -211,6 +211,6 @@ indicate you should use the get_image tool are:
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -143,6 +143,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -133,6 +133,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -142,6 +142,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -141,6 +141,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -139,6 +139,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -148,6 +148,6 @@ Start by asking me for my location. Then, use 'get_weather_current' to give me a
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -148,6 +148,6 @@ Start by asking me for my location. Then, use 'get_weather_current' to give me a
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -142,6 +142,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -112,6 +112,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -138,6 +138,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -144,6 +144,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -140,6 +140,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -157,6 +157,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -147,6 +147,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -141,6 +141,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -157,6 +157,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -178,6 +178,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -166,6 +166,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -143,6 +143,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -140,6 +140,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -66,7 +66,7 @@ async def run_example(transport: BaseTransport, args: argparse.Namespace, handle
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
parser = argparse.ArgumentParser(description="Pipecat Bot Runner") parser = argparse.ArgumentParser(description="Pipecat Bot Runner")
parser.add_argument("-i", "--input", type=str, required=True, help="Input video file") parser.add_argument("-i", "--input", type=str, required=True, help="Input video file")

View File

@@ -62,6 +62,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -217,6 +217,6 @@ Remember, your responses should be short. Just one or two sentences, usually."""
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -201,6 +201,6 @@ Remember, your responses should be short. Just one or two sentences, usually."""
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -245,6 +245,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -255,6 +255,6 @@ Remember, your responses should be short. Just one or two sentences, usually."""
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -244,6 +244,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -15,13 +15,13 @@ from loguru import logger
from pipecat.audio.vad.silero import SileroVADAnalyzer from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.audio.vad.vad_analyzer import VADParams from pipecat.audio.vad.vad_analyzer import VADParams
from pipecat.examples.run import get_transport_client_id, maybe_capture_participant_camera
from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.openai_llm_context import ( from pipecat.processors.aggregators.openai_llm_context import (
OpenAILLMContext, OpenAILLMContext,
) )
from pipecat.runner.utils import get_transport_client_id, maybe_capture_participant_camera
from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.google.llm import GoogleLLMService from pipecat.services.google.llm import GoogleLLMService
@@ -303,6 +303,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -268,6 +268,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

View File

@@ -124,6 +124,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__": if __name__ == "__main__":
from pipecat.examples.run import main from pipecat.runner.local import main
main(run_example, transport_params=transport_params) main(run_example, transport_params=transport_params)

Some files were not shown because too many files have changed in this diff Show More