This commit is contained in:
Andrea Vos 2025-01-18 15:36:31 +01:00
parent b0539286c7
commit 044a842bf0

View File

@ -309,12 +309,16 @@ interface PronunciationConfig {
* whether to treat letter graphemes as phonemes. useful when the configured locale has no matching voice
*/
ipa?: boolean;
voices: Record<string, PronunciationVoiceConfig>;
voices: Record<string, AwsPollyPronunciationVoiceConfig | NarakeetPronunciationVoiceConfig>;
}
/**
* @see https://docs.aws.amazon.com/polly/latest/dg/voicelist.html
*/
export interface PronunciationVoiceConfig {
export interface AwsPollyPronunciationVoiceConfig {
/**
* text-to-speech provider (aws_polly is the default, if not specified)
*/
provider?: 'aws_polly';
/**
* language code
*/
@ -327,10 +331,20 @@ export interface PronunciationVoiceConfig {
* voice engine (default: 'standard')
*/
engine?: Engine;
}
export interface NarakeetPronunciationVoiceConfig {
/**
* text-to-speech provider (default: 'aws_polly')
* text-to-speech provider
*/
provider?: 'aws_polly' | 'narakeet';
provider: 'narakeet';
/**
* language code
*/
language: string;
/**
* voice name
*/
voice: string;
}
interface SourcesConfig {