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>
27 lines
691 B
C++
27 lines
691 B
C++
#pragma once
|
|
|
|
// A Google service is a name plus a base URL (host and version prefix).
|
|
// New Google APIs are one constant here and one Service subclass.
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace molo::google {
|
|
|
|
struct ServiceEndpoint {
|
|
std::string name;
|
|
std::string base_url; // No trailing slash.
|
|
};
|
|
|
|
namespace endpoints {
|
|
ServiceEndpoint text_to_speech();
|
|
ServiceEndpoint speech_to_text();
|
|
ServiceEndpoint generative();
|
|
// Gemini through Vertex AI (express-mode API keys start with "AQ.").
|
|
ServiceEndpoint vertex_generative();
|
|
// Every endpoint this build knows, for status pages.
|
|
std::vector<ServiceEndpoint> catalog();
|
|
} // namespace endpoints
|
|
|
|
} // namespace molo::google
|