intron_voice library

Typed primitives for integrating with the Intron Voice API.

Classes

IntronCancellationToken
Read-only signal used to cancel in-flight SDK operations.
IntronCancellationTokenSource
Mutable owner for an IntronCancellationToken.
IntronClient
Entry point for using the Intron Voice SDK.
IntronClientConfig
Configuration shared by Intron Voice API clients.
IntronClock
Injectable clock used to make time-sensitive SDK behavior testable.
IntronFileUploadSource
Supplies file bytes for multipart uploads without forcing file-system access.
IntronHttpClient
Transport-independent HTTP client shared by REST API implementations.
IntronHttpRequest
Transport-independent HTTP request.
IntronHttpResponse
Transport-independent HTTP response.
IntronHttpTransport
Injectable HTTP transport used by REST API implementations.
IntronLanguage
Documented language and voice catalog helpers for Intron Voice APIs.
IntronLogger
Receives log records from the SDK.
IntronLogRecord
A structured log record emitted by the SDK.
IntronLogSanitizer
Removes sensitive values from messages and structured logging context.
IntronMultipartField
Multipart form field with a text value.
IntronMultipartFile
Multipart form field with streamed file content.
IntronRetryPolicy
Configuration for bounded HTTP retry behavior.
IntronSttClient
Client for STT API operations.
IntronSttStreamingClient
Client for WebSocket STT streaming operations.
IntronTokenProvider
Supplies bearer tokens for authenticated Intron Voice requests.
IntronTtsClient
Client for TTS REST API operations.
IntronTtsStreamingClient
Client for WebSocket TTS streaming operations.
IntronWebSocketConnection
Active WebSocket connection used by streaming APIs.
IntronWebSocketRequest
WebSocket connection request.
IntronWebSocketTransport
Injectable WebSocket transport used by streaming API implementations.
RedactingIntronLogger
Logger wrapper that redacts credentials before forwarding records.
SttAudioFile
Upload source with STT-specific file format validation.
SttJob
Result returned immediately after queueing a file upload.
SttJobStatus
Status response for an asynchronous STT file job.
SttRequestMetadata
Metadata attached to STT file responses.
SttResult
Completed asynchronous STT transcription result.
SttSessionStateEvent
Lifecycle state change emitted by an STT streaming session.
SttStreamingEvent
Typed event emitted by a streaming STT session.
SttStreamingOptions
Configuration for a streaming STT WebSocket session.
SttStreamingSession
Active STT streaming WebSocket session.
SttTranscriptEvent
Transcript event emitted by a streaming STT session.
SttUploadOptions
Options for asynchronous STT file upload.
SystemIntronClock
Clock implementation backed by the Dart runtime.
TtsAudioChunkEvent
Decoded audio event emitted by a streaming TTS session.
TtsGenerationResult
Result returned by synchronous TTS generation.
TtsJob
Result returned immediately after queueing TTS generation.
TtsJobStatus
Status response for a queued TTS job.
TtsRequest
Text input and voice configuration for TTS generation.
TtsRequestMetadata
Safe metadata attached to TTS REST responses.
TtsSessionStateEvent
Lifecycle state change emitted by a TTS streaming session.
TtsStreamingEvent
Typed event emitted by a streaming TTS session.
TtsStreamingOptions
Configuration for a streaming TTS WebSocket session.
TtsStreamingSession
Active TTS streaming WebSocket session.
TtsVoiceAccent
TTS accent value helper.
TtsVoiceConfig
Voice and output configuration for a TTS request.

Enums

IntronHttpMethod
HTTP methods supported by the SDK transport abstraction.
IntronLogLevel
Severity for log records emitted by the SDK.
SttProcessingStatus
Processing status values returned by asynchronous STT file transcription.
SttSessionState
Lifecycle state for an STT streaming session.
SttStreamingEventType
Streaming STT message types emitted by the SDK.
TtsOutputAudioFormat
TTS output audio formats supported by REST APIs.
TtsProcessingStatus
Processing status values returned by queued TTS jobs.
TtsSessionState
Lifecycle state for a TTS streaming session.
TtsStreamingEventType
Streaming TTS message types emitted by the SDK.
TtsVoiceGender
Voice gender values supported by TTS REST APIs.

Typedefs

SttStatusCallback = void Function(SttJobStatus status)
Progress callback for asynchronous STT polling.
TtsStatusCallback = void Function(TtsJobStatus status)
Progress callback for queued TTS polling.

Exceptions / Errors

IntronApiException
Base exception for errors surfaced by the Intron Voice SDK.
IntronAuthenticationException
Exception thrown when authentication or authorization fails.
IntronProtocolException
Exception thrown when SDK or server protocol data is invalid.
IntronRateLimitException
Exception thrown when a request is rate limited.
IntronRequestCancelledException
Exception thrown when an operation is cancelled by the caller.
IntronTimeoutException
Exception thrown when a request times out.
IntronTransportException
Exception thrown when a network transport fails.
SttAudioDurationLimitException
Exception thrown when sync STT audio exceeds the documented duration limit.
SttProcessingFailedException
Exception thrown when asynchronous file processing fails.
TtsProcessingFailedException
Exception thrown when queued TTS processing fails.