<br><div class="gmail_quote"><div class="gmail_quote"><pre><font size="2"><span style="font-family: courier new,monospace;">Hello,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> I'm new to this list so please forgive me if I break any nettiquete rules</span><span style="font-family: courier new,monospace;"> on the maillist, I tried posting on asterisk-speech-rec list but it seems it has been inactive for quite some time.</span><br>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> I wrote an Asterisk Connector to a in-house ASR Engine that works quite well. But to be able to tune up our recognition engine I added the feature to my connector so we can record the input audio signal on a temporary file.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> I would like to add a dialplan function on my connector to retrieve this filename to do aditional processing (for now logging request & reponses into an external DB). My problem resides that I don't know how to retrieve a pointer to the ast_speech structure from a Channel structure.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> I have tried invoking the find_speech helper function, but when I load the connector into Asterisk I get the error: undefined symbol `find_speech`.<br> My guess is that find_speech is not exported by res_speech.so but I don't know how else to do it.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> For now I have kinda 'solved' the problem by appending the filename into the speech->results->text variable that I latter parse into the real speech result text and the filename, but I think thats kinda messy/hacky and I would like a clean implementation.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Have anyone found themselves on a similar situation? Any suggestions?</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Kind Regards, Javier</span></font><br></pre>
<br></div><br>
<br></div><br>