Which accounts may use the voice. See VoiceAccess.
The gender the voice is labelled with.
Identifier of the voice: the value to pass as a provider object's voice_id.
OptionallanguageThe language of the voice, as a name rather than a locale code, when the catalog sets one.
Each language the voice speaks, with its locale code such as en-US.
Optionalaccent?: stringThe accent, when the catalog names one.
The language, as a name such as English.
Its locale code, such as en-US.
Display name of the voice.
The provider that serves the voice. See Providers.
The speaking styles this particular voice offers, for example as a style. Styles differ from voice to voice.
One voice in D-ID's catalog of text-to-speech voices.
The SDK does not fetch voices itself; the type is exported so an application that lists them — to build a voice picker, say — can type the result and then feed id and provider into the provider object it passes as TextStreamScript.provider. provider is the wide Providers enum, while each provider variant requires its own literal
type, so switch on it to build the matching variant, for example Providers.Elevenlabs to an ElevenlabsTtsProvider. The catalog also lists voices agents cannot speak with (Google voices, for example), so keep only the providers TtsProvider has a variant for.