Skip to content

pavankay/OpenAi_Api_voiceChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Voice chat

We utilize Open AI's whisper v2 model for transcription, Open AI gpt 4 for processing, and Open AI's Text To Speech (TTS) model.

Getting started

  • Clone this respostory

  • Python 3.12. Download here and make sure it's added to PATH.

  • Run the following command to install the necessary Python packages:

pip install pyaudio wave pygame speech_recognition python-dotenv
  • Get and Open AI api key you must have an acount to do so.

  • Paste the key into the .env file

  • Make a new folder in the same direcotry called:"speech_files"

  • Run this command to start:

pip install pyaudio wave pygame speech_recognition python-dotenv

Important notes

  • In the code provided I use GPT-4 however if you dont have a paid acount with Open AI you will have to switch the model. More info here.

About

A voice chat with chatgpt 4. whisper 1, and tts 1-hd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages