optimization for audio recognize
This commit is contained in:
@@ -156,7 +156,7 @@ def read_mails_and_find_confirmation_contacts():
|
||||
for mail in mails_messages:
|
||||
message_body = mail.body
|
||||
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)
|
||||
elif "10:30" in message_body and (item.email == mail.mail_address or item.email in message_body):
|
||||
accepted_appointment_list.append(item)
|
||||
|
||||
@@ -11,7 +11,14 @@ from src.params import get_random_wait_time
|
||||
|
||||
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,
|
||||
'for': 4,
|
||||
'five': 5,
|
||||
|
||||
Reference in New Issue
Block a user