# Fonoster — Open-Source AI Telecom Platform > Open-source alternative to Twilio for building AI voice applications. Programmable voice with Answer, Say, Gather, Dial verbs. NodeJS SDK, OAuth2, Google Speech API. MIT, 7,800+ stars. ## Install Save as a script file and run: ## Quick Use 1. Install the SDK: ```bash npm install @fonoster/sdk ``` 2. Create a voice application: ```javascript const { VoiceServer } = require("@fonoster/voice"); new VoiceServer().listen(async (req, res) => { await res.answer(); await res.say("Hello! How can I help you today?"); const input = await res.gather({ source: "speech" }); await res.say(`You said: ${input}`); await res.hangup(); }); ``` 3. Deploy with Docker: ```bash git clone https://github.com/fonoster/fonoster.git cd fonoster docker compose up -d ``` --- ## Intro Fonoster is the open-source alternative to Twilio with 7,800+ GitHub stars. It provides a programmable telecommunications platform for building AI voice applications, IVR systems, and phone bots. Features programmable voice verbs (Answer, Say, Gather, Dial), NodeJS SDK, OAuth2 authentication, Google Speech API integration, and multi-tenant support. Best for developers building AI-powered call centers, voice assistants, or automated phone systems without depending on proprietary platforms. See also: [AI agent tools on TokRepo](https://tokrepo.com/en/@Agent%20Toolkit). --- ## Fonoster — Build AI Voice Apps Like Twilio, But Open Source ### Why Fonoster Twilio charges per minute and per API call. Fonoster is self-hosted and open-source — you control your telephony infrastructure and costs. ### Programmable Voice Verbs | Verb | Description | |------|------------| | **Answer** | Pick up an incoming call | | **Say** | Text-to-speech output | | **Gather** | Collect user input (speech or DTMF) | | **Dial** | Connect to another number | | **Record** | Record the conversation | | **Play** | Play an audio file | ### Example: AI Customer Service Bot ```javascript const { VoiceServer } = require("@fonoster/voice"); new VoiceServer().listen(async (req, res) => { await res.answer(); await res.say("Welcome to AI Support. How can I help?"); const input = await res.gather({ source: "speech", timeout: 5000 }); // Process with AI (OpenAI, Claude, etc.) const aiResponse = await processWithAI(input); await res.say(aiResponse); await res.hangup(); }); ``` ### Key Features - **NodeJS SDK** — familiar JavaScript API for voice apps - **OAuth2 & JWT** — secure authentication - **RBAC** — role-based access control - **Multi-tenant** — serve multiple organizations - **Google Speech** — built-in speech recognition - **S3 Storage** — store recordings and assets - **SSL/TLS** — Let's Encrypt support - **Docker** — easy deployment ### FAQ **Q: What is Fonoster?** A: An open-source telecom platform (Twilio alternative) for building AI voice applications with programmable voice verbs, speech recognition, and a NodeJS SDK. **Q: Is Fonoster free?** A: Yes, fully open-source under MIT. Self-host on your own infrastructure. **Q: Can Fonoster integrate with AI models?** A: Yes, use the Gather verb to capture speech, process it with any AI model (OpenAI, Claude, etc.), and respond with Say. --- ## Source & Thanks > Created by [Pedro Sanders](https://github.com/fonoster). Licensed under MIT. > > [Fonoster](https://github.com/fonoster/fonoster) — ⭐ 7,800+ Thanks to Pedro Sanders for building an open-source telecom platform for AI developers. --- ## 快速使用 1. 安装 SDK: ```bash npm install @fonoster/sdk ``` 2. 创建语音应用(示例代码见上方) 3. Docker 部署: ```bash git clone https://github.com/fonoster/fonoster.git cd fonoster docker compose up -d ``` --- ## 简介 Fonoster 是开源的 Twilio 替代方案,GitHub 7,800+ star。提供可编程电信平台,用于构建 AI 语音应用、IVR 系统和电话机器人。支持可编程语音动词(Answer、Say、Gather、Dial)、NodeJS SDK、OAuth2、Google Speech API。适合构建 AI 客服中心、语音助手或自动电话系统的开发者。 --- ## Fonoster — 开源 AI 电信平台 ### 可编程语音动词 | 动词 | 功能 | |------|------| | Answer | 接听来电 | | Say | 文字转语音输出 | | Gather | 收集用户输入(语音或按键) | | Dial | 连接到另一个号码 | | Record | 录制对话 | ### FAQ **Q: Fonoster 是什么?** A: 开源电信平台(Twilio 替代),用于构建 AI 语音应用。 **Q: 免费吗?** A: 完全免费开源(MIT),自托管。 --- ## 来源与感谢 > Created by [Pedro Sanders](https://github.com/fonoster). Licensed under MIT. > > [Fonoster](https://github.com/fonoster/fonoster) — ⭐ 7,800+ --- Source: https://tokrepo.com/en/workflows/0d66478c-33e3-11f1-9bc6-00163e2b0d79 Author: AI Open Source