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>
20 lines
429 B
C++
20 lines
429 B
C++
#pragma once
|
|
|
|
// Cloud Speech-to-Text: speech:recognize (synchronous, up to ~1 minute).
|
|
|
|
#include <string>
|
|
|
|
#include "google/service.h"
|
|
#include "google/voice_io.h"
|
|
|
|
namespace molo::google {
|
|
|
|
class SpeechToText : public Service, public Recognizer {
|
|
public:
|
|
explicit SpeechToText(std::shared_ptr<GoogleClient> client);
|
|
|
|
Transcript recognize(const RecognitionRequest& request) const override;
|
|
};
|
|
|
|
} // namespace molo::google
|