Refactor voice settings to optionally support API-less STT and reorganize settings UI

- Make STT API key optional and remove continuous mode field
- Consolidate TTS and STT settings into new Voice settings tab
- Convert audio recorder from MediaRecorder to AudioContext with WAV output
- Improve STT backend validation and response handling
- Update tests for optional API key scenarios
This commit is contained in:
Chris Scott committed 2026-02-02 22:27:45 -05:00
1 parent 395d41eb6e
commit 6764c6b513
11 files changed
+309 -184

No files matched your search

-3
View File
@@ -27,7 +27,6 @@ export const STTConfigSchema = z.object({
apiKey: z.string(),
model: z.string(),
language: z.string().default('en-US'),
continuous: z.boolean().default(false),
availableModels: z.array(z.string()).optional(),
lastModelsFetch: z.number().optional(),
});
@@ -59,7 +58,6 @@ export type STTConfig = {
apiKey: string;
model: string;
language: string;
continuous: boolean;
availableModels?: string[];
lastModelsFetch?: number;
};
@@ -151,7 +149,6 @@ export const DEFAULT_STT_CONFIG: STTConfig = {
apiKey: "",
model: '',
language: 'en-US',
continuous: false,
availableModels: [],
lastModelsFetch: 0,
};