This project demonstrates the use of VAPI's live call control features to monitor and interact with ongoing calls in real-time. With this framework, you can listen to live calls and send prompts to guide your agents without interrupting the flow of conversation.
This project is for educational and internal use only. Monitoring or recording calls without explicit or implied consent from both parties is illegal. Ensure you adhere to all legal and ethical standards when using this tool.
- Live Call Monitoring: Listen to ongoing calls in real time using WebSocket audio streaming.
- Call Control: Inject messages or commands to guide agents during live calls.
- Audio Playback: Low-latency audio processing in a browser environment using
AudioWorkletProcessor. - Interactive Web Interface: A simple webpage to facilitate monitoring and call control.
Follow these steps to set up and run the project:
git clone https://github.com/<this-repo-url.git>
cd your-project-folder
npm install
Open the config.js file and input your VAPI API key and phone number ID:
module.exports = {
apiKey: "your-vapi-api-key",
phoneNumberId: "your-vapi-phone-number-id",
apiBaseUrl: "https://api.vapi.ai",
};In src/server.js, specify the server URL. By default, it runs locally:
const port = 8000;
app.listen(port, () => console.log(`Server running on http://localhost:${port}`));node src/server.js