Thanks a lot Joshua,<br> If I modify app_speech_utils that would mean that I'll have to distribute my custom res_speech library along my connector, is that right?<br> Do you know if there are any future plans from Digium to extend the speech API to allow this kind of functionality?<br>
<br>Regards, Javier<br><br><div class="gmail_quote">On Thu, May 5, 2011 at 2:06 PM, Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com">jcolp@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">----- Original Message -----<br>
> Hello,<br>
> I'm new to this list so please forgive me if I break any nettiquete<br>
> rules on the maillist, I tried posting on asterisk-speech-rec list but<br>
> it seems it has been inactive for quite some time.<br>
><br>
> I wrote an Asterisk Connector to a in-house ASR Engine that works<br>
> quite well. But to be able to tune up our recognition engine I added<br>
> the feature to my connector so we can record the input audio signal on<br>
> a temporary file.<br>
> I would like to add a dialplan function on my connector to retrieve<br>
> this filename to do aditional processing (for now logging request &<br>
> reponses into an external DB). My problem resides that I don't know<br>
> how to retrieve a pointer to the ast_speech structure from a Channel<br>
> structure.<br>
> I have tried invoking the find_speech helper function, but when I load<br>
> the connector into Asterisk I get the error: undefined symbol<br>
> `find_speech`.<br>
> My guess is that find_speech is not exported by res_speech.so but I<br>
> don't know how else to do it.<br>
> For now I have kinda 'solved' the problem by appending the filename<br>
> into the speech->results->text variable that I latter parse into the<br>
> real speech result text and the filename, but I think thats kinda<br>
> messy/hacky and I would like a clean implementation.<br>
> Have anyone found themselves on a similar situation? Any suggestions?<br>
<br>
</div></div>You really can't. The way the speech structure is stored is for the app_speech_utils<br>
applications themselves, not for usage by other applications/dialplan functions. The only options<br>
you really have is to add your own dialplan function in app_speech_utils that then calls into<br>
your engine or to do as you are already doing.<br>
<br>
--<br>
Joshua Colp<br>
Digium, Inc. | Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><br>
<font color="#888888"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</font></blockquote></div><br>