mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
(ts) reference aws polly types in pronunciation voice config
This commit is contained in:
parent
9b6bff27f3
commit
c1057ef8a0
@ -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 {
|
||||
|
@ -44,8 +44,8 @@ pronouns:
|
||||
pronunciation:
|
||||
enabled: true
|
||||
voices:
|
||||
GB:
|
||||
language: 'ko-KO'
|
||||
KO:
|
||||
language: 'ko-KR'
|
||||
voice: 'Seoyeon'
|
||||
engine: 'neural'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user