Update: TTS settings modal and settings types

This commit is contained in:
likingcode
2026-03-18 15:18:47 +08:00
parent 71232cf489
commit 4ea96243c2
13 changed files with 1393 additions and 149 deletions

15
src/types/settings.ts Normal file
View 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,
};