TalkText ~ GHW 2023(FEB)
A simple Python project which uses speech_recognition and datetime library. The script simply listens for speech and stores it in a file.
- Initialize the
speech_recognitionobject. - Listen for speech and convert it to text using
speech_recognition. - Get the text and store it only if the user wants to. The file is named
output.txt. - Repeat this process until the user agrees to the question,
Do you want to speak?withy.
To exit the program the user can simply type
nand the program will stop execution.