Files
openclaw/extensions/gradium/shared.ts
Laurent Mazare d7e2939791 feat: add Gradium text-to-speech provider (#64958)
Adds the Gradium bundled plugin with TTS and speech-provider registration, docs, label routing, and focused/live coverage.

Also carries the current main lint cleanup needed for the rebased CI lane.

Co-authored-by: laurent <laurent.mazare@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-24 18:43:53 +01:00

18 lines
664 B
TypeScript

export const DEFAULT_GRADIUM_BASE_URL = "https://api.gradium.ai";
export const DEFAULT_GRADIUM_VOICE_ID = "YTpq7expH9539ERJ";
export const GRADIUM_VOICES = [
{ id: "YTpq7expH9539ERJ", name: "Emma" },
{ id: "LFZvm12tW_z0xfGo", name: "Kent" },
{ id: "Eu9iL_CYe8N-Gkx_", name: "Tiffany" },
{ id: "2H4HY2CBNyJHBCrP", name: "Christina" },
{ id: "jtEKaLYNn6iif5PR", name: "Sydney" },
{ id: "KWJiFWu2O9nMPYcR", name: "John" },
{ id: "3jUdJyOi9pgbxBTK", name: "Arthur" },
] as const;
export function normalizeGradiumBaseUrl(baseUrl?: string): string {
const trimmed = baseUrl?.trim();
return trimmed?.replace(/\/+$/, "") || DEFAULT_GRADIUM_BASE_URL;
}