Skip to content

Conversation

@shardul08
Copy link
Contributor

Thank you for your contribution. Please provide the details requested below.

ISSUE NUMBER

NIL

SHORT DESCRIPTION

The user can enter their own text to convert to speech without altering the code.

TESTING

NIL

from gtts import gTTS

text = ("Hello world!")
text = input("Enter the text you want to convert: ")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this might break the functionality.
Have you tested this?

Also it would be good if you can write a test case for this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't actually understand how it breaks functionality. When I tested, it was able to convert the text I entered to an audio file, which is what it is supposed to do. Am I missing something here?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In some cases, input(text) does not always work, depending on the version. I have tested it locally in this case. And it works fine.

@prateekiiest prateekiiest merged commit 7dd1ac4 into prateekiiest:master Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants