cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1220
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11

Subject: Re: New Message from Arun Kumar in Customer Voice Portal (CVP) - General Di
Replied by: Janine Graves on 03-08-2011 09:17:12 AM
I don't believe any of the existing Say it Smarts can spell the contents
of an item to the caller.
I can copy/paste a say it smart that does do alphanumeric (which I've
written for my training classes)- converting letters and numbers into
audio file names.
This code needs to be compiled for CVP - do you know how to do that?
Janine
www.TrainingTheExperts.com


On 8/3/2011 9:04 AM, Cisco Developer Community Forums wrote:
> Arun Kumar has created a new message in the forum "General Discussion
> - All Versions":
>
> --------------------------------------------------------------
> I need to play a alphanumeric string without TTS, as we do not have
> TTS engine. For example I have a string:
> 1234a678c12d45
> I need to play this and I am using
> *Type:* Custom Content
> *Input Format:* String[] Object
> *Output Format:*Filename(s) only
> Â
> My AudioFileSet:No FileSet
> My audio path is correct and I have all the individual alphabet and
> number files.
> ,element,error,An exception was thrown by the convertToFiles method of
> the Say It Smart plugin class
> com.audium.sayitsmart.plugins.AudiumSayItSmartLiteral.
> ,element,error,A built-in element encountered an exception of type
> com.audium.server.xml.ElementConfigException.
> ConfirmMenu,exit,
> Â
> Can anyone advise what is wrong here ?
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4314780>
>
> or simply reply to this email.

--
Janine Graves
This document was generated from CDN thread

Created by: Arun Kumar on 03-08-2011 09:04:33 AM
I need to play a alphanumeric string without TTS, as we do not have TTS engine. For example I have a string:
1234a678c12d45
I need to play this and I am using
Type: Custom Content
Input Format: String[] Object
Output Format:Filename(s) only
 
My AudioFileSet:No FileSet
My audio path is correct and I have all the individual alphabet and number files.
,element,error,An exception was thrown by the convertToFiles method of the Say It Smart plugin class com.audium.sayitsmart.plugins.AudiumSayItSmartLiteral.
,element,error,A built-in element encountered an exception of type com.audium.server.xml.ElementConfigException.
ConfirmMenu,exit,
 
Can anyone advise what is wrong here ?

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Arun Kumar on 03-08-2011 09:30:52 AM
Sure, I can do that. That will be very helpful. I appreciate it.

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Janine Graves on 03-08-2011 10:04:02 AM
import com.audium.server.sayitsmart.*;
public class JaninesAlphanumSayItSmartLowerCase extends SayItSmartBase implements SayItSmartPlugin
{
public SayItSmartDisplay getDisplayInformation() throws SayItSmartException
{
  SayItSmartDisplay toReturn = new SayItSmartDisplay("alphanum", "AlphaNumeric", "");
  toReturn.addInputFormat("input", "AlphaNum String", "");
  toReturn.addOutputFormat("output","Character by character","");
  toReturn.addFileset("filesetLower","LowerCase File Names","");
  return toReturn;
    }
   
    public SayItSmartDependency getFormatDependencies() throws SayItSmartException
    {
        SayItSmartDependency toReturn = new SayItSmartDependency();
        toReturn.addParent("input", new String[] {"output"});
        return toReturn;
    }
    public SayItSmartDependency getFilesetDependencies() throws SayItSmartException
    {
        SayItSmartDependency toReturn = new SayItSmartDependency();
        toReturn.addParent("output",new String[]{"filesetLower"});
       return toReturn;
    }
    public SayItSmartContent convertToFiles(Object dataAsObject, String inputFormat, String outputFormat, String fileset) throws SayItSmartException
    {       
        SayItSmartContent toReturn = new SayItSmartContent();
        String data = dataAsObject.toString().toLowerCase();
     
        /* Go through each character of the string and spell it.  */
        for (int i = 0; i < data.length(); i++) {
            char theChar = data.charAt(i);
            if(theChar>='0' && theChar<='9' || (theChar>='A' && theChar <='Z') ||(theChar>='a' && theChar <='z') ){
                String theString = data.substring(i,i+1);
                toReturn.add(theString, theString+" ", false);
            }
        }
     return toReturn;
    }
}

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Hemal Mehta on 03-08-2011 05:21:03 PM
Janine,
       Not the best way and depending on how big the string is. There is another way around it, involves looping through the audio element. The alphanumceric string sizecan be set in session and that can be used to loop through a audio element.  Also the individual alphabets or numbers would need to be stored in session and played through audio element in loop.

Of course, if I were to do this in plain vxml and jsp, it would be quick. Great place to use foreach.
Hemal

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Arun Kumar on 04-08-2011 12:38:07 PM
Thanks Janine. I could not get the SmartPlugin to work as the plugin never shows up in my studio. I put the class under deploy as well as added the class to SayItSmartPluginstudio.sayItSmartPlugins.core.8.0.1 and also under classes under studio./linrary.common_6.0.1\classes
Any suggestions

