optimization for audio recognize

This commit is contained in:
2022-09-03 23:18:36 +02:00
parent 597aa6a1f6
commit fd9449a74c
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ def read_mails_and_find_confirmation_contacts():
for mail in mails_messages: for mail in mails_messages:
message_body = mail.body message_body = mail.body
for item in successful_items: for item in successful_items:
if item.id in message_body: if item.id in message_body and item.id != "welcome":
accepted_appointment_list.append(item) accepted_appointment_list.append(item)
elif "10:30" in message_body and (item.email == mail.mail_address or item.email in message_body): elif "10:30" in message_body and (item.email == mail.mail_address or item.email in message_body):
accepted_appointment_list.append(item) accepted_appointment_list.append(item)
+8 -1
View File
@@ -11,7 +11,14 @@ from src.params import get_random_wait_time
WAV_FILE_REGEX = "https:[\/a-z0-9.-]+.wav" WAV_FILE_REGEX = "https:[\/a-z0-9.-]+.wav"
number_text_dict = {'eight': 8, 'take': 8, 'zero': 0, 'one': 1, 'juan': 1, 'won': 1, 'to': 2, 'two': 2, 'three': 3, number_text_dict = {'eight': 8,
'take': 8,
'eighty': 8,
'zero': 0,
'one': 1, 'juan': 1,
'wanna': 1, 'won': 1, 'to': 2, 'two': 2,
'free': 3,
'three': 3,
'four': 4, 'four': 4,
'for': 4, 'for': 4,
'five': 5, 'five': 5,