(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>;
export interface Config {
@ -283,15 +285,15 @@ interface PronunciationVoiceConfig {
/**
* language code
*/
language: string;
language: LanguageCode;
/**
* voice name
*/
voice: string;
voice: VoiceId;
/**
* voice engine
*/
engine: 'standard' | 'neural';
engine: Engine;
}
interface SourcesConfig {

View File

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