This is a Talking Computer
rupinYAY (9)

It is a Computer which can talk. It talks by the words you put in the text box. This was made by javascript, and html.

You are viewing a single comment. View All
mwilki7 (943)

It is not working for me, I think it's because you got a duplicate line at line 22:

line 17:    const utterance = new SpeechSynthesisUtterance(text)
line 18:    utterance.rate = speedInput.value || 1
line 19:    utterance.addEventListener('end', () => {
line 20:      textInput.disabled = false
line 21:    })
line 22:--> })
line 23:    textInput.disabled = true
line 24:    speechSynthesis.speak(utterance)