mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
fix: allow interruption on start_node
This commit is contained in:
parent
5fe1c8ce2f
commit
7e438ad049
10 changed files with 1013 additions and 144 deletions
|
|
@ -26,6 +26,7 @@ from pipecat.processors.aggregators.llm_response_universal import (
|
|||
)
|
||||
from pipecat.tests import MockLLMService, MockTTSService
|
||||
from pipecat.tests.mock_transport import MockTransport
|
||||
from pipecat.transports.base_transport import TransportParams
|
||||
|
||||
|
||||
async def run_pipeline_with_user_idle(
|
||||
|
|
@ -57,10 +58,17 @@ async def run_pipeline_with_user_idle(
|
|||
)
|
||||
|
||||
llm = MockLLMService(mock_steps=mock_steps, chunk_delay=0.001)
|
||||
tts = MockTTSService(mock_audio_duration_ms=10)
|
||||
tts = MockTTSService(mock_audio_duration_ms=40)
|
||||
|
||||
# Create MockTransport for simulating transport behavior
|
||||
mock_transport = MockTransport(emit_bot_speaking=True)
|
||||
mock_transport = MockTransport(
|
||||
params=TransportParams(
|
||||
audio_in_enabled=True,
|
||||
audio_out_enabled=True,
|
||||
audio_in_sample_rate=16000,
|
||||
audio_out_sample_rate=16000,
|
||||
),
|
||||
)
|
||||
|
||||
# Create LLM context
|
||||
context = LLMContext()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue