Skip to content

Commit

Permalink
- create boxes for each image pair and get synthesis instance from mo…
Browse files Browse the repository at this point in the history
…zilla api
  • Loading branch information
Titus210 committed Oct 8, 2024
1 parent 6bbe23d commit 21adb24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/mozilla-text-to-speech/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ const data = [
{ image: './img/school.jpg', text: "I want to go to school. I want to study." },
{ image: './img/grandma.jpg', text: "I want to go to grandma's house. I want to visit." }
];

// Create boxes for each image-text pair
data.forEach(createBox);

// Create a speech synthesis instance
const message = new SpeechSynthesisUtterance();
let voices = [];

0 comments on commit 21adb24

Please sign in to comment.