mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
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:
1 parent
395d41eb6e
commit
6764c6b513
11 files changed
+309
-184
No files matched your search
@@ -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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user