(
self,
text: str = None,
language: str = "en",
slow: bool = True,
accent: str = "com",
)
| 45 | |
| 46 | class userAudio: |
| 47 | def __init__( |
| 48 | self, |
| 49 | text: str = None, |
| 50 | language: str = "en", |
| 51 | slow: bool = True, |
| 52 | accent: str = "com", |
| 53 | ): # Correct the syntax here. |
| 54 | self.lang = language |
| 55 | self.slow = slow |
| 56 | self.accent = accent |
| 57 | |
| 58 | if text is None: |
| 59 | self.user_input() |
| 60 | else: |
| 61 | self.text_to_audio = text |
| 62 | |
| 63 | self.gtts_object = gTTS( |
| 64 | text=self.text_to_audio, lang=self.lang, slow=self.slow, tld=self.accent |
| 65 | ) |
| 66 | |
| 67 | # ! Some error is here. |
| 68 | def user_input(self): |
nothing calls this directly
no test coverage detected