Skip to content

Commit fea4f3b

Browse files
committed
Updated files
1 parent 48f607c commit fea4f3b

File tree

3 files changed

+7
-82
lines changed

3 files changed

+7
-82
lines changed

23 - Speech Synthesis/index-FINISHED.html

Lines changed: 0 additions & 75 deletions
This file was deleted.
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ <h1>The Voiceinator 5000</h1>
2828

2929
</div>
3030

31-
<script>
32-
const msg = new SpeechSynthesisUtterance();
33-
let voices = [];
34-
const voicesDropdown = document.querySelector('[name="voice"]');
35-
const options = document.querySelectorAll('[type="range"], [name="text"]');
36-
const speakButton = document.querySelector('#speak');
37-
const stopButton = document.querySelector('#stop');
31+
<script src="speech.js">
3832
</script>
3933

4034
</body>

23 - Speech Synthesis/speech.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const msg = new SpeechSynthesisUtterance();
2+
let voices = [];
3+
const voicesDropdown = document.querySelector('[name="voice"]');
4+
const options = document.querySelectorAll('[type="range"], [name="text"]');
5+
const speakButton = document.querySelector('#speak');
6+
const stopButton = document.querySelector('#stop');

0 commit comments

Comments
 (0)