]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_aeap & res_speech_aeap: Add Asterisk External Application Protocol
authorKevin Harwell <kharwell@sangoma.com>
Fri, 18 Jun 2021 17:54:10 +0000 (12:54 -0500)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 26 Apr 2022 19:26:48 +0000 (14:26 -0500)
commit272bac70dd5ed87fce45c5477e881bb617d41e0d
tree56fd5dae47bf72c18b66048917ceeff00423d905
parent53a3af6321d07ffca15c384cf126ac11ac7b04b4
res_aeap & res_speech_aeap: Add Asterisk External Application Protocol

Add framework to connect to, and read and write protocol based
messages from and to an external application using an Asterisk
External Application Protocol (AEAP). This has been divided into
several abstractions:

 1. transport - base communication layer (currently websocket only)
 2. message - AEAP description and data (currently JSON only)
 3. transaction - links/binds requests and responses
 4. aeap - transport, message, and transaction handler/manager

This patch also adds an AEAP implementation for speech to text.
Existing speech API callbacks for speech to text have been completed
making it possible for Asterisk to connect to a configured external
translator service and provide audio for STT. Results can also be
received from the external translator, and made available as speech
results in Asterisk.

Unit tests have also been created that test the AEAP framework, and
also the speech to text implementation.

ASTERISK-29726 #close

Change-Id: Iaa4b259f84aa63501e5fd2a6fb107f900b4d4ed2
25 files changed:
configs/samples/aeap.conf.sample
include/asterisk/res_aeap.h [new file with mode: 0644]
include/asterisk/res_aeap_message.h [new file with mode: 0644]
include/asterisk/speech.h
res/Makefile
res/res_aeap.c
res/res_aeap.exports.in [new file with mode: 0644]
res/res_aeap/aeap.c [new file with mode: 0644]
res/res_aeap/general.c [new file with mode: 0644]
res/res_aeap/general.h [new file with mode: 0644]
res/res_aeap/logger.h [new file with mode: 0644]
res/res_aeap/message.c [new file with mode: 0644]
res/res_aeap/message_json.c [new file with mode: 0644]
res/res_aeap/transaction.c [new file with mode: 0644]
res/res_aeap/transaction.h [new file with mode: 0644]
res/res_aeap/transport.c [new file with mode: 0644]
res/res_aeap/transport.h [new file with mode: 0644]
res/res_aeap/transport_websocket.c [new file with mode: 0644]
res/res_aeap/transport_websocket.h [new file with mode: 0644]
res/res_speech.c
res/res_speech_aeap.c [new file with mode: 0644]
tests/test_aeap.c [new file with mode: 0644]
tests/test_aeap_speech.c [new file with mode: 0644]
tests/test_aeap_transaction.c [new file with mode: 0644]
tests/test_aeap_transport.c [new file with mode: 0644]