Skip to content
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

Merged
merged 3 commits into from
Dec 5, 2020

Conversation

freddiefujiwara
Copy link
Contributor

this is urgent fix for 33 please check my code

  • remove token/key
  • change url

@coveralls
Copy link

coveralls commented Dec 2, 2020

Coverage Status

Coverage increased (+5.3%) to 100.0% when pulling 3257da6 on freddiefujiwara:feature/fix-dec-1 into 96e85a9 on zlargon:master.

index.js Outdated
return key(timeout).then(function (key) {
return tts(text, key, lang, speed);
});
module.exports = function (text, lang, speed) {
Copy link
Owner

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.

Copy link
Contributor Author

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

@zlargon
Copy link
Owner

zlargon commented Dec 4, 2020

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 tk and change the client to tw-ob)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants