0
you can improve the cognition of gTTS with Python?
I am creating a project with emphasis on "voice recognition" for commands on the PC // Arduino // Rasp // others but I realized that when I speak something simple as just a "YES" it sometimes takes a long time to "stop" the shooting... Follow the lines of code I have from gTTS:
with SR.Microphone() as source:
r = SR.Recognizer()
r.adjust_for_ambient_noise(source)
audio = r.listen(source)
os.system(beep)
audio = r.listen(source)
os.system(boop)
with open(rec, 'wb') as song:
song.write(audio.get_wav_data())
try:
with open('/home/pi/bot/logs/yk12mmkiy78.db', 'a', errors = 'ignore') as datafile:
datafile.write(r.recognize_google(audio, language="pt-BR") + ';')
For now he is writing what was said in a text file called yk12mmkiy78.db and sometimes even simple words he writes wrong it is possible to improve cognition and understanding?
Carlos sorry it took me so long to give an answer, I didn’t quite understand the "it" where I should put it ?
– Wallace Bruno