You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Realtime Voice Interface in PraisonAI provides an interactive, voice-based communication channel with AI models. This interface allows for real-time audio input and output, enabling a more natural and dynamic conversation experience.
4
+
5
+
## Features
6
+
7
+
- Real-time voice input processing
8
+
- Text-to-speech output for AI responses
9
+
- Seamless integration with OpenAI's realtime API
10
+
- Support for various AI models
11
+
- Persistent conversation history
12
+
13
+
## Getting Started
14
+
15
+
To use the Realtime Voice Interface, follow these steps:
16
+
17
+
1. Install PraisonAI with the realtime dependencies:
18
+
```bash
19
+
pip install "praisonai[realtime]"
20
+
```
21
+
22
+
2. Set up your OpenAI API key:
23
+
```bash
24
+
export OPENAI_API_KEY="your-api-key-here"
25
+
```
26
+
27
+
3. Launch the Realtime Voice Interface:
28
+
```bash
29
+
praisonai realtime
30
+
```
31
+
32
+
## Usage
33
+
34
+
Once the interface is launched:
35
+
36
+
1. Click the microphone button or press 'P' to start voice input.
37
+
2. Speak your message or query.
38
+
3. The AI will process your input and respond with both text and voice.
39
+
4. The conversation history is maintained for context in ongoing discussions.
40
+
41
+
## Configuration
42
+
43
+
You can configure various aspects of the Realtime Voice Interface:
44
+
45
+
- Model selection: Choose different AI models for processing.
46
+
- Voice settings: Adjust voice characteristics for the AI's speech output.
47
+
- Audio settings: Configure input/output audio formats and quality.
48
+
49
+
## Troubleshooting
50
+
51
+
If you encounter issues:
52
+
53
+
- Ensure your microphone is properly connected and permitted in your browser.
54
+
- Check your internet connection for stable real-time communication.
55
+
- Verify that your OpenAI API key is correctly set and has the necessary permissions.
56
+
57
+
For more detailed information and advanced usage, please refer to the [PraisonAI documentation](https://docs.praison.ai).
0 commit comments