Openai-assistant

Ibrahim Al-Shinnawi

Security Engineer
AI Developer
Cybersecurity
OpenAI
Python

Speech-to-Text ChatGPT Interface

Introduction

This project is a speech-to-text interface that integrates with OpenAI's ChatGPT using the updated API. It allows users to interact with ChatGPT through spoken language, converting speech to text, querying ChatGPT, and receiving verbal responses.

Features

Voice Recognition: Utilizes Google's speech recognition to convert voice to text.
ChatGPT Integration: Sends the text to ChatGPT and receives responses.
Flexible ChatGPT Models: Supports various ChatGPT models available through OpenAI.
Environment Variable for API Key: Securely manages the OpenAI API key using an environment variable.

Requirements

Python: Python 3.x is required.
OpenAI Python Package: The openai package is used to interact with the OpenAI API.
Speech Recognition Package: The speech_recognition package is required for converting spoken language to text.
Microphone: A working microphone setup is necessary for capturing speech.
OpenAI API Key: An API key from OpenAI is needed to use their GPT models.

Setup and Installation

Clone the Repository:
Set Up Environment Variables:
Install Dependencies:

License

This project is released under the MIT License. This means it comes with permission for a wide range of uses with no restrictions on modifications or distribution.

Explanation of Requirements

Python 3.x: The program is written in Python, and a current version of Python 3 is required to run the script.
OpenAI Python Package: This package (openai) is used to interact with the OpenAI API. It sends requests to the API and processes the responses.
Speech Recognition Package: The speech_recognition package is essential for the program to convert spoken language into text. This package supports various speech recognition engines, with Google's engine used in this project.
Microphone: A functional microphone is needed to capture your voice inputs.
OpenAI API Key: To use OpenAI's GPT models, an API key from OpenAI is required. This key must be set as an environment variable for security purposes.
Partner With Ibrahim
View Services

More Projects by Ibrahim