MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

text_to_audio/main.py:47–65  ·  view source on GitHub ↗
(
        self,
        text: str = None,
        language: str = "en",
        slow: bool = True,
        accent: str = "com",
    )

Source from the content-addressed store, hash-verified

45
46class 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):

Callers

nothing calls this directly

Calls 1

user_inputMethod · 0.95

Tested by

no test coverage detected