| 6 | |
| 7 | |
| 8 | def 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 | |
| 35 | def colours(): |