Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/srilaasya/horizon_sf

Building something super cool! #HardwareAI
https://github.com/srilaasya/horizon_sf

Last synced: 2 days ago
JSON representation

Building something super cool! #HardwareAI

Awesome Lists containing this project

README

        

# Ality's Smart AR Glasses

## Overview
Ality's Smart AR Glasses revolutionize the AI chat interface, taking it beyond your usual screens. This application allows users to interact with the AI through voice commands, with responses displayed on smart AR glasses.

## Features
- Voice recognition using Google's Speech Recognition API
- AI responses generated by OpenAI's GPT-4
- Display responses on connected smart AR glasses via Bluetooth

## Prerequisites
Before you begin, ensure you have the following installed:
- Python 3.6 or higher
- pip (Python package installer)
- A Bluetooth connection to your smart AR glasses

## Installation Instructions

1. **Clone the repository**:
```bash
git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name
```

2. **Ensure you are on the master branch**:
```bash
git checkout master
```

3. **Create a virtual environment** (optional but recommended):
```bash
python3 -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```

4. **Install required packages**:
```bash
pip install -r requirements.txt
```

If you don't have a `requirements.txt` file, you can manually install the necessary packages:
```bash
pip install flask SpeechRecognition openai python-dotenv pyaudio
```

5. **Set up environment variables**:
Create a `.env` file in the root directory of your project and add your OpenAI API key:
```plaintext
OPENAI_API_KEY=your_api_key_here
```

6. **Run the application**:
Start the Flask server by running:
```bash
python app.py
```

7. **Access the application**:
Open your web browser and navigate to `http://127.0.0.1:5000` to access the application.

## Usage
- Click the "Start Recording" button to begin voice input.
- Speak your command or question.
- Click the "Stop Recording" button to stop listening.
- The AI's response will be displayed on your smart AR glasses.

## Troubleshooting
- Ensure your smart AR glasses are connected via Bluetooth before running the application.
- If you encounter any issues, check the console for error messages.

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Acknowledgments
- [Flask](https://flask.palletsprojects.com/) for the web framework.
- [SpeechRecognition](https://pypi.org/project/SpeechRecognition/) for voice recognition.
- [OpenAI](https://openai.com/) for the GPT-4 model.