Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Voicetools » Using a custom Voice Formatter
Using a custom Voice Formatter [message #879683] Thu, 31 May 2012 12:23 Go to next message
Kevin Smith is currently offline Kevin Smith
Messages: 7
Registered: May 2012
Junior Member
Hi there,

I am writing a custom voice formatter for our OpenVXML project (one which will read passwords indicating upper and lowercase letters). I have followed the pdf tutorial on OpenMethods' site which seems straightforward, but it doesn't mention how to actually build, deploy and use the new formatter.

Can anyone provide any info on this?

Many thanks Smile
Re: Using a custom Voice Formatter [message #880130 is a reply to message #879683] Fri, 01 June 2012 09:38 Go to previous messageGo to next message
Randy Childers is currently offline Randy Childers
Messages: 121
Registered: July 2009
Senior Member
Hi Kevin--

There are a couple of different answers for this.

If your goal is your own testing, and you've written this in the same
Eclipse workspace as the VTP source, then you should just be able to
launch a runtime workbench and have access to it there. Create/modify
your application to use the new formatter, then export and test.

The point at which you connect an application to the custom voice
formatter is in a Voice project. Create a new Voice project; when you
get to the screen where you provide a name, you should see your new
formatter in the "Formatter" drop-down box; if you don't, go back and
check your Extensions in the MANIFEST.MF file for the formatter project.

If you're trying to share it, then you'll want to export it as a
deployable plugin and fragment, and then get it into the other
developers' OpenVXML's / Eclipse's plugin folders.

I hope this helps -- good luck.
Randy

In <jq85u7$epo$1@xxxxxxxxe.org> Kevin Smith wrote:
> Hi there,
>
> I am writing a custom voice formatter for our OpenVXML project (one
> which will read passwords indicating upper and lowercase letters). I
> have followed the pdf tutorial on OpenMethods' site which seems
> straightforward, but it doesn't mention how to actually build, deploy
> and use the new formatter.
>
> Can anyone provide any info on this?
>
> Many thanks :)
>
Re: Using a custom Voice Formatter [message #880140 is a reply to message #880130] Fri, 01 June 2012 10:08 Go to previous messageGo to next message
Kevin Smith is currently offline Kevin Smith
Messages: 7
Registered: May 2012
Junior Member
Hi Randy, thanks for your reply. Smile

I'm not really familiar with Eclipse plugin development - there were no Extensions declared in the manifest, so I added org.eclipse.vtp.framework.interactions.core.formatterTypes and pointed the class to my formatter class. Not sure if this is right as the tutorial doesn't mention this step.

I will eventually need to export the new formatter but I seemed able to do this just fine and it appears installed in my VTP workspace. However neither doing this nor launching a runtime workbench made the formatter appear as an option when creating a voice project, so I assume I still don't have the extensions configured correctly. Can you advise on what should appear there in the manifest?

Thanks
Kevin

Randy Childers wrote on Fri, 01 June 2012 09:38
Hi Kevin--

There are a couple of different answers for this.

If your goal is your own testing, and you've written this in the same
Eclipse workspace as the VTP source, then you should just be able to
launch a runtime workbench and have access to it there. Create/modify
your application to use the new formatter, then export and test.

The point at which you connect an application to the custom voice
formatter is in a Voice project. Create a new Voice project; when you
get to the screen where you provide a name, you should see your new
formatter in the "Formatter" drop-down box; if you don't, go back and
check your Extensions in the MANIFEST.MF file for the formatter project.

If you're trying to share it, then you'll want to export it as a
deployable plugin and fragment, and then get it into the other
developers' OpenVXML's / Eclipse's plugin folders.

I hope this helps -- good luck.
Randy

In <jq85u7$epo$1@xxxxxxxxe.org> Kevin Smith wrote:
> Hi there,
>
> I am writing a custom voice formatter for our OpenVXML project (one
> which will read passwords indicating upper and lowercase letters). I
> have followed the pdf tutorial on OpenMethods' site which seems
> straightforward, but it doesn't mention how to actually build, deploy
> and use the new formatter.
>
> Can anyone provide any info on this?
>
> Many thanks Smile
>

Re: Using a custom Voice Formatter [message #881440 is a reply to message #880140] Mon, 04 June 2012 11:03 Go to previous message
Randy Childers is currently offline Randy Childers
Messages: 121
Registered: July 2009
Senior Member
Kevin, you're part of the way there. For the sake of clarity (and for
the benefit of others why may have the same problem), I'm going to be
thorough and pedantic about the extensions to be added, and hopefully
this will help you find what's missing.

For the new voice formatter project, in the MANIFEST.MF file, there need
to be 2 extensions added, and then an additional element under one.

org.eclipse.vtp.framework.interaction.core.formatterTypes
<additional formatter element>
org.eclipse.vtp.framework.core.services

Neither of the two extensions have any configuration (ID or Name);
what's important is that they exist. The element added under the
formatterTypes extension does need to be configured, though. For
example, the configuration for one I've got looks like this.

id: com.openmethods.ovxml.language.spanish.formatter
name: Simple Spanish Voice Formatter
interaction-type: org.eclipse.vtp.framework.interactions.voice.
interaction
class: com.openmethods.ovxml.language.spanish.
SimpleSpanishVoiceFormatter
vendor-name: OpenMethods

Note that the "class" entry should be the specific class name of the
class that extends VoiceFormatter.

Good luck,
Randy


In <jqaidd$4uj$1@xxxxxxxxe.org> Kevin Smith wrote:
> Hi Randy, thanks for your reply. :)
>
> I'm not really familiar with Eclipse plugin development - there were
> no Extensions declared in the manifest, so I added org.eclipse.vtp.
> framework.interactions.core.formatterTypes and pointed the class to my
> formatter class. Not sure if this is right as the tutorial doesn't
> mention this step.
>
> I will eventually need to export the new formatter but I seemed able
> to do this just fine and it appears installed in my VTP workspace.
> However neither doing this nor launching a runtime workbench made the
> formatter appear as an option when creating a voice project, so I
> assume I still don't have the extensions configured correctly. Can you
> advise on what should appear there in the manifest?
>
> Thanks
> Kevin
>
> Randy Childers wrote on Fri, 01 June 2012 09:38
>> Hi Kevin--
>>
>> There are a couple of different answers for this.
>>
>> If your goal is your own testing, and you've written this in the same
>> Eclipse workspace as the VTP source, then you should just be able to
>> launch a runtime workbench and have access to it there. Create/
>> modify your application to use the new formatter, then export and
>> test. The point at which you connect an application to the custom
>> voice formatter is in a Voice project. Create a new Voice project;
>> when you get to the screen where you provide a name, you should see
>> your new formatter in the "Formatter" drop-down box; if you don't,
>> go back and check your Extensions in the MANIFEST.MF file for the
>> formatter project. If you're trying to share it, then you'll want to
>> export it as a deployable plugin and fragment, and then get it into
>> the other developers' OpenVXML's / Eclipse's plugin folders. I hope
>> this helps -- good luck. Randy In <jq85u7$epo$1@xxxxxxxx> Kevin
>> Smith wrote:
>> > Hi there,
>> >
>> > I am writing a custom voice formatter for our OpenVXML project (one
>> > which will read passwords indicating upper and lowercase letters).
>> > I have followed the pdf tutorial on OpenMethods' site which seems
>> > straightforward, but it doesn't mention how to actually build,
>> > deploy and use the new formatter.
>> >
>> > Can anyone provide any info on this?
>> >
>> > Many thanks :)
>> >
>
>
>
Previous Topic:How to return from subdialog
Next Topic:Set caller id within application?
Goto Forum:
  


Current Time: Sat Aug 23 11:32:53 EDT 2014

Powered by FUDForum. Page generated in 0.02092 seconds