MCPcopy Index your code
hub / github.com/geekcomputers/Python / big_text

Function big_text

VoiceAssistant/Project_Basic_struct/dictator.py:8–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def big_text():
9 print(
10 "By default, I will record your voice for 60 seconds.\nDo you want to change this default timing?"
11 )
12 speak(
13 "By default, I will record your voice for 60 seconds.\nDo you want to change this default timing?"
14 )
15 print(Fore.YELLOW + "Yes or No")
16 query = hear().lower()
17
18 duration_time = 0
19
20 if "yes" in query or "es" in query or "ye" in query or "s" in query:
21 print(
22 "Please enter the time(in seconds) for which I shall record your speech - ",
23 end="",
24 )
25 duration_time = int(input().strip())
26
27 print("\n")
28 else:
29 duration_time = 60
30 speak(f"I will record for {duration_time} seconds!")
31 text = long_hear(duration_time)
32 print("\n" + Fore.LIGHTCYAN_EX + text)
33
34
35def colours():

Callers 1

mainFunction · 0.85

Calls 3

hearFunction · 0.85
long_hearFunction · 0.85
speakFunction · 0.70

Tested by

no test coverage detected