(self)
| 66 | |
| 67 | # ! Some error is here. |
| 68 | def user_input(self): |
| 69 | text = input("Enter the text you want to convert to audio: ") |
| 70 | self.text_to_audio = text |
| 71 | self.gtts_object = gTTS( |
| 72 | text=self.text_to_audio, lang=self.lang, slow=self.slow, tld=self.accent |
| 73 | ) # Just need to understand the class workings little better. |
| 74 | # Isn't this declaring this again? |
| 75 | |
| 76 | def save_only(self, filename="default.mp3"): |
| 77 | # The class will take care of the playing and saving. |