Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Conversation

ansgar-t
Copy link

@ansgar-t ansgar-t commented Jan 4, 2020

Signature of gTTS.init changes in 2.1.0 and breaks calls with
unnamed arguments like gTTS('some text', 'de')

Description

I upgraded my local mycroft installation to gTTS 2.1.0 because I wanted a bugfix from there.
This broke GoogleTTS because of the usage of unnamed arguments and a signature change in gTTS. Technically, this is not a mycroft issue (yet), so I did not create an issue here.

Please note, that this (rather trivial) PR only adds the names to some arguments. It does NOT include the upgrade to gTTS 2.1.0.

How to test

No changed functionality, so only regression testing for google TTS?

Unit tests are successful locally - except for one that seems to assume configuration of 'en-us'.
Not sure, how to run the integration tests, though.
Manually tested that Google TTS works with both, gTTS 2.0.4 and 2.1.0.
(Without this fix, it will fallback to English with gTTS 2.1.0, even if German is configured.)

Contributor license agreement signed?

CLA [ ]

(not yet, waiting for response...)

Signature of gTTS.__init__ changes in 2.1.0 and breaks calls with
unnamed arguments like gTTS('some text', 'de')
@devs-mycroft
Copy link
Collaborator

Hello, @ansgar-t, thank you for helping with the Mycroft project! We welcome everyone
into the community and greatly appreciate your help as we work to build an AI
for Everyone.

To protect yourself, the project, and users of Mycroft technologies we require
a Contributor Licensing Agreement (CLA) before accepting any code
contribution. This agreement makes it crystal clear that along with your
code you are offering a license to use it within the confines of this project.
You retain ownership of the code, this is just a license.

Please visit https://mycroft.ai/cla to initiate this one-time signing. Thank
you!

@devs-mycroft devs-mycroft added the CLA: Needed Need signed CLA from https://mycroft.ai/cla label Jan 4, 2020
@JarbasAl
Copy link
Contributor

JarbasAl commented Jan 4, 2020

changelog here for reference https://github.com/pndurette/gTTS/blob/master/CHANGELOG.rst

@forslund
Copy link
Collaborator

forslund commented Jan 4, 2020

Thanks @ansgar-t Looks good. I'll do a verification test on Monday and if nothing weird pops up I'll merge this when the CLA is completed.

Is there any reason to not upgrade gTTS to 2.1.0?

@ansgar-t
Copy link
Author

ansgar-t commented Jan 4, 2020

@forslund

Is there any reason to not upgrade gTTS to 2.1.0?

Not that I know of. Just wanted my first PR here to be 100% safe :)

@forslund
Copy link
Collaborator

forslund commented Jan 5, 2020

Tested and works as expected. When the CLA has been completed we'll merge it. Thanks for the contribution!

@krisgesling krisgesling added CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) and removed CLA: Needed Need signed CLA from https://mycroft.ai/cla labels Jan 6, 2020
@krisgesling krisgesling merged commit 97ec830 into MycroftAI:dev Jan 6, 2020
@krisgesling
Copy link
Contributor

Thanks Ansgar!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants