speechtotext.mov
This project converts speech to text continuously using the Web Speech API and stores the converted text in a MySQL database.
- XAMPP (Apache, MySQL, PHP)
- Open
phpMyAdmin
athttp://localhost/phpmyadmin
. - Create a new database named
speechtotext
. - Create a table named
commands
with the following columns:id
(INT, Primary Key, Auto Increment)command
(VARCHAR(255))timestamp
(TIMESTAMP, defaultCURRENT_TIMESTAMP
)
- Create and place the
index.html
,style.css
,store_text.php
, andREADME.md
files in thehtdocs/speech-to-text
directory of your XAMPP installation
- Open your browser and navigate to
http://localhost/speech-to-text/index.html
.
- Speak into your microphone and observe the continuous conversion of speech to text
- Check the database to ensure the text is being stored correctly
- index.html: The main HTML file that includes the speech recognition script and displays the interface
- style.css: The CSS file that styles the interface
- store_text.php: The PHP script that stores the transcribed text into the MySQL database