Add TTS settings configuration and context management

This commit is contained in:
Chris Scott committed 2025-12-21 19:52:54 -05:00
1 parent 1ae8ed81b2
commit af39267aae
5 files changed
+658 -245

No files matched your search

+3
View File
@@ -8,6 +8,7 @@ export const CustomCommandSchema = z.object({
export const TTSConfigSchema = z.object({
enabled: z.boolean(),
provider: z.enum(['external', 'builtin']).default('external'),
endpoint: z.string(),
apiKey: z.string(),
voice: z.string(),
@@ -27,6 +28,7 @@ export const CustomAgentSchema = z.object({
export type TTSConfig = {
enabled: boolean;
provider: 'external' | 'builtin';
endpoint: string;
apiKey: string;
voice: string;
@@ -75,6 +77,7 @@ export const UserPreferencesSchema = z.object({
export const DEFAULT_TTS_CONFIG: TTSConfig = {
enabled: false,
provider: 'external',
endpoint: "https://api.openai.com",
apiKey: "",
voice: "alloy",