old commit

master
poni 3 years ago
parent 0ca13baf05
commit 1d39e9825e

@ -2,11 +2,20 @@ Helloooo
This is a little file to explain what's going on in these folders.
the folder 'speech' contains >
the 'index.html' > in order to visualize which words are recognized by
the Speech-to-text
the 'style.css' > where is written the layout of the html page
the index.js > where is written the code to use the Speech-to-text app
the folder 'layout' contains >
the folder 'paged.js_files' > the library Paged.js
the folder 'paged.js_files' > contains the library Paged.js
Paged.js is a free and open source JavaScript library that paginates
content in the browser to create PDF output from any HTML content.)
content in the browser to create PDF output from any HTML content.
https://www.pagedjs.org/about/
the folder 'styles' > there are three different .css files that change
@ -17,17 +26,4 @@ the folder 'layout' contains >
server in your computer: how?
you can use python, opening the terminal/cmd and digit >
python3 -m http.server
you can use Visual Studio Code with the extension "Live Server"
the folder 'speech' contains >
the 'index.html' > in order to visualize which words are recognized by
the Speech-to-text
the 'style.css' > where is written the layout of the html page
the index.js > where is written the code to use the Speech-to-text app
you can use Visual Studio Code with the extension "Live Server"

@ -98,7 +98,7 @@ function startConverting() {
for (let i = event.resultIndex; i < event.results.length; i++) {
let transcript = event.results[i][0].transcript;
// console.log(event.results[i][0]);
transcript.replace("\n", "<br>");
transcript.replace("\n", "<br><br>");
if (event.results[i].isFinal) {
finalTranscripts += transcript;
} else { // There are also shown the interim results and according to their "confidence" (the percentage of how much the word is correct) the color of each word could change
@ -124,4 +124,4 @@ function startConverting() {
}
// 2021, copyleft Kamo and Funix
// 2021, copyleft Kamome and Funix
Loading…
Cancel
Save