Add xfyun asr service

This commit is contained in:
Xin Wang
2026-05-21 15:42:49 +08:00
parent c83c172511
commit 404381c818
9 changed files with 462 additions and 8 deletions

View File

@@ -30,6 +30,7 @@ from .product_protocol import ProductWebsocketSerializer
from .services import create_llm_service, create_stt_service, create_tts_service
from .text_input import ProductTextInputProcessor
from .text_stream import ProductTextStreamProcessor
from .transcript_stream import ProductTranscriptStreamProcessor
async def run_voice_pipeline(websocket, config: EngineConfig) -> None:
@@ -74,7 +75,7 @@ async def run_pipeline_with_serializer(
),
)
stt = create_stt_service(config.services.stt)
stt = create_stt_service(config.services.stt, config.audio)
llm = create_llm_service(config.services.llm)
tts = create_tts_service(config.services.tts, config.audio)
@@ -93,6 +94,7 @@ async def run_pipeline_with_serializer(
transport.input(),
ProductTextInputProcessor(),
stt,
ProductTranscriptStreamProcessor(),
user_aggregator,
llm,
ProductTextStreamProcessor(),