ElevenLabsAudio class
ElevenLabs Audio capability implementation
This module handles all audio-related functionality for ElevenLabs providers, including text-to-speech, speech-to-text, and streaming capabilities.
- Inheritance
-
- Object
- BaseAudioCapability
- ElevenLabsAudio
Constructors
- ElevenLabsAudio.new(ElevenLabsClient client, ElevenLabsConfig config)
Properties
- client → ElevenLabsClient
-
final
- config → ElevenLabsConfig
-
final
- 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 setteroverride
Methods
-
getSupportedAudioFormats(
) → List< String> -
Get supported input/output audio formats
override
-
getSupportedLanguages(
) → Future< List< LanguageInfo> > -
Get supported languages for transcription and translation
override
-
getVoices(
) → Future< List< VoiceInfo> > -
Get available voices for this provider
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
speech(
String text) → Future< List< int> > -
Simple text-to-speech conversion (convenience method)
inherited
-
speechStream(
String text) → Stream< List< int> > -
Simple streaming text-to-speech conversion (convenience method)
inherited
-
speechToText(
STTRequest request) → Future< STTResponse> -
Convert speech to text with full configuration support
override
-
startRealtimeSession(
RealtimeAudioConfig config) → Future< RealtimeAudioSession> -
Create and start a real-time audio session
override
-
textToSpeech(
TTSRequest request) → Future< TTSResponse> -
Convert text to speech with full configuration support
override
-
textToSpeechStream(
TTSRequest request) → Stream< AudioStreamEvent> -
Convert text to speech with streaming output
override
-
toString(
) → String -
A string representation of this object.
inherited
-
transcribe(
List< int> audio) → Future<String> -
Simple audio transcription (convenience method)
inherited
-
transcribeFile(
String filePath) → Future< String> -
Simple file transcription (convenience method)
inherited
-
translate(
List< int> audio) → Future<String> -
Simple audio translation (convenience method)
inherited
-
translateAudio(
AudioTranslationRequest request) → Future< STTResponse> -
Translate audio to English text
override
-
translateFile(
String filePath) → Future< String> -
Simple file translation (convenience method)
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited