GithubHelp home page GithubHelp logo

ai-austin / bardvoice Goto Github PK

View Code? Open in Web Editor NEW
63.0 4.0 24.0 47 KB

Voice activated Python interface for Bard AI. Implements open sourced reverse engineered Bard API, local text to speech and OpenAI Whisper for local transcribing.

Python 100.00%

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bardvoice's Issues

error transcribing audio

Screenshot 2023-05-19 at 23 11 30

I've named the mp3 file but it didn't even detect or write the sound i dont'n know how to fix it?
PLeasseeee heeeeelllpppp

no sound

I get no sound back it creates the audio file for wake detected and that's it I am on a Mac m2 running it on conda 3.10 env

Say "google" to wake me up.

/Users/user/miniforge3/envs/bard/lib/python3.10/site-packages/whisper/transcribe.py:114: UserWarning: FP16 is not supported on CPU; using FP32 instead
warnings.warn("FP16 is not supported on CPU; using FP32 instead")
No wake word found. Try again.

Say "google" to wake me up.

uncertain - Bard not found

normally i have been able to follow along and everything works - even tho on windows- this one tho it is unable to find the Bard module despite being pip installed.
image
pip installed requirements.txt added in the token - but no dice there - tried manually pip installing Bard but same response.

thank you as always for your tutorials and your code examples. They have helped me learn and develop.


I was able to sort above my manually installing every package not sure what is going on with the requirements.txt file not installing

but now
image

asked GPT 4 it told me it was potentially an error with the token - so i went and made sure i got the right one form the dev console - still having an error tho and not sure how to solve

sorry for the newbishness.
image
image
image

correction for PyAudio==2.3.0

whe you run the pip install -r requirements.txt you will get an error in the terminal because of a typo in readme particularly for PyAudio==2.3.0. i noticed it right away and just thought i would bring it up to be updated. anyway thanks for this code man, you are doing awesome

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.