Files
french-vocab/src/types/settings.ts
2026-03-18 15:18:47 +08:00

16 lines
347 B
TypeScript

export interface TtsSettings {
rate: number; // 0.1 - 2.0
pitch: number; // 0 - 2
voiceURI?: string; // exact voice identifier
autoSpeakWord: boolean;
autoSpeakExample: boolean;
}
export const DEFAULT_TTS_SETTINGS: TtsSettings = {
rate: 0.85,
pitch: 1.0,
voiceURI: undefined,
autoSpeakWord: false,
autoSpeakExample: false,
};