API reference
API reference
Select your platform
No SDKs available
No versions available

ElevenLabsProvider Class

Properties

override InferenceType DefaultSupportedTypes[Get]
Unique identifier for this provider type (e.g., "OpenAI", "LlamaApi").
Used to store and retrieve credentials from the central CredentialStorage.
When true, this provider asset uses its own API key instead of the central storage.

Member Functions

Transcribes speech using ElevenLabs speech-to-text and returns plain text.
Validates audio bytes, attaches optional language hints, and chooses output format.See ISpeechToTextTask. Product docs: https://elevenlabs.io/docs/capabilities/speech-to-text
Parameters
audioBytes
Raw audio payload (e.g., WAV/PCM). Must be non-null and non-empty.
language
Optional BCP-47 code (e.g., "en"). If null, ElevenLabs may auto-detect.
ct
Cancellation token to abort upload or HTTP processing.
Returns
Transcript text extracted from the API response.
Streams text-to-speech synthesis from ElevenLabs and invokes a callback with a ready AudioClip.
Handles output format selection and decoding based on provider settings.See ITextToSpeechTask and provider voice settings. Product docs: https://elevenlabs.io/docs/capabilities/text-to-speech
Parameters
text
Input text to synthesize. Empty text short-circuits with a warning.
voice
Optional voice override; falls back to configured default when null/empty.
onReady
Invoked with the decoded AudioClip when available.