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>
This commit is contained in:
+8
-2
@@ -14,7 +14,7 @@ Open `http://127.0.0.1:8080/` and click through the matrix; `/stats` has the
|
||||
charts (Chart.js is embedded in the binary, no CDN). Narrow the
|
||||
window to 360px: the top nav collapses into a dropdown menu.
|
||||
|
||||
Run the suite (105 route-level integration tests, real stack, no mocks):
|
||||
Run the suite (111 route-level integration tests, real stack, no mocks):
|
||||
|
||||
```sh
|
||||
make -f example/example.mk example-test
|
||||
@@ -114,6 +114,12 @@ on a missing row.
|
||||
|
||||
| statistics | `/stats` | `tests/example/stats/page_test.cpp` | `plans/02-observability.md` |
|
||||
| statistics data | `/stats/data` | `tests/example/stats/data_test.cpp` | `plans/02-observability.md` |
|
||||
| google status | `/google/status` | `tests/example/google/status_test.cpp` | `src/google/SPEC.md` |
|
||||
| voice conversation page | `/voice` | `tests/example/voice/page_test.cpp` | `src/google/SPEC.md` |
|
||||
| voice text to speech | `/voice/say` | `tests/example/voice/say_test.cpp` | `src/google/SPEC.md` |
|
||||
| voice speech to text | `/voice/hear` | `tests/example/voice/hear_test.cpp` | `src/google/SPEC.md` |
|
||||
| voice turn | `/voice/turn` | `tests/example/voice/turn_test.cpp` | `src/google/SPEC.md` |
|
||||
| voice reset | `/voice/reset` | `tests/example/voice/reset_test.cpp` | `src/google/SPEC.md` |
|
||||
|
||||
### Extended features
|
||||
|
||||
@@ -203,7 +209,7 @@ example/
|
||||
fw/ # skeletal framework public API (namespace molo::example::fw)
|
||||
app/ # demo routes (namespace molo::example::app)
|
||||
static/ # disk static assets (responsive CSS, tiny JS)
|
||||
assets/ # embedded at build time (Chart.js, stats.js) via src/cli/embed
|
||||
assets/ # embedded at build time (Chart.js, stats.js, voice.js) via src/cli/embed
|
||||
tools/ # build helper wrapping the embedder
|
||||
tests/example/ # route-level integration tests mirroring URLs
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user