Hagsten / Talkify

Javascript Text to speech library
216 stars 32 forks source link

[Enhancement] requireJS AMD support. #9

Closed JohnRSim closed 5 years ago

JohnRSim commented 7 years ago

When using requireJS to load in talkify I get the following error promise undefined..

require(['talkify'], function() {
                    var player = new talkify.TtsPlayer();
                    player.playText('Hello world');
                });

talkify.js:1095 Uncaught TypeError: Cannot read property 'Promise' of undefined

If I place talkify manually in the header it works fine. Could you please add requireJS support..

Thanks J.

Hagsten commented 5 years ago

This issue should now be resolved