#pragma once // Recognizer and Synthesizer over Gemini: audio understanding for speech to // text, Gemini TTS models for text to speech. Works with any credential the // Gemini endpoint accepts (AI Studio key, Vertex express key, OAuth). #include #include #include "google/generative.h" #include "google/voice_io.h" namespace molo::google { class GeminiRecognizer : public Recognizer { public: explicit GeminiRecognizer(std::shared_ptr generative, std::string model = ""); Transcript recognize(const RecognitionRequest& request) const override; private: std::shared_ptr generative_; std::string model_; }; class GeminiSynthesizer : public Synthesizer { public: explicit GeminiSynthesizer(std::shared_ptr generative, std::string model = ""); Audio synthesize(const SynthesisRequest& request) const override; private: std::shared_ptr generative_; std::string model_; }; } // namespace molo::google