Spaces:
Configuration error
Configuration error
File size: 2,147 Bytes
603e888 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
<h1 align="center">Bard Voice Assistant Web Application😃</h1>
https://github.com/Ghost-Ashu/Bard-Voice-Assistant/assets/41056892/af6bd22c-4b81-4ad3-9784-d64e2e11bceb
<p align="center">
<strong>A Flask web application that provides a user interface to interact with a chatbot.</strong>
</p>
<p align="center">
<a href="#installation">Installation</a> •
<a href="#usage">Usage</a> •
<a href="#license">License</a>
</p>
## Installation
<ol>
<li>Clone the repository:
<pre><code>git clone https://github.com/your-username/your-repository.git
cd your-repository</code></pre>
</li>
<li>Create a virtual environment (optional but recommended):
<pre><code>python3 -m venv venv
source venv/bin/activate</code></pre>
</li>
<li>Install the dependencies:
<pre><code>pip install -r requirements.txt</code></pre>
</li>
<li>Obtain a Bard Token:
<ul>
<li>Sign up on the <a href="https://www.bard.ai/">Bard</a> website to get an API token.</li>
<li>Replace the <code>token</code> variable in <code>app.py</code> with your token.</li>
</ul>
</li>
<li>Download Whisper models:
<ul>
<li>Download the <code>tiny</code> and <code>base</code> models from the <a href="https://github.com/snakers4/whisper">Whisper</a> repository.</li>
<li>Place the models in the same directory as <code>app.py</code>.</li>
</ul>
</li>
<li>Run the application:
<pre><code>python app.py</code></pre>
</li>
<li>Open your web browser and visit <code>http://localhost:5000</code> to access the chatbot interface.</li>
</ol>
## 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 <a href="LICENSE">MIT License</a>.
|