Add command line args

Fix
This commit is contained in:
James Hush
2024-12-10 15:12:30 +08:00
parent 8fb75cf6a7
commit 875ecf7fcb
4 changed files with 30 additions and 18 deletions

View File

@@ -80,21 +80,20 @@ class DialoutBot:
task = PipelineTask(pipeline, PipelineParams(allow_interruptions=True))
def get_phone_number(callId: int, run_number: int) -> str:
# Avoca 818-722-9086
# Dom: "+1 562-286-9362"
if run_number % 2 == 0:
phone_numbers = [
"+12097135124", # James
"+12097135125", # James
"+19499870006", # Varun
"+12097743694", # James (Daily Pipecat Local Computer)
# "+12097135124", # James
# "+12097135125", # James
# "+19499870006", # Varun
]
return phone_numbers[callId % len(phone_numbers)]
else:
phone_numbers = [
"+14155204406", # James
"+18187229086", # James (Avoca)
"+16673870006", # Varun
"+12097743694", # James (Daily Pipecat Local Computer)
# "+14155204406", # James
# "+18187229086", # James (Avoca)
# "+16673870006", # Varun
]
return phone_numbers[callId % len(phone_numbers)]