zlargon / google-tts

Google TTS (Text-To-Speech) for node.js
https://www.npmjs.com/package/google-tts-api
MIT License
279 stars 56 forks source link

Not able to use in react-native project #55

Open Lekhrajk opened 3 years ago

Lekhrajk commented 3 years ago

I tried to install it in my react-native project but it is throwing error

\node_modules\google-tts-api\dist\getAudioUrl.js: url could not be found within the project or in these directories: node_modules

var assertInputTypes_1 = __importDefault(require("./assertInputTypes")); var splitLongText_1 = __importDefault(require("./splitLongText")); var url_1 = __importDefault(require("url"));

can you help me why i am getting this error

Zhnz commented 3 years ago

Looks like it's missing the 'url' package. Try installing it (npm i url).