Interface AssemblyAISTTProviderConfig

Configuration for the AssemblyAISTTProvider.

See

AssemblyAISTTProvider for usage examples

interface AssemblyAISTTProviderConfig {
    apiKey: string;
    fetchImpl?: {
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    };
}

Properties

Properties

apiKey: string

AssemblyAI API key used for authentication. Sent as the Authorization header value (without a prefix like "Bearer"). Obtain from https://www.assemblyai.com/dashboard/account

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

Custom fetch implementation for dependency injection in tests. When omitted, the global fetch is used.

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