Spaces:
Running
Running
Update index.html
Browse files- index.html +8 -1
index.html
CHANGED
@@ -80,6 +80,11 @@
|
|
80 |
document.getElementById('speed_label').textContent = value//sformattedNumber
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
|
|
83 |
window.onload = async function(){
|
84 |
document.getElementById('textInput').onchange = main;
|
85 |
document.getElementById('myButton').onclick = main;
|
@@ -221,7 +226,9 @@ Good to see you!
|
|
221 |
|
222 |
|
223 |
</script>
|
224 |
-
|
|
|
|
|
225 |
<input type="text" id="textInput" value ="Hello." placeholder="Enter some text here...">
|
226 |
|
227 |
<button id="myButton">Text To Speak</button><br>
|
|
|
80 |
document.getElementById('speed_label').textContent = value//sformattedNumber
|
81 |
}
|
82 |
|
83 |
+
function tts(text,spk){
|
84 |
+
document.getElementById('textInput').value = text
|
85 |
+
document.getElementById('spks').value = spk
|
86 |
+
main()
|
87 |
+
}
|
88 |
window.onload = async function(){
|
89 |
document.getElementById('textInput').onchange = main;
|
90 |
document.getElementById('myButton').onclick = main;
|
|
|
226 |
|
227 |
|
228 |
</script>
|
229 |
+
<div id="buttons">
|
230 |
+
<button onclick="tts(self.textContent,1)">Label1</button>
|
231 |
+
</div>
|
232 |
<input type="text" id="textInput" value ="Hello." placeholder="Enter some text here...">
|
233 |
|
234 |
<button id="myButton">Text To Speak</button><br>
|