Озвучивание ответов (Google Chirp 3 HD): режим и голос на чат, миграция 007, загрузка аудио в Slack; docs
All checks were successful
ci / test (push) Successful in 15s
ci / deploy (push) Successful in 1m5s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-13 22:01:47 +03:00
parent 0c4fb2df99
commit d8f3ddee37
15 changed files with 316 additions and 11 deletions

View File

@@ -37,6 +37,15 @@ export const driveSchema = z.object({
inboxScanSeconds: z.number().default(10),
});
export const ttsSchema = z.object({
/** Ключ API Google Cloud Text-to-Speech (Chirp 3 HD). Без ключа аудиоответы отключены (всегда только текст). */
apiKey: z.string().min(1),
languageCode: z.string().default("en-US"),
/** Голос по умолчанию, если у чата не задан свой (короткое имя Chirp 3 HD). */
defaultVoice: z.string().default("Aoede"),
speakingRate: z.number().min(0.25).max(2).optional(),
});
export const assistantPrepSchema = z.object({
http: z.object({ host: z.string().default("127.0.0.1"), port: z.number(), token: z.string().min(1) }),
lookaheadWorkDays: z.number().default(10),
@@ -46,5 +55,6 @@ export const assistantPrepSchema = z.object({
agent: agentSchema.default({}),
slack: slackSchema.optional(),
drive: driveSchema.optional(),
tts: ttsSchema.optional(),
});
export type AssistantPrepSettings = z.infer<typeof assistantPrepSchema>;