https://github.com/deepgram/voice-agent-nodejs-client
A NodeJS client for the Voice Agent API
https://github.com/deepgram/voice-agent-nodejs-client
Last synced: 5 months ago
JSON representation
A NodeJS client for the Voice Agent API
- Host: GitHub
- URL: https://github.com/deepgram/voice-agent-nodejs-client
- Owner: deepgram
- License: isc
- Created: 2024-07-17T18:44:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T18:49:47.000Z (over 1 year ago)
- Last Synced: 2025-01-23T21:51:15.506Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# voice-agent-nodejs-client
This is a NodeJS client for interacting with Deepgram's Voice Agent API.
## Instructions
1. Set environment variables with your Deepgram API key and Voice Agent URL:
```
export DEEPGRAM_API_KEY=
export VOICE_AGENT_URL=
```
2. Install dependencies:
```
npm install
```
3. Run the app:
```
node app.js
```
4. Start talking into your mic!
The app includes an example function call where you can ask the system to look-up a customer's information by ID, phone, or email. The customer details are:
```
CUST0042: John Smith, Email: john@example.com, Phone: +15551234567
```
## Audio Issues?
Make sure your system meets the requirements for the [microphone](https://www.npmjs.com/package/mic#installation) and [playback](https://www.npmjs.com/package/speaker) libraries used by the client.