Git Product home page Git Product logo

bardvoice's Introduction

Google Bard Voice Activated Assistant

Google AI BARD powered Python voice assistant. Implements a free Bard API and OpenAI Whisper for local transcribing.

YouTube tutorial and preview

https://youtu.be/vfbmlRSgj9Q

NOTE: Open AI whisper will not run on Python versions newer than 3.10. Python 3.11 and newer will not run this program.

Authentication

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 and __Secure-1PSIDTS. Copy the values of those.
    • Paste the values in line 10 & 11 for the token and ts_token variables inside main.py

Installation

Clone GitHub repo.

git clone https://github.com/Ai-Austin/BardVoice

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

Startup Voice Assistant

python main.py

bardvoice's People

Contributors

ai-austin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.