AudioCapability class abstract

Unified audio processing capability interface

This interface provides a single entry point for all audio-related functionality, including text-to-speech, speech-to-text, audio translation, and real-time processing. Use the supportedFeatures property to discover which features are available.

Implementers

Constructors

AudioCapability()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportedFeatures → Set<AudioFeature>
Get all audio features supported by this provider
no setter

Methods

getSupportedAudioFormats() → List<String>
Get supported input/output audio formats
getSupportedLanguages() → Future<List<LanguageInfo>>
Get supported languages for transcription and translation
getVoices() → Future<List<VoiceInfo>>
Get available voices for this provider
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
speech(String text, {CancelToken? cancelToken}) → Future<List<int>>
Simple text-to-speech conversion (convenience method)
speechStream(String text) → Stream<List<int>>
Simple streaming text-to-speech conversion (convenience method)
speechToText(STTRequest request, {CancelToken? cancelToken}) → Future<STTResponse>
Convert speech to text with full configuration support
startRealtimeSession(RealtimeAudioConfig config) → Future<RealtimeAudioSession>
Create and start a real-time audio session
textToSpeech(TTSRequest request, {CancelToken? cancelToken}) → Future<TTSResponse>
Convert text to speech with full configuration support
textToSpeechStream(TTSRequest request, {CancelToken? cancelToken}) → Stream<AudioStreamEvent>
Convert text to speech with streaming output
toString() → String
A string representation of this object.
inherited
transcribe(List<int> audio) → Future<String>
Simple audio transcription (convenience method)
transcribeFile(String filePath) → Future<String>
Simple file transcription (convenience method)
translate(List<int> audio) → Future<String>
Simple audio translation (convenience method)
translateAudio(AudioTranslationRequest request, {CancelToken? cancelToken}) → Future<STTResponse>
Translate audio to English text
translateFile(String filePath) → Future<String>
Simple file translation (convenience method)

Operators

operator ==(Object other) → bool
The equality operator.
inherited