Unified TTS interface supporting ElevenLabs (cloud), OpenAI-compatible TTS servers (e.g. qwen3-tts-server with streaming PCM), and local TTS sidecars. Streaming vs buffered synthesis is a first-class option.
// Source: https://github.com/AEON-7/matrix-voip-agent | License: MIT | Copyright 2026 AEON-7
// Provided via justclaw.it.com; keep this notice with the code.
import { createServer } from "http";
import { loadConfig } from "./config.js";
import { setLogLevel, logger } from "./logger.js";
import { createMatrixClient } from "./matrix/client.js";
import { registerCallHandlers } from "./matrix/call-signaling.js";
import { CallManager } from "./call-manager.js";
import { BUILT_IN_TOOLS } from "./tools/built-in.js";
// Prevent EPIPE and other unhandled errors from crashing the process
process.on("uncaughtException", (err) => {
if ((err as any).code === "EPIPE") return; // ignore broken pipe
console.error("Uncaught exception:", err);
});
process.on("unhandledRejection", (err) => {
console.
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key