feat(clients): audio: ElevenLabs, AssemblyAI, Deepgram, Cartesia, Speechmatics, Hume

Table driven REST (509 rows verified against vendor specs by tools/check_spec.py),
WebSockets over the src/google/live client, neutral SpeechSynthesizer /
SpeechRecognizer seam, /ai/audio demo with dry runs, 110 package tests and 5
route tests. PlayHT has no public API; LeMUR is gone from AssemblyAI's spec.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 15:36:57 +01:00
co-authored by Claude Sonnet 5.5
parent 3db67fcf1f
commit 6d80dd0223
132 changed files with 14060 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
// Route: GET /ai/audio (page, no credential needed)
#include "support/Assert.hpp"
using namespace molo::example::test;
int main() {
Fixture f;
auto res = f.client->get("/ai/audio");
check(res.status == 200, "status 200");
check(contains(res.headers.get("Content-Type"), "text/html"), "html");
check(contains(res.body, "Audio") && contains(res.body, "viewport"), "page and mobile viewport");
check(contains(res.body, "/embedded/ai_audio.js"), "script wired");
check(contains(res.body, "<select id=\"au-route\""), "route picker is a dropdown, not a button group");
check(contains(res.body, "<select id=\"au-provider\""), "provider picker is a dropdown");
check(f.client->post("/ai/audio", "{}", "application/json").status == 405, "post is 405");
auto js = f.client->get("/embedded/ai_audio.js");
check(js.status == 200 && contains(js.body, "/ai/audio/"), "script is served");
auto idx = f.client->get("/");
check(idx.status == 200 && contains(idx.body, "/ai/audio"), "matrix lists the page");
return finish("ai/audio/page");
}