Also checking the other approach of puuting the ind characters in session as suggested above. Need to check if my if my string will be always  of fixed length,. Need to confirm that

Subject: RE: New Message from Arun Kumar in Customer Voice Portal (CVP) - General Di
Replied by: GEOFFREY THOMPSON on 04-08-2011 12:50:12 PM
>>>I could not get the SmartPlugin to work as the plugin never shows up in my studio

And it never will. Nevertheless, it will work.

Regards,
Geoff
--------------------------------------------------------------------
Geoff Thompson            Unified Contact Center Practice
Email:  geoff@hp.com      HP Technology Consulting
Phone:  +1.408.447.4297   Hewlett-Packard Company
Mobile: +1.408.204.5297   19111 Pruneridge Ave, Cupertino, CA 95014
____________________________________________________________________

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Arun Kumar on 04-08-2011 12:56:29 PM
Thanks. Hm... I thought based on the display name, it should show up.

If it doe snot show up. Can I select CustomContent and String to make it work.
Also I am supposed to add this to SayITSmart.jar or should just put it under common classes listed above.

studio./library.common_6.0.1\classes

Also do I need to deploy this class in the runtime env  on vxml server also. Thanks for your help

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Arun Kumar on 04-08-2011 01:18:09 PM
Yes, I did that. I put it under deploy in Studio. The class compiled fine. Even closed eclipse and came back. When I click on any audio element and look under SayITSmart I do not see AlphaNUmeric under Type. Not sure, wht it is not showing up.
I will research some more.

Subject: Re: New Message from Arun Kumar in Customer Voice Portal (CVP) - General Di
Replied by: Janine Graves on 04-08-2011 01:32:12 PM
Are you sure you it is compiling correctly for your version of studio? What 
version of studio do you have? What java version are you using to compile 
it?

When you compile it make sure that you include the following jar files in 
classpath (i use these files which are originally in vxmlserver/lib and 
vxmlserfer/common/lib) - servlet.jar, framework.jar, sayitsmart.jar

Janine

Sent from my Verizon Wireless Phone

-----Original message-----
From: Cisco Developer Community Forums <cdicuser@developer.cisco.com>
To: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com>
Sent: Thu, Aug 4, 2011 17:18:09 GMT+00:00
Subject: New Message from Arun Kumar in Customer Voice Portal (CVP) - 
General Discussion - All Versions: RE: Unable to play a alphanumeric string 
without TTS

Subject: RE: New Message from Arun Kumar in Customer Voice Portal (CVP) - General Di
Replied by: GEOFFREY THOMPSON on 04-08-2011 01:02:12 PM
It won¿t show up as a Studio element because it¿s not, but if it is compiled correctly and in the normal place, when you go to SayItSmart you will be able to select it. Can you see it there?

Regards,
Geoff

Subject: Re: New Message from Arun Kumar in Customer Voice Portal (CVP) - General Di
Replied by: Janine Graves on 04-08-2011 01:05:12 PM
Once it has compiled correctly try putting it into your studio project under 
appname/deploy/java/application/classes folder. Close the workspace and then 
double click app.callflow. then it should display as the first item 
Alphanumeric in the say it smart list.



Sent from my Verizon Wireless Phone

-----Original message-----
From: Cisco Developer Community Forums <cdicuser@developer.cisco.com>
To: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com>
Sent: Thu, Aug 4, 2011 16:56:30 GMT+00:00
Subject: New Message from Arun Kumar in Customer Voice Portal (CVP) - 
General Discussion - All Versions: RE: Unable to play a alphanumeric string 
without TTS

Subject: RE: New Message from Arun Kumar in Customer Voice Portal (CVP) - General Di
Replied by: GEOFFREY THOMPSON on 04-08-2011 01:05:12 PM
>>>Also I am supposed to add this to SayITSmart.jar

Now why would you try to do that? That¿s Cisco¿s JAR.

>>>studio./library.common_6.0.1\classes

If you are still using that old version, then that¿s correct.

>>>Also do I need to deploy this class in the runtime env on vxml server also.

What do you reckon? Of course  - copy it over to server\common\classes.

Regards,
Geoff

Subject: RE: New Message from Arun Kumar in Customer Voice Portal (CVP) - General Di
Replied by: GEOFFREY THOMPSON on 04-08-2011 01:30:12 PM
>> I put it under deploy in Studio

What¿s that? Stick it in common\classes, exit Studio and fire it up again.

Regards,
Geoff

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Janine Graves on 04-08-2011 02:13:12 PM
Arun,
At this point you should ensure that you remove the say it smart java class you created from all those other directories, otherwise you'll never solve the problem.
Did you name the file the same as the java class name?
DId you compile it using java 1.4.2 or 1.5?
Did you include the the appropriate version of the jar files in your class path when compiling: I use vxmlserver/lib/framework.jar, servlet.jar and vxmlserver/common/lib/sayitsmart.jar
Did you include the sayitsmart class file under Studio navigator <appname>/deploy/java/application/classes folder?
Did you close the app from teh workspace and then double-click app.callflow
Try bringing in a new Audio element, and see if it's in the Say it Smart pull down as 'Alphanumeric'

