Skip to content

Audio-based Chatbot This is an audio-based chatbot that listens to voice prompts and responds with text-to-speech. The bot uses the Bing (free) and OpenAI API (not freešŸ¤”) for generating responses to user prompts.

SnappsiSnappes/BingGPT-free-ai-assistant-windows-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

20 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

  • Clone the repository on your computer.
  • Create a virtual environment with a command in CMD/powershell python -m venv venv and activate it .venv/Scripts/activate
  • Python 3.10.6 x64 - tested
  • Install all dependencies with the command
python.exe -m pip install --upgrade pip
pip install -r requirements.txt
  • install ffmpeg in the correct way, there is an explanation below

Audio-based Chatbot

This is an audio-based chatbot that listens to voice prompts and responds with text-to-speech. The bot uses the Bing (free) and OpenAI API (not freešŸ¤”) for generating responses to user prompts.

Requirements

  • openai
  • asyncio
  • re
  • whisper
  • pydub
  • speech_recognition
  • pyttsx3
  • EdgeGPT
  • You'll need an OpenAI API key to use this bot.

instructions

  1. first register microsoft account and download microsoft edge (if you dont have one)
  2. Use vpn if you are Russian
  3. go to https://www.bing.com/ and get accecess to the gpt based bing-chat (set your account country as USA)
  4. download extinsinon https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm
  5. go to bing home page and click export cookies.json format to your clipbord
  6. create a file inside directory with script , name it - 'cookies.json' and paste your cookies in this file
  7. read USAGE

issuses with installing ffempeg correctly

  1. https://chocolatey.org/install#individual install chocolately using this code in powershell Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
  2. then using powershell choco install ffmpeg

Usage

  • Install requirements: pip install -r requirements.txt
  • Replace the [paste your OpenAI API key here] placeholder with your API key in the code.
  • Run the script
  • Say "bing" or "gpt" to wake the bot.
  • Say a prompt to receive a response.

About

Audio-based Chatbot This is an audio-based chatbot that listens to voice prompts and responds with text-to-speech. The bot uses the Bing (free) and OpenAI API (not freešŸ¤”) for generating responses to user prompts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages