Quickstart
Start building with Neuphonic!
Get Your API Key
Head over to our Playground to generate an API key.
Install an SDK
Install our Python SDK.
Try an Example Application
Try out one of our example programs.
Get Your API Key
Navigate to our Playground and create an account. Then, go to the API Keys section using the navigation bar on the left, and click “Generate New API Key”.
Save this API Key in a secure location. We do not store API keys, and you will not be able to view it again.
Install an SDK
We currently offer a Python SDK supporting Python versions 3.9 and above.
To run the example program below, you must also install an additional dependency to enable audio playback through your machine’s speakers.
Next, store your API key in an environment variable.
You can do this either at the project level using a .env
file, or globally so that any project
using pyneuphonic
can access it.
The example applications below assumes that the environment variable is set globally for simplicity.
However, you can modify it to use a .env
file and the python-dotenv
package to load the
environment variable.
Try an Example Application
Simple Text to Speech
Here is a demonstration of how to use our Server Side Events (SSE) endpoint to create audio for the phrase “Hello, world!”. Feel free to modify the phrase to anything you like!
Agents (Chatbots)
Our Agents
feature enables you to create personalized agents with custom prompts and interact with them.
Here is an example of how to build a basic chatbot with a straightforward system prompt instructing
it to respond in 10 words or fewer and greet the user with “Hi, how can I help you today?”
Running the example will have the chatbot greet you. You can reply by speaking, and your input will
be processed by a speech recognition system. A GPT-4o
LLM, combined with Neuphonic’s text to
speech engine will generate the response. Give it a go!