AEAP integration

Hello, i’m trying to integrate the use of AEAP but i’m having some issues and this is probably because of my configuration but i’m not sure.

WARNING[1158992][C-00000004]: pbx.c:2936 pbx_extension_helper: No application ‘AEAP’ for extension
ERROR[1158992][C-00000004]: pbx_functions.c:699 ast_func_write: Function AEAP not registered

Am i calling the function wrongly or what seems to be the problem here?
All required modules seems to be installed, loaded and running.

extensions.conf
[test]
exten => s,1,NoOp(Starting Call Handling)
same => n,Answer()
same => n,Set(AEAP(application)=test)
same => n,NoOp(Using AEAP application: ${AEAP(application)})
same => n,Hangup()

aeap.conf
[general]
enabled=yes

[test]
type=client
context=test
enabled=yes
url=ws://127.0.0.1:8088/ws
codecs=!all,ulaw,alaw,opus authentication=no

I am also starting a python server that connects to this websocket and the connection works, however the error: No application ‘AEAP’ for extension ends the call. Am i using the correct syntax here?

Appreciate some guidence, thanks in advance.

Best regards Eddie

Those don’t exist. You use the Speech dialplan applications and functions.

Thanks jcolp.

I have updated the configuration files like this:
extensions.conf
[test]
exten => s,1,NoOp(Starting Call Handling)
same => n,Answer()
same => n,SpeechCreate(test)
same => n,SpeechStart()
same => n,Verbose(0,${SPEECH_TEXT(0)})
same => n,SpeechDestroy()

aeap.conf
[general]
enabled=yes

[test]
type=client
context=test
enabled=yes
url=ws://127.0.0.1:8088/ws
codecs=!all,ulaw,alaw,opus
authentication=no
protocol=speech_to_text

The call is recieved but immediately hangs up, no error messages.
Is the sorcery.conf in play here? Do i need to modify that or why is the call ending just like that instead of keeping the call active?

I am pretty new to this type of integration so i am sorry if i’m asking stupid questions but i really hope for some guidence. Would really appreciate it.

Best regards Eddie

Because you haven’t told it to do anything. SpeechBackground is used to play back an audio file and do speech to text. After which you then have to actually use the results in some way. There is example dialplan in our example[1].

[1] GitHub - asterisk/aeap-speech-to-text: Asterisk external speech to text application

Thank you.
Although the examples was good in the link you provided but i’m not sure how to configure this the right way. I have a python server that connects to the websocket that will handle recording and playback but how do i make sure the configuration under extensions.conf keep the dialplan open and not immediately close it after the call is recieved?

Best regards
Eddie

Recording and playback?

AEAP is for speech to text only currently.

What are you over all trying to achieve and do?

I see, then i guess i better use EAGI instead.
I am creating an ai-assistant that can answer questions from the caller.
I have tried both the EAGI and AGI solution but i have trouble getting it to work fully where i would like to be able to playback audio and at the same time record user speech. I dont know if that is even possible using asterisk as the pbx. May i ask if this is even possible? That will say, play audio and at the same time record speech? If not, what would you say is a better solution here (if you know any)? I am wondering if maybe it would be possible if creating a conference call, because that way it should support multiple audiostreams at the same time, i think?

Best regards
Eddie

I’d suggest searching the forum. This question comes up multiple times a week at this point.

Alright, thank you. Will do.

Thank you for your time, have a nice day