Compare commits

...

18 Commits

Author SHA1 Message Date
Mark Backman
b28c2b9a58 Use new pipecat.runner.local for examples 2025-07-27 07:48:52 -04:00
Mark Backman
250dec2371 Updates to cloud examples: cloud-simple so it can be deployed and use Krisp 2025-07-26 22:19:05 -04:00
Mark Backman
49435cd115 Add typing support for session_args, fix debug logging in cloud.py 2025-07-26 21:56:06 -04:00
Mark Backman
65daac9853 Add RTVI to local-simple-bot.py 2025-07-26 10:35:07 -04:00
Mark Backman
26743f40a0 Add startup message for local WebRTC, remove WebRTC from cloud /connect 2025-07-26 10:15:32 -04:00
Mark Backman
bd91a31a40 Comment about starting a SmallWebRTCTransport client session 2025-07-26 00:11:36 -04:00
Mark Backman
242b277413 Fix the /connect endpoint's return value for Daily, WebRTC 2025-07-25 23:36:23 -04:00
Mark Backman
c71e97dd08 PCC deployment scripts 2025-07-25 22:33:49 -04:00
Mark Backman
c6e2bfe601 Ignore import warning in _get_bot_module 2025-07-25 22:25:31 -04:00
Mark Backman
f61bbd3d3d Console message for where to connect to the server 2025-07-25 22:22:01 -04:00
Mark Backman
c74fede862 Remove livekit from cloud.py, use localhost for webrtc 2025-07-25 22:14:16 -04:00
Mark Backman
ff7e0ff27d Rename examples 2025-07-25 21:29:46 -04:00
Mark Backman
7253077bb7 Final cleanup 2025-07-25 21:25:01 -04:00
Mark Backman
df211fb5a3 Renaming files 2025-07-25 20:23:55 -04:00
Mark Backman
ae6698429f Add quickstart examples 2025-07-25 18:04:40 -04:00
Mark Backman
b7e415a659 Checkpoint: local working, server: daily,webrtc working 2025-07-25 17:39:04 -04:00
Mark Backman
2cdc42adf6 Lazy load imports to avoid unnecessary dependencies when running 2025-07-25 11:47:17 -04:00
Mark Backman
988d986e22 Add new module, add telnyx, plivo, livekit runners 2025-07-25 11:30:12 -04:00
157 changed files with 2101 additions and 588 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