Compare commits

..

1 Commits

Author SHA1 Message Date
Jon Taylor
2b1f056aa7 sketch for runner as a module 2025-07-24 20:15:06 +01:00
163 changed files with 711 additions and 2132 deletions

View File

@@ -45,10 +45,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
`pyneuphonic` package. This removes a package requirement, allowing Neuphonic
to work with more services.
- Updated `ElevenLabsTTSService` to handle the case where
`allow_interruptions=False`. Now, when interruptions are disabled, the same
context ID will be used throughout the conversation.
- Updated the `deepgram` optional dependency to 4.7.0, which downgrades the
`tasks cancelled error` to a debug log. This removes the log from appearing
in Pipecat logs upon leaving.
@@ -71,9 +67,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed an issue in `AudioBufferProcessor` that caused garbled audio when
`enable_turn_audio` was enabled and audio resampling was required.
- Fixed a dependency issue for uv users where an `llvmlite` version required python 3.9.
- Fixed an issue in `MiniMaxHttpTTSService` where the `pitch` param was the

View File

@@ -11,3 +11,10 @@ ruff~=0.12.1
setuptools~=78.1.1
setuptools_scm~=8.3.1
python-dotenv~=1.1.1
# For running examples
uvicorn
python-dotenv
fastapi
aiohttp
aiortc

View File

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

View File

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

View File

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

View File

@@ -12,6 +12,7 @@ from dotenv import load_dotenv
from loguru import logger
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.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner
@@ -19,7 +20,6 @@ from pipecat.pipeline.task import PipelineTask
from pipecat.processors.aggregators.user_response import UserResponseAggregator
from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator
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.deepgram.stt import DeepgramSTTService
from pipecat.services.moondream.vision import MoondreamService
@@ -125,6 +125,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__":
from pipecat.runner.local import main
from pipecat.examples.run import main
main(run_example, transport_params=transport_params)

View File

@@ -12,6 +12,7 @@ from dotenv import load_dotenv
from loguru import logger
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.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner
@@ -19,7 +20,6 @@ from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.user_response import UserResponseAggregator
from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator
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.deepgram.stt import DeepgramSTTService
from pipecat.services.google.llm import GoogleLLMService
@@ -131,6 +131,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__":
from pipecat.runner.local import main
from pipecat.examples.run import main
main(run_example, transport_params=transport_params)

View File

@@ -12,6 +12,7 @@ from dotenv import load_dotenv
from loguru import logger
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.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner
@@ -19,7 +20,6 @@ from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.user_response import UserResponseAggregator
from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator
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.deepgram.stt import DeepgramSTTService
from pipecat.services.openai.llm import OpenAILLMService
@@ -131,6 +131,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__":
from pipecat.runner.local import main
from pipecat.examples.run import main
main(run_example, transport_params=transport_params)

View File

@@ -12,6 +12,7 @@ from dotenv import load_dotenv
from loguru import logger
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.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner
@@ -19,7 +20,6 @@ from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.user_response import UserResponseAggregator
from pipecat.processors.aggregators.vision_image_frame import VisionImageFrameAggregator
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.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService
@@ -131,6 +131,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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.tools_schema import ToolsSchema
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.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask
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.cartesia.tts import CartesiaTTSService
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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.tools_schema import ToolsSchema
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.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask
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.deepgram.stt import DeepgramSTTService
from pipecat.services.llm_service import FunctionCallParams
@@ -189,6 +189,6 @@ indicate you should use the get_image tool are:
if __name__ == "__main__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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.tools_schema import ToolsSchema
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.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask
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.deepgram.stt import DeepgramSTTService
from pipecat.services.google.llm import GoogleLLMService
@@ -211,6 +211,6 @@ indicate you should use the get_image tool are:
if __name__ == "__main__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
parser = argparse.ArgumentParser(description="Pipecat Bot Runner")
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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__":
from pipecat.runner.local import main
from pipecat.examples.run import main
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.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.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask
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.deepgram.stt import DeepgramSTTService
from pipecat.services.google.llm import GoogleLLMService
@@ -303,6 +303,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__":
from pipecat.runner.local import main
from pipecat.examples.run import main
main(run_example, transport_params=transport_params)

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