Merge pull request #3705 from pipecat-ai/mb/quickstart-0.0.102
Update quickstart for 0.0.102
This commit is contained in:
@@ -27,16 +27,11 @@ from loguru import logger
|
|||||||
print("🚀 Starting Pipecat bot...")
|
print("🚀 Starting Pipecat bot...")
|
||||||
print("⏳ Loading models and imports (20 seconds, first run only)\n")
|
print("⏳ Loading models and imports (20 seconds, first run only)\n")
|
||||||
|
|
||||||
logger.info("Loading Local Smart Turn Analyzer V3...")
|
|
||||||
from pipecat.audio.turn.smart_turn.local_smart_turn_v3 import LocalSmartTurnAnalyzerV3
|
|
||||||
|
|
||||||
logger.info("✅ Local Smart Turn Analyzer V3 loaded")
|
|
||||||
logger.info("Loading Silero VAD model...")
|
logger.info("Loading Silero VAD model...")
|
||||||
from pipecat.audio.vad.silero import SileroVADAnalyzer
|
from pipecat.audio.vad.silero import SileroVADAnalyzer
|
||||||
|
|
||||||
logger.info("✅ Silero VAD model loaded")
|
logger.info("✅ Silero VAD model loaded")
|
||||||
|
|
||||||
from pipecat.audio.vad.vad_analyzer import VADParams
|
|
||||||
from pipecat.frames.frames import LLMRunFrame
|
from pipecat.frames.frames import LLMRunFrame
|
||||||
|
|
||||||
logger.info("Loading pipeline components...")
|
logger.info("Loading pipeline components...")
|
||||||
@@ -55,10 +50,6 @@ from pipecat.services.deepgram.stt import DeepgramSTTService
|
|||||||
from pipecat.services.openai.llm import OpenAILLMService
|
from pipecat.services.openai.llm import OpenAILLMService
|
||||||
from pipecat.transports.base_transport import BaseTransport, TransportParams
|
from pipecat.transports.base_transport import BaseTransport, TransportParams
|
||||||
from pipecat.transports.daily.transport import DailyParams
|
from pipecat.transports.daily.transport import DailyParams
|
||||||
from pipecat.turns.user_stop.turn_analyzer_user_turn_stop_strategy import (
|
|
||||||
TurnAnalyzerUserTurnStopStrategy,
|
|
||||||
)
|
|
||||||
from pipecat.turns.user_turn_strategies import UserTurnStrategies
|
|
||||||
|
|
||||||
logger.info("✅ All components loaded successfully!")
|
logger.info("✅ All components loaded successfully!")
|
||||||
|
|
||||||
@@ -87,12 +78,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
|
|||||||
context = LLMContext(messages)
|
context = LLMContext(messages)
|
||||||
user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
|
user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
|
||||||
context,
|
context,
|
||||||
user_params=LLMUserAggregatorParams(
|
user_params=LLMUserAggregatorParams(vad_analyzer=SileroVADAnalyzer()),
|
||||||
user_turn_strategies=UserTurnStrategies(
|
|
||||||
stop=[TurnAnalyzerUserTurnStopStrategy(turn_analyzer=LocalSmartTurnAnalyzerV3())]
|
|
||||||
),
|
|
||||||
vad_analyzer=SileroVADAnalyzer(params=VADParams(stop_secs=0.2)),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
pipeline = Pipeline(
|
pipeline = Pipeline(
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ version = "0.1.0"
|
|||||||
description = "Quickstart example for building voice AI bots with Pipecat"
|
description = "Quickstart example for building voice AI bots with Pipecat"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"pipecat-ai[webrtc,daily,silero,deepgram,openai,cartesia,local-smart-turn-v3,runner]",
|
"pipecat-ai[webrtc,daily,silero,deepgram,openai,cartesia,runner]",
|
||||||
"pipecat-ai-cli"
|
"pipecat-ai-cli"
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -17,4 +17,7 @@ dev = [
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
line-length = 100
|
line-length = 100
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
select = ["I"]
|
select = ["I"]
|
||||||
|
|
||||||
|
[tool.uv.sources]
|
||||||
|
pipecat-ai = { path = "../../", editable = true }
|
||||||
Reference in New Issue
Block a user