Python Voice Assistant Tutorial #5 - Date from Speech P2

preview_player
Показать описание
Part 2 of getting a date from a string of text. In this python voice assistant tutorial we continue to work on a method of getting a date from a persons speech using gTTS, google calendar and the python datetime module.

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

Tags:
- Tech With Tim
- Python Tutorials
- Python Voice Assistant Tutorial
- Voice Assistant Tutorial Python
- Python gTTS
- Google Calendar API Python

#Python #SpeechRecognition #VoiceAssistant
Рекомендации по теме
Комментарии
Автор

just a little addition in the get_date module:

tomorrow = datetime.date.today() + datetime.timedelta(days=1)
if text.count("tomorrow") > 0:
return tomorrow


thanks for the free knowledge ♥

BurnedwOw
Автор

Thank you #TechWithTim

for impressive python projects

ravikiranreddyy
Автор

Thanks, man. Great content.


you might add this to the get_date function:


if day < today.day and month <= today.month and month != -1:
year = year+1


to correct same month past day issue.
otherwise you can say a past day from the current month (like yesterday) and get this year's date not the next year's date.


keep it up!. your channel is gold!

PSG
Автор

Is there a tutorial about exporting your kivy app on playstore and appstore, and if not, could you make one, i made my kivy-python app and i am having trouble turning it into an apk and ios file, and uploading it to the store. Thank you <3 learned a lot from your vids, keep up the good work

mpaladin
Автор

Hey Tim, I am determined to make a decent voice assistant, but I am not experienced enough yet to understand this level of coding. So what function would you suggest me that I can add to my voice assistant and still learn without having to copy/paste the code from your link?

sushantregmi
Автор

Hey Tim, you are awesome!! Just now saw your other videos on the VA tutorial. But I can't seem to install PyAudio. Can you please help me..

harshavardhansivakumar
Автор

if text.count("today")>0:
AttributeError: 'builtin_function_or_method' object has no attribute 'count'

i am getting this error. what do i do?

rijulsarji
Автор

hey, for some reason whenever I say for example "what are my plans december 25th" it will pop up 2020-11-25 instead of 2020 12-25. any idea why? all the other months work fine

hgp
Автор

it dose not like the return statmen : return today + datetime.timedelta(dif), syntax error. Going to try to fix it. anyone else?

justinwilson
Автор

Please also complete the pyqt5 series please please please

aryanbhatia
Автор

when i start the codes it's not working. I mean no answer or print or error. Anything happened??

merttekin
Автор

why instead of setting up my calneder my program does not show any event on it what is the problem

MOHITRANA-torf
Автор

I am writing the same code but i found this error

Traceback (most recent call last):
File "c:/Users/Farah/Desktop/GoogleAssistant/voice.py", line 132, in <module>
print(get_date(text))
File "c:/Users/Farah/Desktop/GoogleAssistant/voice.py", line 126, in get_date
return datetime.date(month=month, day=day, year=year)
ValueError: day is out of range for month
can anyone of you help me how to resolve this error....

ladybeautysecrets
Автор

What are existing system for this project

valmikianusha
Автор

Hey I have a Problem with your code every time i say a date in month is every time a 5

birnenbaumhd
Автор

if you say the date 1 day before the current date it doesn't change the year

EUBEEN
Автор

#TechWithTim

In which app do u type the python code.

Please I need to know.

ravikiranreddyy
Автор

getting this error


Me:do I have plans on December 30th


Traceback (most recent call last):
File Projects\test.py", line 130, in <module>
print(get_date(text))
File Projects\test.py", line 91, in get_date
year = today.year
AttributeError: 'builtin_function_or_method' object has no attribute 'year'

what
Автор

when i run it, it always show exception(

ayupppayuppp
Автор

Sir Please iam Getting a Problem Of in Month Please Sir help Me -1: in year 2020 please sir Can You Help Me

madhumithabasidi