(ts) reference aws polly types in pronunciation voice config

This commit is contained in:
Valentyne Stigloher 2024-03-19 19:01:44 +01:00
parent 9b6bff27f3
commit c1057ef8a0
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,5 @@
import type { Engine, LanguageCode, VoiceId } from '@aws-sdk/client-polly';
type Toggable<T> = ({ enabled: true } & T) | { enabled: false } & Partial<T>; type Toggable<T> = ({ enabled: true } & T) | { enabled: false } & Partial<T>;
export interface Config { export interface Config {
@ -283,15 +285,15 @@ interface PronunciationVoiceConfig {
/** /**
* language code * language code
*/ */
language: string; language: LanguageCode;
/** /**
* voice name * voice name
*/ */
voice: string; voice: VoiceId;
/** /**
* voice engine * voice engine
*/ */
engine: 'standard' | 'neural'; engine: Engine;
} }
interface SourcesConfig { interface SourcesConfig {

View File

@ -44,8 +44,8 @@ pronouns:
pronunciation: pronunciation:
enabled: true enabled: true
voices: voices:
GB: KO:
language: 'ko-KO' language: 'ko-KR'
voice: 'Seoyeon' voice: 'Seoyeon'
engine: 'neural' engine: 'neural'