This repository implements a Voice-to-Text feature using the annyang library in JavaScript. Users can interact with the application using voice commands, converting spoken words into text. This README provides details on dependencies, installation steps, available commands, how they work, and information about the developer.
The primary dependency for this project is the annyang library, a lightweight JavaScript library for adding voice commands to web applications. Include this library in your project.
To install the necessary packages, follow these steps:
-
Include the annyang library in your project by adding the following script tag to your HTML:
<script src="https://cdnjs.cloudflare.com/ajax/libs/annyang/2.6.1/annyang.min.js"></script> <script src="./backend.js"></script>
Ensure these scripts are included appropriately in your HTML file to enable the Voice-to-Text feature in your application.
The following voice commands have been added to the application:
-
"Stop Listening"
- Functionality: Pauses voice recognition.
- How to use: Say "Stop Listening" during voice recognition.
-
"Resume Listening"
- Functionality: Resumes voice recognition.
- How to use: Say "Resume Listening" during a paused state.
-
"PK"
- Functionality: Stops listening completely.
- How to use: Say "PK" during any state to stop voice recognition.
-
Stop Listening:
- Pauses voice recognition with
annyang.pause();. - The application responds with "Listening paused. Say 'Resume Listening' to continue."
- Pauses voice recognition with
-
Resume Listening:
- Resumes voice recognition with
annyang.resume();. - The application responds with "Listening resumed..."
- Resumes voice recognition with
-
PK:
- Stops listening completely with
annyang.abort();. - Additionally, it processes the voice result, removes certain keywords, and adds the voice entry to the list.
- Stops listening completely with