forked from admin/french-vocab
Update: TTS settings modal and settings types
This commit is contained in:
15
src/types/settings.ts
Normal file
15
src/types/settings.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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,
|
||||
};
|
||||
Reference in New Issue
Block a user