-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix issue for https://github.com/zlargon/google-tts/issues/33 #37
Conversation
index.js
Outdated
return key(timeout).then(function (key) { | ||
return tts(text, key, lang, speed); | ||
}); | ||
module.exports = function (text, lang, speed) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice that you change the original function from a promise function to a non-promise function. In order to support backward compatibility, I think it is preferable NOT to change the function interface (although API key is not required anymore in this approach).
Could you please change the code back to the original promise interface and original test cases?
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zlargon thanks for your review
understood I followed your fb
Hi @freddiefujiwara, thank you for the PR to implement the #33 (comment) into this library. The new Google TTS API will return the audio base64 encoded string instead of the audio URL. According to the discussion in #33, the change in this PR might not safe, but it looks like the only thing we can do to keep the library works. (remove |
this is urgent fix for 33 please check my code