Skip to main content

Go Voice Agent Starter

Get started using Deepgram's Voice Agent with this Go demo app

Go Voice Agent Starter

Start building interactive voice experiences with Deepgram's Voice Agent API using Python Flask starter application. This project demonstrates how to create a voice agent that can engage in natural conversations using Deepgram's advanced AI capabilities.

What is Deepgram?

Deepgram's (opens in new tab) voice AI platform provides APIs for speech-to-text, text-to-speech, and full speech-to-speech voice agents. Over 200,000+ developers use Deepgram to build voice AI products and features.

Sign-up to Deepgram

Before you start, it's essential to generate a Deepgram API key to use in this project. Sign-up now for Deepgram and create an API key (opens in new tab).

Prerequisites

  • Go 1.21 or higher
  • A Deepgram API Key
  • Modern web browser with microphone support

Quickstart

Follow these steps to get started with this starter application.

Clone the repository

  1. Go to GitHub and clone the repository (opens in new tab).

  2. Install dependencies:

go mod tidy
  1. Set your Deepgram API key:
export DEEPGRAM_API_KEY=your_api_key_here

Running the Application

Start the Flask server:

go run main.go

Then open your browser and go to:

http://localhost:3000
  • Allow microphone access when prompted.
  • Speak into your microphone to interact with the Deepgram Voice Agent.
  • You should hear the agent's responses played back in your browser.

Testing

To test the application run:

go test -v

Getting Help

Contributing

We welcome contributions! Please see our Contributing Guidelines (opens in new tab) for details.

Security

For security concerns, please see our Security Policy (opens in new tab).

Code of Conduct

Please see our Code of Conduct (opens in new tab) for community guidelines.

Author

Deepgram (opens in new tab)

License

This project is licensed under the MIT license. See the LICENSE (opens in new tab) file for more info.