- 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
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.
- openai
- asyncio
- re
- whisper
- pydub
- speech_recognition
- pyttsx3
- EdgeGPT
- You'll need an OpenAI API key to use this bot.
- first register microsoft account and download microsoft edge (if you dont have one)
- Use vpn if you are Russian
- go to https://www.bing.com/ and get accecess to the gpt based bing-chat (set your account country as USA)
- download extinsinon https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm
- go to bing home page and click export cookies.json format to your clipbord
- create a file inside directory with script , name it - 'cookies.json' and paste your cookies in this file
- read USAGE
- 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'))
- then using powershell
choco install ffmpeg
-
check this vid to install ffmpeg correctly https://www.youtube.com/watch?v=jZLqNocSQDM
-
Basic way - Install ffmpeg in any way you like. https://ffmpeg.org/download.html
-
unzip the folder to any directory (for example C:/ffmpeg) and enter the path to the PATH variable, for example C:/ffmpeg/bin/
- 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.