Skip to main content

Voice & Language Configuration

Voice and language configurations define supported voices and languages for text-to-speech synthesis and speech-to-text recognition. Referenced by support models and provisioning chains.

Source: src/core/service-configuration/voice-language.schema.ts


Voice

Synthetic voice options for text-to-speech (TTS) synthesis.

Schema: VoiceSchema

Attributes

AttributeTypeRequiredDefaultDescription
voiceIdstringYesUnique identifier for the voice
namestringYesHuman-readable name
descriptionstringYesVoice characteristics description
genderenumYesGender classification. One of male, female, or neutral.
languagestring | nullNoOptimal language code (e.g., 'en-US')
isDefaultbooleanNofalseWhether this is the default voice

Language

Language configuration for speech processing.

Schema: LanguageSchema

Attributes

AttributeTypeRequiredDefaultDescription
languageIdstringYesUnique identifier (e.g., 'en-us')
namestringYesHuman-readable name with region
codestringYesISO 639-1 code with region (e.g., 'en-US')
isDefaultbooleanNofalseWhether this is the platform default
isExperimentalbooleanNofalseWhether in experimental support

Example

Voice

{
"voiceId": "adam",
"name": "Adam",
"description": "Deep, authoritative male voice suitable for professional announcements",
"gender": "male",
"language": "en-US",
"isDefault": true
}

Language

{
"languageId": "en-us",
"name": "English (United States)",
"code": "en-US",
"isDefault": true,
"isExperimental": false
}

Helper Functions

FunctionDescription
validateSupportedVoices(voices)Validates array of voices
isValidVoice(voice)Type guard for Voice validation