mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
feat(frontend): improve mobile voice controls and TTS playback
This commit is contained in:
1 parent
dad1a608a1
commit
29b9d028c7
14 files changed
+1434
-142
No files matched your search
@@ -10,6 +10,7 @@ export const CustomCommandSchema = z.object({
|
||||
export const TTSConfigSchema = z.object({
|
||||
enabled: z.boolean(),
|
||||
provider: z.enum(['external', 'builtin']).default('external'),
|
||||
autoPlay: z.boolean().default(false),
|
||||
endpoint: z.string(),
|
||||
apiKey: z.string(),
|
||||
voice: z.string(),
|
||||
@@ -35,6 +36,7 @@ export const STTConfigSchema = z.object({
|
||||
export type TTSConfig = {
|
||||
enabled: boolean;
|
||||
provider: 'external' | 'builtin';
|
||||
autoPlay: boolean;
|
||||
endpoint: string;
|
||||
apiKey: string;
|
||||
voice: string;
|
||||
@@ -132,6 +134,7 @@ export const UserPreferencesSchema = z.object({
|
||||
export const DEFAULT_TTS_CONFIG: TTSConfig = {
|
||||
enabled: false,
|
||||
provider: 'external',
|
||||
autoPlay: false,
|
||||
endpoint: "https://api.openai.com",
|
||||
apiKey: "",
|
||||
voice: "alloy",
|
||||
|
||||
Reference in new issue
Block a user