Skip to content

Ghost-Ashu/Bard-Voice-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bard Voice Assistant Web Application😃

Bard.Web.App.mp4

A Flask web application that provides a user interface to interact with a chatbot.

InstallationUsageLicense

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/your-repository.git
        cd your-repository
  2. Create a virtual environment (optional but recommended):
    python3 -m venv venv
        source venv/bin/activate
  3. Install the dependencies:
    pip install -r requirements.txt
  4. Obtain a Bard Token:
    • Sign up on the Bard website to get an API token.
    • Replace the token variable in app.py with your token.
  5. Download Whisper models:
    • Download the tiny and base models from the Whisper repository.
    • Place the models in the same directory as app.py.
  6. Run the application:
    python app.py
  7. Open your web browser and visit http://localhost:5000 to access the chatbot interface.

Usage

  • Enter text input: Type your message in the input field and press Enter or click the "Send" button. The chatbot will respond accordingly.
  • Speech input: Click the "Listen" button and speak your prompt to the chatbot. It will transcribe your speech, send it to the chatbot, and provide a spoken response.
  • Speech output: Enter your prompt in the input field and click the "Speak" button. The chatbot's response will be spoken aloud.

License

This project is licensed under the MIT License.