If it still doesn't show, check in Studio the topmost menu tab: Window >> SHow View >> Call Studio Error Log - it may tell you what's wrong.

Janine

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Arun Kumar on 04-08-2011 02:29:59 PM
I am using java 1.4. The class compiles fime. I have all the jars that you are mentioning. The only thing is I have the class file in deploy classes as well as commonclass of studio dir . I followed all of the other instructions including closing studio etc. I am using Studio 8.0. Let me reserach some more at my end. Thanks for your help.

Subject: Re: New Message from Arun Kumar in Customer Voice Portal (CVP) - General Di
Replied by: Janine Graves on 04-08-2011 03:10:12 PM
You only want the java file in one location. Take the custom alphanum
say it smart OUT of common classes (at least for now, until we figure
out the issue) and put it within the studio app under
appname/deploy/java/application/classes!  This way the code will be
where you need it for testing with the Studio Debugger and VxmlServer too.

Once you get it working, put it under common/classes!

For Studio 8.0, I recommend that you recompile with Java 1.5 - or use
the Eclipse compiler that comes with Studio.

Did you try looking in the Window >> Show View >> Studio Error Log ?





On 8/4/2011 2:29 PM, Cisco Developer Community Forums wrote:
> Arun Kumar has created a new message in the forum "General Discussion
> - All Versions":
>
> --------------------------------------------------------------
> I am using java 1.4. The class compiles fime. I have all the jars that
> you are mentioning. The only thing is I have the class file in deploy
> classes as well as commonclass of studio dir . I followed all of the
> other instructions including closing studio etc. I am using Studio
> 8.0. Let me reserach some more at my end. Thanks for your help.
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4322453>
>
> or simply reply to this email.

--
Janine Graves

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Arun Kumar on 04-08-2011 03:18:59 PM
Yes, the error log has nothing significant there. Checking any other issues,. Thanks for your help, really appreciate it.

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Hemal Mehta on 05-08-2011 07:11:18 AM
As Janine has stated above, make sure you are code is compiled correctly. Sometimes you may not notice an error in the file and the class file is still generated.  Check the byte size of the file, if it is too small, then something may not be right.

Subject: Re: New Message from Hemal Mehta in Customer Voice Portal (CVP) - General D
Replied by: Janine Graves on 05-08-2011 11:40:12 AM
Arun, what's your email, I'll email you a compiled java class for the
alphanum say it smart and you can see if it appears. Are you using CVP
Studio 8.0?

On 8/5/2011 7:11 AM, Cisco Developer Community Forums wrote:
> Hemal Mehta has created a new message in the forum "General Discussion
> - All Versions"
>
> --------------------------------------------------------------
> As Janine has stated above, make sure you are code is compiled
> correctly. Sometimes you may not notice an error in the file and the
> class file is still generated. Check the byte size of the file, if it
> is too small, then something may not be right.
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4324352>
>
> or simply reply to this email.

--
Janine Graves

Subject: RE: New Message from Arun Kumar in Customer Voice Portal (CVP) - General Di
Replied by: GEOFFREY THOMPSON on 07-08-2011 02:51:12 PM
Janine¿s SayItSmart definitely works. I have tried it on 7.5 and 8.5 Studio trial versions.


1.  Did it compile correctly?

2.  Did you copy it into C:\Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.library.common_8.0.1\classes?

3.  Did you restart Studio?

4.  Open any SayItSmart ¿ you should see Alphanumeric in the drop-down as the first item

5.  If not, check for errors in the start up log file from Help About then the button

Regards,
Geoff
--------------------------------------------------------------------
Geoff Thompson            Unified Contact Center Practice
Email:  geoff@hp.com      HP Technology Consulting
Phone:  +1.408.447.4297   Hewlett-Packard Company
Mobile: +1.408.204.5297   19111 Pruneridge Ave, Cupertino, CA 95014
____________________________________________________________________

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Arun Kumar on 07-08-2011 02:41:51 PM
It did not work with new class file. Not sure if anything is wrong in my environment. Using trial version of Studio 8.0

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Hemal Mehta on 09-08-2011 07:34:25 PM
Not sure, if you got this working. Try one thing, take this class and make a jar file out of it and put it under common/lib dir.  Meanwhile you can remove the same class file from class dir.
See what happens and report back.

Subject: RE: Unable to play a alphanumeric string without TTS
Replied by: Arun Kumar on 10-08-2011 09:49:39 AM
Thanks for all your help guys. Finally it showed up after  I created a TestSmart.jar with  class file and put it under lib dir.  I restarted Studio and boom.... it showed up....
Not sure, why it not showing up with class file. I am having a java expert look at my studio installation and overall env and see if there is anything wrong.
Thanks Janine, Hemal & Geoff. For your time and effort, I really appreciate it.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links