Skip to content

STTProviderConfig

Configuration for speech-to-text providers.

Defined in: src/core/types/providers.ts:327

Configuration for speech-to-text providers.

Remarks

Extends BaseProviderConfig with STT-specific options for language, model selection, interim results, punctuation, and keyword boosting.

Example

const sttConfig: STTProviderConfig = {
  apiKey: 'your-api-key',
  language: 'en-US',
  model: 'nova-3',
  interimResults: true,
  punctuation: true,
  keywords: ['CompositeVoice', 'Deepgram'],
};

See

  • BaseProviderConfig for inherited fields
  • RestSTTProvider for REST-based STT providers
  • LiveSTTProvider for WebSocket-based STT providers

Extends

Extended by

Properties

PropertyTypeDefault valueDescriptionInherited fromDefined in
apiKey?stringundefinedAPI key or authentication token for the provider. Remarks For client-side usage, consider using a proxy server to keep API keys secure. The SDK provides Express, Next.js, and Node adapters for this purpose.BaseProviderConfig.apiKeysrc/core/types/providers.ts:67
debug?booleanfalseWhether to enable debug logging for this provider. Remarks When true, the provider emits detailed internal logs. This is separate from the SDK-level LoggingConfig.BaseProviderConfig.debugsrc/core/types/providers.ts:86
endpoint?stringundefinedCustom endpoint URL to override the provider’s default API endpoint. Remarks Useful for self-hosted instances, proxy servers, or development environments.BaseProviderConfig.endpointsrc/core/types/providers.ts:75
interimResults?booleanundefinedWhether to enable interim (partial) transcription results. Remarks When true, the provider emits results as the user speaks, before the utterance is complete. Only applicable to live/WebSocket providers.-src/core/types/providers.ts:352
keywords?string[]undefinedCustom vocabulary or keyword phrases to boost recognition accuracy. Remarks Useful for domain-specific terminology, product names, or proper nouns that the model might not recognize well by default.-src/core/types/providers.ts:366
language?stringundefinedLanguage code for transcription. Remarks Uses BCP 47 language tags (e.g., 'en-US', 'es-ES', 'fr-FR'). The supported languages depend on the provider and model.-src/core/types/providers.ts:335
model?stringundefinedModel to use for transcription. Remarks Provider-specific model identifier (e.g., 'nova-3' for Deepgram).-src/core/types/providers.ts:343
punctuation?booleanundefinedWhether to enable automatic punctuation in transcription results.-src/core/types/providers.ts:357
timeout?numberundefinedRequest timeout in milliseconds. Remarks Applies to HTTP requests (REST providers) and connection establishment (WebSocket providers). Set to 0 for no timeout.BaseProviderConfig.timeoutsrc/core/types/providers.ts:95

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency