While in the process of creating a Jeopardy app I decided I wanted to do more then just show a written clue for a category. I realized I wanted to use text-to-speech read back of the displayed clue. But there is a lot of different options when it comes to this. There is the obvious choice of IBM Watson. But I felt that it was a little to robust for my needs. So I decided to incorporate ResponsiveVoice.js.

So next step how do I incorporate it inside my React project. So I found a ResponsiveVoice package that I probably could of just installed and called it a day. But when I looked at the code it was a little to ES5 for me with var and require instead of import . I mean after all we’re pushing ES9 people, and honestly I just wanted to follow the original straight out of the box.

So how do I go about incorporating this CDN hosted JS file?