<div dir="ltr">Greetings,<div><br></div><div>There has already been some good discussion about the new speech to text stuff [1], but as things begin to solidify I want to discuss the basic protocol some more.</div><div><br></div><div>We've named it the Asterisk External Application Protocol (AEAP). For this first version of the protocol we want to ensure that it's 1) simple, 2) adaptable, and 3) generic. To those points while speech to text will be the first use case implemented, we're hoping if the need arises this protocol can be used for other things.<br></div><div><br></div><div><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+External+Application+Protocol">https://wiki.asterisk.org/wiki/display/AST/Asterisk+External+Application+Protocol</a><br></div><div><br></div><div>After implementing a very simple external application that uses the protocol, and reading some of the feedback from the other thread [1] I think it could use a few minor changes:<br></div><div><br></div><div>* Only send the version in the initial "setup" request. I don't really see a reason to send it in every message.<br></div><div>* In responses change "status" to a number/code. As brought up in the previous discussion [2] this would allow for response handlers to key off that value.<br></div><div>* In the "setup" and "set" responses drop the "params" field. In the response they don't seem useful. Either they were set successfully, or they weren't. If they weren't then an error is returned instead.</div><div><br></div><div>Any agreements/disagreements? Any other ideas or thoughts? Keep in mind that for this first version minimal is better. It's easy to add a field later if we need it vs removing an unused one.</div><div><br></div><div>Thanks!</div><div><div><br></div><div>[1] <a href="http://lists.digium.com/pipermail/asterisk-dev/2021-March/078244.html">http://lists.digium.com/pipermail/asterisk-dev/2021-March/078244.html</a></div><div>[2] <a href="http://lists.digium.com/pipermail/asterisk-dev/2021-March/078258.html">http://lists.digium.com/pipermail/asterisk-dev/2021-March/078258.html</a></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Kevin Harwell<div>Software Developer</div><div>Sangoma Technologies<br><div>Check us out at: <a href="https://sangoma.com/" target="_blank">https://sangoma.com</a> & <a href="https://asterisk.org/" target="_blank">https://asterisk.org</a></div></div></div></div></div></div>