Please check the SDK here: https://github.com/neuphonic/neuphonic-js.
For comprehensive guides and official documentation, check out https://docs.neuphonic.com. If you need support or want to join the community, visit our Discord!
Get your API key from the Neuphonic website.
yarn install
This is an example of a Node.js Express application demonstrating how to use the Neuphonic API to:
- List available voices
- Retrieve restoration jobs
- Stream text-to-speech (TTS) audio
Copy your API key into .env ands start the server with:
yarn dev- GET /voices - Fetches a list of available voices from the Neuphonic API.
- GET /restorations - Retrieves a list of active restoration jobs.
- GET /ws - Streams synthesized speech using WebSockets.
- GET /sse - Streams synthesized speech using Server-Sent Events (SSE).
An example of using Neuphonic TTS and Agents API with NextJS.
Copy your API key into .env ands start the server with:
yarn devWhen the app launches, you'll see page with the links to TTS and Agents examples. To see the agents create one or more agents in your Neuphonic dashboard.
Check the simple MCP server at packages/mcp-server. You can run it and connect the agents. Try modifying the agent code in packages/nextjs/app/components/VoiceChat.tsx:92 and uncommenting mcp_servers.
Check instructions in packages/integration-twilio.