Skip to main content
Audio-side capabilities a provider plugin can register alongside text inference. Part of the Building provider plugins guide.

Voice and audio capabilities

Register each capability inside register(api) alongside your existing api.registerProvider(...) call. Pick only the tabs you need:
Use assertOkOrThrowProviderError(...) for provider HTTP failures so plugins share capped error-body reads, JSON error parsing, and request-id suffixes. Pass { requestHeaders: headers } as its third argument when requests carry credentials: this redacts reflected header values before error details and metadata are retained. Pass the same option to readProviderJsonResponse(...) to omit unsafe parser excerpts. For provider-specific failure payloads, use redactProviderResponseErrorText(text, headers) or the bounded readProviderResponseErrorText(response, limitBytes, headers) helper from the same SDK entrypoint.