File tree Expand file tree Collapse file tree
src/pipecat/services/azure Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ - Added support for specifying private endpoints for Azure Speech-to-Text, enabling use in private networks behind firewalls.
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ def __init__(
6363 region : str ,
6464 language : Language = Language .EN_US ,
6565 sample_rate : Optional [int ] = None ,
66+ private_endpoint : Optional [str ] = None ,
6667 endpoint_id : Optional [str ] = None ,
6768 ttfs_p99_latency : Optional [float ] = AZURE_TTFS_P99 ,
6869 ** kwargs ,
@@ -74,6 +75,8 @@ def __init__(
7475 region: Azure region for the Speech service (e.g., 'eastus').
7576 language: Language for speech recognition. Defaults to English (US).
7677 sample_rate: Audio sample rate in Hz. If None, uses service default.
78+ private_endpoint: Private endpoint for STT behind firewall.
79+ See https://docs.azure.cn/en-us/ai-services/speech-service/speech-services-private-link?tabs=portal
7780 endpoint_id: Custom model endpoint id.
7881 ttfs_p99_latency: P99 latency from speech end to final transcript in seconds.
7982 Override for your deployment. See https://github.com/pipecat-ai/stt-benchmark
@@ -85,6 +88,7 @@ def __init__(
8588 subscription = api_key ,
8689 region = region ,
8790 speech_recognition_language = language_to_azure_language (language ),
91+ endpoint = private_endpoint ,
8892 )
8993
9094 if endpoint_id :
You can’t perform that action at this time.
0 commit comments