ArchiveOrangemail archive

asterisk-speech-rec.lists.digium.com


(List home) (Recent threads) (35 other Digium lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe (we seem to have lost it) address with "subscribe" in the subject line.
  • Low traffic list: less than 3 messages per day
  • This list contains about 757 messages, beginning Sep 2006
  • 0 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

sphinx_test.agi saved empty file in the /tmp

Ad
Alex Wang 1281230394Sun, 08 Aug 2010 01:19:54 +0000 (UTC)
Hi 

I am working on to plug sphinx2 into asterisk for my home phone system.
The Sphinx2 just works fine and sr_client comes back with right result.
But when I test it with the AGI script in the asterisk. The script just
capture a empty gsm file in the /tmp which bring up fail.

Does anyone got experience about sphinx2? please help.


Thanks

Alex

The part of the code is here..
***************************************************************
sub confirm {
      while (my $tries <= 3) {
         $tries++;

         $AGI->stream_file("/var/lib/asterisk/sounds/say_yes_no",'""');

         $AGI->stream_file("beep",'""');
         $AGI->record_file("/tmp/$$", 'wav', '0',3000);------------------------------------------------------------------------
this one suppose to create sound file under /tmp but the file is just
empty, I changed from gsm to wav but it still the same..
Home | About | Privacy