Make plans now to attend XMPP integration with CVP 2012/06/14 @ 10:00 AM at Cisco Live! in San Diego. ...Read More

 



Cisco Developer Network will be presenting a CDN Developer Track at Cisco Live! London the week of January 31, 2011.

We are presenting technical sessions which highlight Application Programming interfaces (APIs) and Software Developer Kits (SDKs) for Cisco technologies such as Unified Communications, IOS, and Access Routing Technologies ¿ including the new Cisco Cius ...Read More

 

Recently noticed that there have been repeated questions from our developer community complaining that they can't seem to get the beep to work with <record>. They have set the beep attribute to "true" alright, and the reference guide even says this is supported but why doesn't it work?
...Read More

 

August 01, 2006
Earlier today, as I was typing a comment in our internal issuing-tracking system, I hit backspace to correct a typo. WHAM! I go back to the previous page, and my long-winded comment is gone. Apparently I somehow left the context of the text area (did I tab, or spuriously click, or??), which causes backspace to act as a hotkey for "Back". The web browser was not very forgiving of my mistake.

Are your IVR applications forgiving? They should be.
...Read More

 

Mark Gibbs over at Network World has put together a spiffy little scoring system for customer service systems (including many criteria for IVR systems). How would callers score your IVR using Mark's guidelines? Place a call and find out, you may be surprised.
...Read More

 

If you're using JNDI to connect to your database through Tomcat, then it's possible you've had to deal with database connection pool leaks. Your code tests fine, it's been reviewed, but in load tests or in production your app is unable to acquire database connections, the pool is empty!

Fear not, there are some handy parameters which can be set in your application's XML configuration file (in tomcat/conf/Catalina/YOUR_IP/YOUR_APP.xml):
...Read More

 

Showing 6 results.
Items per Page 50
of 1

CVP Forum

« Back to General Discussion

Accepting Time as Speech Input from the User

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello,
I have a question about accepting speech input from the user with the VFC classes in Audium 3 server.

I would like to accept the time in the hh:mm format from the user as speech input.

In the example code that comes with Audium, I saw the following code.

VTimeNumber time = VTimeNumber.getNew(pref, "0732", VTimeNumber.TIME_HHMM, VTimeNumber.USE_NOON_OR_MIDNIGHT, VTimeNumber.MORE_FILES);

I do not know in advance what time value the user is going to say. So, I cannot hard code a string like "0732" as in the above example.

How do i accept the time input value spoken by the user? I would also like to make sure that hours are between 1 and 12 and the minutes between 1 and 59.

Once I get the spoken value, I can then read it back to the user for confirmation.

Thanks in advance.

Regards,
Nagi

The code fragment you list below has nothing to do with capturing time input, it has to do with [i:9ca539ec2f]reading back[/i:9ca539ec2f] a time. That is why you pass a value to the method, that is the value you want read back. You don't even have to worry about this code because Say It Smart does all this for you.

If you want to capture a time, Audium recommends using the Time Audium Element. You don't have to do any Java coding, all the work is done for you. All you need to do is configure it.

If you'd rather do it in code, you can use VBuiltInField with the TIME built in grammar. Look at the Javadocs for this VFC class for more information.

Hello

I have a question on VTimeNumber.MORE_FILES, LESS_FILES.

The Java Docs say

Using MORE_FILES: 122 files (VWholeNumber) + "am", "pm", "noon", "midnight" = 126 files.

Using LESS_FILES: 33 files (VWholeNumber) + "am", "pm", "noon", "midnight" = 37 files.

I dont know how the figures 122 and 33 come up.

Do we need to pre record 122 sound files or are they created on the fly while the time is read back to the user?

Thanks,
Nagi

The numbers come from VWholeNumber. If you look at the Javadocs for VWholeNumber, you will see how the files are listed.

You have to pre-record these files using your voice talent.

For more on SayItSmart, please refer to the User Guide Appendix B. You really should be looking there instead of the javadocs.