Examples
Chatbot voice
Voice Chatbot Example
This example demonstrates how to create a voice-enabled chatbot using Quivr, Flask, and OpenAI’s Whisper model. Users can ask questions via audio input and receive spoken responses.
Features
- Audio input for asking questions
- Speech transcription using OpenAI’s Whisper model
- Integration with Quivr API for intelligent responses
- Speech synthesis for audio playback
Prerequisites
- Python 3.6+
- Flask
- OpenAI Python package
- Requests package
Installation
-
Clone the repository:
-
Install dependencies:
-
Configure environment variables:
Usage
-
Start the Flask application:
-
Navigate to
http://localhost:5000
-
Click “Ask a question to Quivr”
-
Record your question
-
Wait for transcription and response
-
Listen to the synthesized response
For the complete example code, visit our GitHub repository.