Hello Asterisk Community,
I’m working on a project that aims to automate calls, including answering, processing speech-to-text (STT), generating responses with GPT, and converting text-to-speech (TTS). Here’s my setup:
- Skyline PBX Account: I have a Skyline account with a phone number, username, and password.
- Issabel: Using Issabel to manage calls, connect Skyline PBX, and handle SIP configurations.
- Python for Call Handling: I need Python to interact with Asterisk, answer calls, and handle STT/TTS and GPT processing.
Current Issues
-
Asterisk ARI Compatibility:
- I found
ari-py
, but it’s outdated and works only with Python 2. - Tried
asyncari
, but faced numerous compatibility issues withanyio
and ARI event handling.
- I found
-
Goal: I need to connect Python with Asterisk to:
- Answer incoming calls and handle events.
- Process voice input (STT) and generate responses (GPT).
- Play audio responses back to the caller using TTS.
Questions:
- Is Issabel suitable for this task with Skyline, or are there recommended alternatives?
- Best Practices for connecting Python to Asterisk for real-time call handling?
- Recommended libraries or tools for Python-Asterisk integration, considering my STT, TTS, and GPT requirements.
Any guidance, resources, or alternative approaches would be greatly appreciated! I’m open to detailed insights or suggestions (even if there are service costs involved).
Thank you very much in advance!