aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-10-14 04:39:41 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2023-10-14 04:39:41 -0600
commit704b6407b4e51800376e73fe934a762e94b30d9d (patch)
treef51b5c0bd74abd7b836746f3f2222d282bbd541e /test.py
parentd433b974d9f15f9a7ab57ba592a4858e7977726d (diff)
rebased
Diffstat (limited to 'test.py')
-rw-r--r--test.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100644
index 0000000..568e449
--- /dev/null
+++ b/test.py
@@ -0,0 +1,32 @@
+import os
+from dotenv import load_dotenv
+
+load_dotenv()
+
+from vocode.streaming.telephony.conversation.outbound_call import OutboundCall
+from vocode.streaming.telephony.config_manager.redis_config_manager import (
+ RedisConfigManager,
+)
+
+from speller_agent import SpellerAgentConfig
+
+BASE_URL = os.environ["BASE_URL"]
+
+
+async def main():
+ config_manager = RedisConfigManager()
+
+ outbound_call = OutboundCall(
+ base_url=BASE_URL,
+ to_phone="+17208828227",
+ from_phone="+18445610144",
+ config_manager=config_manager,
+ agent_config=SpellerAgentConfig(generate_responses=False),
+ )
+
+ input("Press enter to start call...")
+ await outbound_call.start()
+
+if __name__ == "__main__":
+ import asyncio
+ asyncio.run(main()) \ No newline at end of file