---
title: "Comment by Pepinho doSamba on \"Text to Speech Using the Web Speech API in JavaScript\" | Hashnode"
description: "Hi, Mohan. I just implemented your fantastic code in my website. It is working flawlessly but sometimes it just goes silent but the speech engine never produces"
url: "https://hashnode.com/posts/text-to-speech-using-the-web-speech-api-in-javascript/60051eea848f4c3b9a0f0d7a/comment/602f1a04bfecab23c3524ffc"
---

[Discussion](https://hashnode.com/posts/text-to-speech-using-the-web-speech-api-in-javascript/60051eea848f4c3b9a0f0d7a)

Comment [Text to Speech Using the Web Speech API in JavaScript](https://hashnode.com/posts/text-to-speech-using-the-web-speech-api-in-javascript/60051eea848f4c3b9a0f0d7a)

[Pepinho doSamba](https://hashnode.com/@Pepinho)

[Feb 19, 2021](https://hashnode.com/posts/text-to-speech-using-the-web-speech-api-in-javascript/60051eea848f4c3b9a0f0d7a/comment/602f1a04bfecab23c3524ffc)

Hi, Mohan. I just implemented your fantastic code in my website. It is working flawlessly but sometimes it just goes silent but the speech engine never produces an error message. What do you think I should do in this case?

Thank you for sharing your expertise!

[Mohan Raj](https://hashnode.com/@zolomohan)

[Feb 19, 2021](https://hashnode.com/posts/text-to-speech-using-the-web-speech-api-in-javascript/60051eea848f4c3b9a0f0d7a/comment/602f1a04bfecab23c3524ffc#reply-602f53301591c5239ebdc3dc)

Hi [Pepinho doSamba](https://hashnode.com/@Pepinho).

Please go through this MDN Doc to handle errors.

[developer.mozilla.org/en-US/docs/Web/API/SpeechSy…](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisErrorEvent/error)
