Voice activated Python interface for Bard AI. Implements open sourced reverse engineered Bard API and OpenAI Whisper for local transcribing.
NOTE: Open AI whisper will not run on Python versions newer than 3.10. Python 3.11 and newer will not run this program.
Sign into your account with Bard access at https://bard.google.com/
- F12 for developer console
- Copy the values
- Session: Go to Application โ Cookies โ
__Secure-1PSID
. Copy the value of that cookie.
- Session: Go to Application โ Cookies โ
Clone GitHub repo.
git clone url
Change directory to bard_voice.
cd bard_voice
Paste your Bard Token into line 10 of the main.py file, replacing {YOUR BARD TOKEN}.
token = "{YOUR BARD TOKEN}"
Install Python dependencies (use pip3 if your system requires).
pip install -r requirements.txt
Whisper requires the command-line tool ffmpeg
to be installed on your system, which is available from most package managers:
# on Ubuntu or Debian
sudo apt update && sudo apt install ffmpeg
# on Arch Linux
sudo pacman -S ffmpeg
# on MacOS using Homebrew (https://brew.sh/)
brew install ffmpeg
# on Windows using Chocolatey (https://chocolatey.org/)
choco install ffmpeg
# on Windows using Scoop (https://scoop.sh/)
scoop install ffmpeg
python main.py