Skip to content

neuphonic/neuphonic-js-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example of usage Neuphonic Typescript SDK

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!

API Key

Get your API key from the Neuphonic website.

Install the dependencies

yarn install

Express application

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

Running the application

Copy your API key into .env ands start the server with:

yarn dev

Available Endpoints

  • 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).

NextJS application

An example of using Neuphonic TTS and Agents API with NextJS.

Running the application

Copy your API key into .env ands start the server with:

yarn dev

When 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.

Connecting to MCP server

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.

Integrations

Twilio

Check instructions in packages/integration-twilio.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors