• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
AsteriskGuru Archives
Mailing List Archives
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[asterisk-speech-rec] LiveWeather issue with Lumenvox issue

 
   AsteriskGuru Archives Forum Index -> Asterisk-Speech-Rec
View previous topic :: View next topic  
Author Message
david.merel at gmail.com
Guest





PostPosted: Thu Mar 20, 2008 10:15 pm    Post subject: [asterisk-speech-rec] LiveWeather issue with Lumenvox issue

So I have downloaded LiveWeather from Lumenvox website.  I installed it as instructed but I am noticing some issues.
 
First off, I know Lumenvox speech engine is working because currently its working with the Pizza demo.
 
When I go into Asterisk -vrrr I can see the following when I execute the program
 
    -- Executing [123@from-internal:1] Answer("SIP/2000-08ac1c00", "") in new stack
    -- Executing [123@from-internal:2] AGI("SIP/2000-08ac1c00", "agi://localhost:4574/weather.agi") in new stack
    -- AGI Script Executing Application: (SpeechCreate) Options: ()
    -- AGI Script Executing Application: (SpeechActivateGrammar) Options: (uscities)
    -- AGI Script Executing Application: (SpeechStart) Options: ()
    -- AGI Script Executing Application: (SpeechBackground) Options: (liveweather/voice_adrian_greeting)
    -- AGI Script Executing Application: (SpeechStart) Options: ()
    -- AGI Script Executing Application: (SpeechBackground) Options: (liveweather/voice_adrian_didntgetthat)

The interesting thing is that I can see that SpeechCreate, SpeechActivateGrammar, and SpeechStart all have "Options: ()" after it.  Has anyone come accross this issue?  I think I am supposed to be seeing the SIP Channel in these brackets.  For example the following code is what I would see in the Pizza Demo, you will notice that each of these functions seem to have SIP/XXXX as the options.  Is it possible that Lumenvox has an older non working version of Adrian's LiveWeather application where somewhere in the code something isnt executing or passing variables correctly? I clearly see a difference between the two apps, if anyone has a working copy perhaps we can compare certain parts of the code.
 

    -- Executing [s@pizza:3] SpeechCreate("SIP/2000-08ac1c00", "") in new stack
    -- Executing [s@pizza:4] Goto("SIP/2000-08ac1c00", "order-pizza|s|1") in new stack
    -- Goto (order-pizza,s,1)
    -- Executing [s@order-pizza:1] Playback("SIP/2000-08ac1c00", "GP-Greeting") in new stack
    -- <SIP/2000-08ac1c00> Playing 'GP-Greeting' (language 'en')
    -- Executing [s@order-pizza:2] Set("SIP/2000-08ac1c00", "THRESHOLD=500") in new stack
    -- Executing [s@order-pizza:3] Goto("SIP/2000-08ac1c00", "pizza-delivery|s|1") in new stack
    -- Goto (pizza-delivery,s,1)
    -- Executing [s@pizza-delivery:1] SpeechActivateGrammar("SIP/2000-08ac1c00","order") in new stack
    -- Executing [s@pizza-delivery:2] SpeechStart("SIP/2000-08ac1c00", "") in new stack
    -- Executing [s@pizza-delivery:3] SpeechBackground("SIP/2000-08ac1c00", "GP-DeliveryorTakeout") in new stack

Anyways, any help would be greatly appreciated. Thank you
Back to top
david.merel at gmail.com
Guest





PostPosted: Thu Mar 20, 2008 11:34 pm    Post subject: [asterisk-speech-rec] LiveWeather issue with Lumenvox issue

So I found some off the problems, I still dont know why those "Options: ()" pop up, however I was able to find a FLAW in the instructions that perhaps Lumenvox or whoever should correct so we dont all run into the same mistake when we follow instructions line by line

Basically..... If you read the setup instructions you will find the following

2. Install the LumenVox Grammar. To install the grammar, you must edit your lumenvox.conf file in your /etc/asterisk directory and add the following  two entries:
uscities=/etc/asterisk/lumenvox/grammar/uscities.gram
yesno=/etc/asterisk/lumenvox/grammar/yesno.gram
You will  then need to copy the grammar files appearing in your grammar/directory to the  /etc/asterisk/grammar subdirectory.
However if you copy everything to /etc/asterisk/grammar directory then how can you put into lumenvox.conf file the directory of /etc/asterisk/lumenvox/grammar/ - this does not exist, /etc/asterisk/grammar is what should be edited in the two entries above

Therefore...

uscities=/etc/asterisk/grammar/uscities.gram
yesno=/etc/asterisk/grammar/yesno.gram

But a NEW problem now appears, now it understands what I say, speaking city or digits of my ZIP but keeps asking me to confirm YES or NO and for some reason this does not seem to recognize my response, so close :(

On Thu, Mar 20, 2008 at 6:01 PM, David Merel <david.merel@gmail.com (david.merel@gmail.com)> wrote:
Quote:
So I have downloaded LiveWeather from Lumenvox website.  I installed it as instructed but I am noticing some issues.
 
First off, I know Lumenvox speech engine is working because currently its working with the Pizza demo.
 
When I go into Asterisk -vrrr I can see the following when I execute the program
 
    -- Executing [123@from-internal:1] Answer("SIP/2000-08ac1c00", "") in new stack
    -- Executing [123@from-internal:2] AGI("SIP/2000-08ac1c00", "agi://localhost:4574/weather.agi") in new stack
    -- AGI Script Executing Application: (SpeechCreate) Options: ()
    -- AGI Script Executing Application: (SpeechActivateGrammar) Options: (uscities)
    -- AGI Script Executing Application: (SpeechStart) Options: ()
    -- AGI Script Executing Application: (SpeechBackground) Options: (liveweather/voice_adrian_greeting)
    -- AGI Script Executing Application: (SpeechStart) Options: ()
    -- AGI Script Executing Application: (SpeechBackground) Options: (liveweather/voice_adrian_didntgetthat)

The interesting thing is that I can see that SpeechCreate, SpeechActivateGrammar, and SpeechStart all have "Options: ()" after it.  Has anyone come accross this issue?  I think I am supposed to be seeing the SIP Channel in these brackets.  For example the following code is what I would see in the Pizza Demo, you will notice that each of these functions seem to have SIP/XXXX as the options.  Is it possible that Lumenvox has an older non working version of Adrian's LiveWeather application where somewhere in the code something isnt executing or passing variables correctly? I clearly see a difference between the two apps, if anyone has a working copy perhaps we can compare certain parts of the code.
 

    -- Executing [s@pizza:3] SpeechCreate("SIP/2000-08ac1c00", "") in new stack
    -- Executing [s@pizza:4] Goto("SIP/2000-08ac1c00", "order-pizza|s|1") in new stack
    -- Goto (order-pizza,s,1)
    -- Executing [s@order-pizza:1] Playback("SIP/2000-08ac1c00", "GP-Greeting") in new stack
    -- <SIP/2000-08ac1c00> Playing 'GP-Greeting' (language 'en')
    -- Executing [s@order-pizza:2] Set("SIP/2000-08ac1c00", "THRESHOLD=500") in new stack
    -- Executing [s@order-pizza:3] Goto("SIP/2000-08ac1c00", "pizza-delivery|s|1") in new stack
    -- Goto (pizza-delivery,s,1)
    -- Executing [s@pizza-delivery:1] SpeechActivateGrammar("SIP/2000-08ac1c00","order") in new stack
    -- Executing [s@pizza-delivery:2] SpeechStart("SIP/2000-08ac1c00", "") in new stack
    -- Executing [s@pizza-delivery:3] SpeechBackground("SIP/2000-08ac1c00", "GP-DeliveryorTakeout") in new stack

Anyways, any help would be greatly appreciated. Thank you
Back to top
david.merel at gmail.com
Guest





PostPosted: Fri Mar 21, 2008 2:31 pm    Post subject: [asterisk-speech-rec] LiveWeather issue with Lumenvox issue

LOL, I guess I will be solving this issue myself :) So I found the last remaining issue, after this I got LiveWeather to work, I still dont know why the output shows that strange "Options: ()" being empty, but it works
 

So here are the remaining issues.  The following unlike the last post are not errors but things to watch out for

So lets look at yesno=/etc/asterisk/grammar/yesno.gram
 
Some additional things to note
 
1. yesno is not yes_no which many people see by default in there lumenvox.conf or something that has already come using other demos or apps like pizza demo, this above line needs to STILL be added.
2. grammar, at least for trixbox users is actually grammars with a "S", so be sure that your folder path matches exactly with the folder's spelling
 
In my case I needed to make further corrections where the end result was
uscities=/etc/asterisk/grammars/uscities.gram
yesno=/etc/asterisk/grammars/yesno.gram <- and inserting this in addition to the already existing yes_no=/etc/asterisk/grammars/yesno.gram
 
after that all works.  I hope everyone finds this useful
 

 
On Thu, Mar 20, 2008 at 7:29 PM, David Merel <david.merel@gmail.com (david.merel@gmail.com)> wrote:
Quote:
So I found some off the problems, I still dont know why those "Options: ()" pop up, however I was able to find a FLAW in the instructions that perhaps Lumenvox or whoever should correct so we dont all run into the same mistake when we follow instructions line by line

Basically..... If you read the setup instructions you will find the following

2. Install the LumenVox Grammar. To install the grammar, you must edit your lumenvox.conf file in your /etc/asterisk directory and add the following  two entries:
uscities=/etc/asterisk/lumenvox/grammar/uscities.gram
yesno=/etc/asterisk/lumenvox/grammar/yesno.gram
You will  then need to copy the grammar files appearing in your grammar/directory to the  /etc/asterisk/grammar subdirectory.
However if you copy everything to /etc/asterisk/grammar directory then how can you put into lumenvox.conf file the directory of /etc/asterisk/lumenvox/grammar/ - this does not exist, /etc/asterisk/grammar is what should be edited in the two entries above

Therefore...

uscities=/etc/asterisk/grammar/uscities.gram
yesno=/etc/asterisk/grammar/yesno.gram

But a NEW problem now appears, now it understands what I say, speaking city or digits of my ZIP but keeps asking me to confirm YES or NO and for some reason this does not seem to recognize my response, so close :(


On Thu, Mar 20, 2008 at 6:01 PM, David Merel <david.merel@gmail.com (david.merel@gmail.com)> wrote:
Quote:
So I have downloaded LiveWeather from Lumenvox website.  I installed it as instructed but I am noticing some issues.
 
First off, I know Lumenvox speech engine is working because currently its working with the Pizza demo.
 
When I go into Asterisk -vrrr I can see the following when I execute the program
 
    -- Executing [123@from-internal:1] Answer("SIP/2000-08ac1c00", "") in new stack
    -- Executing [123@from-internal:2] AGI("SIP/2000-08ac1c00", "agi://localhost:4574/weather.agi") in new stack
    -- AGI Script Executing Application: (SpeechCreate) Options: ()
    -- AGI Script Executing Application: (SpeechActivateGrammar) Options: (uscities)
    -- AGI Script Executing Application: (SpeechStart) Options: ()
    -- AGI Script Executing Application: (SpeechBackground) Options: (liveweather/voice_adrian_greeting)
    -- AGI Script Executing Application: (SpeechStart) Options: ()
    -- AGI Script Executing Application: (SpeechBackground) Options: (liveweather/voice_adrian_didntgetthat)

The interesting thing is that I can see that SpeechCreate, SpeechActivateGrammar, and SpeechStart all have "Options: ()" after it.  Has anyone come accross this issue?  I think I am supposed to be seeing the SIP Channel in these brackets.  For example the following code is what I would see in the Pizza Demo, you will notice that each of these functions seem to have SIP/XXXX as the options.  Is it possible that Lumenvox has an older non working version of Adrian's LiveWeather application where somewhere in the code something isnt executing or passing variables correctly? I clearly see a difference between the two apps, if anyone has a working copy perhaps we can compare certain parts of the code.
 

    -- Executing [s@pizza:3] SpeechCreate("SIP/2000-08ac1c00", "") in new stack
    -- Executing [s@pizza:4] Goto("SIP/2000-08ac1c00", "order-pizza|s|1") in new stack
    -- Goto (order-pizza,s,1)
    -- Executing [s@order-pizza:1] Playback("SIP/2000-08ac1c00", "GP-Greeting") in new stack
    -- <SIP/2000-08ac1c00> Playing 'GP-Greeting' (language 'en')
    -- Executing [s@order-pizza:2] Set("SIP/2000-08ac1c00", "THRESHOLD=500") in new stack
    -- Executing [s@order-pizza:3] Goto("SIP/2000-08ac1c00", "pizza-delivery|s|1") in new stack
    -- Goto (pizza-delivery,s,1)
    -- Executing [s@pizza-delivery:1] SpeechActivateGrammar("SIP/2000-08ac1c00","order") in new stack
    -- Executing [s@pizza-delivery:2] SpeechStart("SIP/2000-08ac1c00", "") in new stack
    -- Executing [s@pizza-delivery:3] SpeechBackground("SIP/2000-08ac1c00", "GP-DeliveryorTakeout") in new stack

Anyways, any help would be greatly appreciated. Thank you




Back to top
Display posts from previous:   
   AsteriskGuru Archives Forum Index -> Asterisk-Speech-Rec All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™