Skip to main content

AI Voice Bot

This project is an AI-powered voice bot built using OpenAI's Realtime API. It allows for real-time voice interaction through a command-line interface (CLI) and can be modified to handle text output, as well as include a mocked version for cost-effective testing.

Project Structure

  • ai_voice_bot/: Contains the main implementation of the voice bot.
├───ai_voice_bot
│   ├───client
│   │   └───__pycache__
│   ├───handlers
│   │   └───__pycache__
│   ├───mock
│   │   └───__pycache__
│   └───__pycache__
  • misc/: Directory for miscellaneous files.
  • .gitignore: Specifies which files should be ignored by Git.
  • LICENSE: The project's license file.
  • README.md: The README file that you're reading right now.
  • install.bat: A batch script for setting up the environment.
  • mock_bot.py: A mock version of the bot for testing without using the API.
  • push.bat: A batch script for pushing changes to GitHub.
  • setup.py: The setup script for packaging and distributing the project.
  • text_bot.py: The script for handling text-based output from the bot.
  • voice_bot.py: The script for handling voice-based interaction.

Features

  • Voice Interaction: The bot supports real-time voice input and can generate real-time responses using OpenAI's Realtime API.
  • Text-Based Interaction: You can modify the bot to handle text input and output instead of voice, allowing for more versatile use cases.
  • Mock Bot: The mock bot allows for testing and development without incurring costs from the API.

Installation

To install this project, clone the repository and run the following commands:

git clone https://github.com/myaichat/ai_voice_bot.git
cd ai_voice_bot
pip install -e .

Usage

Voice Interaction

To start the voice interaction bot, run the following command:

python voice_bot.py

Text-Based Interaction

To start the text-based interaction bot, run the following command:

python text_bot.py

Mock Bot

To run the mock bot for testing, use the following command:

python mock_bot.py

Building the Project

To build the project and create a wheel distribution:

pip install wheel
python setup.py sdist bdist_wheel

You can find the built wheel file in the dist/ folder.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

References

https://github.com/run-llama/openai_realtime_client

Metadata

Release files for ai-voice-bot 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-voice-bot 1.0.1
File Size Uploaded
ai-voice_bot-1.0.1.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-voice-bot 1.0.1
File Interpreter ABI Platform
ai_voice_bot-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 56.5 kB

Release files / ai-voice_bot-1.0.1.tar.gz

Download URL ai-voice_bot-1.0.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d120888b6e54112873bad17e64926c6a62e002eb97bfe743348886df8d1763d9
BLAKE2b-256 checksum
How to use checksums
0cb8eaafc4ee3a091a2a11e8f2c2870554072f005ff48c1e21a7c070cabd8e52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.11

Release files / ai_voice_bot-1.0.1-py3-none-any.whl

Download URL ai_voice_bot-1.0.1-py3-none-any.whl
Size 39.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c2e2c6b8f1801841383daee96c6542968e34d6fe442c90ef803782958b94eba
BLAKE2b-256 checksum
How to use checksums
535255a254c0808217d090fd16f0b48a06fefa24e2661ba3acced80ade1ba8d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.11

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page