Closed glittle closed 7 years ago
Hi, I have updated that section of the readme now. You need to instantiate (or use an existing) a player and then invoke the playText method on the player specifying a string.
var player = new TtsPlayer(); //or new Html5Player() player.playText('Hello world');
Does that do the trick for you? :)
The readme talks about
Play simple text
withtalkify.playText('Hello world');
.However, there is no instruction on how to create
talkify
. Is it implicitly added to thewindow
object?