A custom python interface for pi.ai
Follow these steps to set up and run the Pi.AI Voice Assistant on your machine:
-
Clone the repository to your local machine.
-
Install the required dependencies by running the following command in your terminal:
pip install -r requirements.txt
-
Register on the Pi.AI website to obtain your API key (cookie).
-
Set up your environment variable:
- Create a
.env
file in the root of the project. - Add the following line to the
.env
file:PI_COOKIE=YOUR_API_KEY
- Replace
YOUR_API_KEY
with the API key you obtained from Pi.AI.
- Create a
-
Run the voice assistant:
python convo.py
- 🗣️ Voice Interaction: Communicate with the Unofficial Pi.AI Voice Assistant using your voice.
- 🤖 Real-time Responses: Get instant responses to your questions and queries.
- 📖 Read Aloud: Ask the assistant to read out information or messages for you.
- 🎶 Play Audio: Enjoy the audio output as the assistant reads messages in a natural voice.
- 🌐 Web Connectivity: Utilize web services to process your voice input.
Reverse PI is a community reverse-engineered project built with Python. It uses the speech_recognition library for voice recognition. The received text response is then converted to speech and played using VLC media player.
- Start the Unofficial Pi.AI Voice Assistant by running
python convo.py
. - Wait for the prompt to say something.
- Speak your command or question clearly.
- The assistant will display the recognized text and respond with relevant information.
- If the response includes an audio message, the assistant will play it for you.
The following libraries are used in this project:
- requests: For sending HTTP requests to the voice processing solution.
- json: For handling JSON data.
- os: For working with environment variables and file operations.
- speech_recognition: For voice recognition.
This project is a community-driven endeavor and not affiliated with the official Pi.AI project. The use of any API or voice processing solution may be subject to terms and conditions set by the respective providers. Please ensure compliance with their policies and guidelines.
Contributions are welcome! As this is a community project, your creative ideas and contributions can enhance the experience of the Unofficial Pi.AI Voice Assistant. Feel free to open an issue or submit a pull request with your improvements.