Files
moloapp/src/google/caps.h
T
retoorandClaude Sonnet 5.5 837de58136 feat(clients): google cloud voice: generic client, TTS, STT, Gemini audio, live voice page
src/google: GoogleClient over molo::clients (key in x-goog-api-key, never in
URLs), Service base, TextToSpeech, SpeechToText, Generative (replies, audio
in, audio out), Recognizer/Synthesizer seams with cloud, gemini and vertex
backends, VoicePipeline with bounded history. Example: /voice live
conversation page, /voice/{say,hear,turn,reset}, /google/status. Keys load
from env, .env.json.local, .env.json. Paid routes are excluded from locust.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 04:05:41 +02:00

21 lines
612 B
C++

#pragma once
// Static ceilings for the Google Cloud part. Never autotuned.
#include <cstddef>
namespace molo::google {
struct Caps {
static constexpr std::size_t kMaxTtsChars = 5000;
static constexpr std::size_t kMaxSttBytes = 10u * 1024u * 1024u;
static constexpr int kDefaultOutputTokens = 300;
static constexpr int kMaxOutputTokens = 1024;
static constexpr std::size_t kMaxHistoryTurns = 20;
static constexpr std::size_t kMaxConversations = 1000;
static constexpr std::size_t kMaxConversationId = 64;
static constexpr std::size_t kMaxMessageChars = 4000;
};
} // namespace molo::google