mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -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>;
|
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 {
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user