Interface AzureSpeechSTTProviderConfig

Configuration for the AzureSpeechSTTProvider.

interface AzureSpeechSTTProviderConfig {
    key: string;
    region: string;
    fetchImpl?: {
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    };
}

Properties

Properties

key: string

Azure Cognitive Services subscription key. Sent as the Ocp-Apim-Subscription-Key header — this is Azure's standard authentication mechanism for Cognitive Services REST APIs. Obtain from the Azure portal under your Speech resource's "Keys and Endpoint".

region: string

Azure region where the Speech resource is deployed, e.g. 'eastus', 'westeurope', 'southeastasia'.

The region determines the REST endpoint hostname: https://{region}.stt.speech.microsoft.com

fetchImpl?: {
    (input, init?): Promise<Response>;
    (input, init?): Promise<Response>;
}

Custom fetch implementation for dependency injection in tests.

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

    • (input, init?): Promise<Response>
    • Parameters

      • input: string | Request | URL
      • Optional init: RequestInit

      Returns Promise<Response>

Default

globalThis.fetch