This project is read-only.

Table of Contents

What is included?

The module is divided into three features that individually can be enabled. These are:

  • Speech service, translation service and parts
  • Voice Commands
  • Microsoft Translator Widget

Use of each feature

Soundpart and textsize part

The soundpart and textsize part can be attached to any content type. This is done by going to Content --> Content Types, where you can edit a type to attach new parts. You can also choose to execute the recipe "Add sound and textsize to pages and blog posts" to quickly attach the parts to pages and blog posts.

When the soundpart is attached to a content type, it will automatically generate a sound of the bodytext, when it is publishing.

Backend example:

When you have clicked the "Publish Now", you will also get soundplayer of the sound in the backend as in the frontend.

Frontend example:

(The controls have shortcuts, so you can also hit AltGr+P to play, AltGr+I to increase text, etc.)

Localization extension

When enabling the feature "Speech service, translation service and parts" you can also take advantage of the translation service. An example of the use of this service is the wrapper constructed for the localization (the Orchard.Module.Orchard.Localization module). This will on localization make it possibly by to quickly translate the bodytext to language of the localized content.

It will automatically detect the language and translate it to the language of the localization.

Voice Commands (Requires use of Google Chrome 11 or higher)

The Voice Command feature enables you define different commands. The administration of this can be found by clicking Voice Commands in backend.

In the picture above there is for example a command defined with the activation string "Search for", the type of execution GoToUrl, and the execution data /Search?q={value}. This example will let users say something like "Search for car", "Search for Donald Duck", etc., after which the browser will use search feature on the page to search for "car" or "Donald Duck".

The microphone, which the user has to click on to use Voice Commands, you get by inserting the included Voice Commands Widget.

If you quickly want some Voice Command examples and the widget inserted on your website you can execute the recipe "Enable Voice Commands, add examples and add the Voice Command widget".

Enabling of Voice Commands also do it possible to fill every input field on your website using your voice. Furthermore this feature also wraps around the textarea for commenting, so this area also can be filled by your voice.

Microsoft Translator Widget

The Microsoft Translator Widget can be inserted as a Orchard widget. The widget is inserted as any other widgets in Orchard.

Orchard Commands included

To let you administrate the features from a command line, the following commands are included:

soundpart update

       Updates all sound parts on your website

voicecommand add gotourl /Activation:<activation> /Data:<data>

       Add a voice command that on <activation> goes to the url <data> - Use {value} to get the text that follows the activation

voicecommand add javascript /Activation:<activation> /Data:<data>

       Add a voice command that on <activation> executes the JavaScript <data> - Use {value} to get the text that follows the activation

Orchard Recipes included

Recipe: Add the Microsoft Translator Widget
Description: Adds the Microsoft Translator Widget to your site.

Recipe: Add sound and textsize to pages and blog posts
Description: Add sound and textsize tools to your pages.

Recipe: Enable Voice Commands, add examples and add the Voice Command widget
Description: Adds Voice Commands, voice command examples, and the Voice Command widget on your site.

The recipes are selectable after installation of the module:

They can also be executed from a a command line:

For developers

The module contains three Orchard services, one for translation of texts to other languages (ITranslationService), generations of sound files from text (ISpeakService), and a service for administrating voice commands (IVoiceCommandService).

You could for example use the ITranslationService for translating texts that you have to another language, by just using this service.

Demonstration website

You can see an example of the use of the module at http://mpbrun.imaginecup2011.net.

Or on Windows Azure at http://attools.mpbrun.dk/.

Last edited Jun 10, 2011 at 11:30 AM by PeterBrun, version 20

Comments

No comments yet.