lundi 6 octobre 2014

Speech To Text Awesomeness in Siebel Open UI - Part 1


DOWNLOAD

LAST UPDATE:





If you have been following the various articles in the Siebel Open UI realm over the past two years you have probably seen a demonstration of speech recognition to provide field values via the device microphone.

The example code with this demo boils down to one line like this:

$('input[name="' + controlInputName + '"]').attr("x-webkit-speech","x-webkit-speech");

The above code is adding the 0123456789x-webkit-speech0123456789 attribute to a text input control so that we can simply click or tap a microphone icon and start speaking. Note that only Google Chrome supported this feature. Supported? Read on...

As you also probably know, this humble writer and his fellow authors are working on the Siebel Open UI Developer's Handbook (to be released early 2015). Of course, we aim to provide as many working examples as possible and the speech-to-text demo is something we have on our list.

However, while creating the demo code for the book we found to our dismay that the x-webkit-speech attribute is deprecated. Bummer...

0123456789HTML5 Rocks0123456789

This is where HTML5 (and any browser that supports it) comes to the rescue with the Speech Recognition (Web Speech) and Speech Synthesis API. Support for these APIs is currently limited to Google Chrome and Apple Safari browsers.

So we set out to give speech recognition in Siebel Open UI another chance and are happy to provide a working solution using the HTML5 APIs. In this and the following post we will describe how to use the following ingredients to create a 0123456789custom physical renderer for a form applet0123456789:In 

Display a microphone button in a text field using a scalable icon by Font AwesomeAllow speech input using the HTML5 Web Speech APIAnimate the microphone icon during recording with CSS animationWrite the recognized text to a field according using the Siebel Open UI API (of course)Play back the recorded text using the HTML5 Speech Synthesis API
Let's get started with a screenshot:


The highlighted microphone icon (in the Job Title control) is all the user can see. Tapping/clicking the icon will cause the browser (again: only Chrome or Safari support currently support this) to prompt the user that the web page wants access to the device microphone. After allowing that, the user can talk. Once she or he finishes talking, the field will be updated with the recognized text.

In the remainder of this first part we will lay out the foundation in terms of creating and registering a boilerplate PR and downloading the necessary files for Font Awesome.

01234567891. Create and Register a Boilerplate PR0123456789

We assume a certain familiarity with Open UI at this point, so all we do here is create a new custom physical renderer file in the siebel/custom folder from a template.

We suggest that you name the file ContactSpeech2TextPR.js.If you use the Siebel Essentials PR Template, continue by replacing all occurrences of 'PRTemplate' with 'ContactSpeech2TextPR'.Next, ensure that the call to SiebelJS.Extend looks like the following to have a proper extension for a form applet:
SiebelJS.Extend(ContactSpeech2TextPR, SiebelAppFacade.0123456789PhysicalRenderer0123456789);

At this point, the PR does not do much apart from printing messages to the console (at least that's what our template does), but that's ok for now.

Next, we register the new file in the 0123456789Manifest Files0123456789 view:



Off we go to the 0123456789Manifest Administration0123456789 view and associate the file with the 0123456789Contact Form Applet0123456789 for the sake of demo.



Finally, log off and on again and verify that the PR is loaded (look at the JavaScript console for the log messages if you're using the Siebel Essentials template).

If you are already a Siebel Open UI veteran, you might well be annoyed by this level of detail here. Here at Siebel Essentials we aim to please juniors and seniors alike. So if you can't wait and want to jump ahead, here is the complete example PR (with full speech recognition and synthesis). Note that you also need Font Awesome files and some custom CSS, so reading on is recommendable.

0123456789Prepare for Font Awesome0123456789

Font Awesome is an open source icon and CSS toolkit which provides hundreds of vector icons. The benefit of using scalable font icons instead of image files becomes clear when you consider different zoom levels, the amount and size of files to be downloaded and whether you want to be old-school or just cool ;-)


For "ninja-style" testing you can include Font Awesome in any web page (including Open UI) with one line of JavaScript like the following:

$("head").append('<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">');

Of course the above will require that your browser can reach the public internet. For a real-life Siebel production environment, we will be better off if we download the source files and put it on our own Siebel web server. Here is how to accomplish this:

Go to Fort Awesome and download the latest source archive.Open the archive and extract the 0123456789font-awesome.css0123456789 file to the PUBLIC/%Language%/FILES/custom folder. Do not use the minified version (some editing is necessary so we better use the original file).Create a 0123456789FONTS0123456789 folder in PUBLIC/%Language% (Note: This folder will be present in future Siebel versions, so you probably only have to do this only if you're on IP 2013).Create a 0123456789custom0123456789 sub-folder within the FONTS folder.From the Font Awesome archive, extract all font files to the PUBLIC/%Language%/FONTS/custom folder.Edit the font-awesome.css file and replace all occurrences of '../fonts/' with '../../fonts/custom/' to comply with the placement of files in the Siebel PUBLIC folder.Edit the 0123456789custom theme.js 0123456789file (that you hopefully have at this point, if not look here for a start on custom themes) and add a reference to the font-awesome.css file similar to the following example:
SiebelApp.ThemeManager.addResource(
    "TANGERINE_TAB",
    { css : {  fa: "files/custom/font-awesome.css"
        }}); 

Note that this applies to IP 2013. There is a high probability for future posts on custom themes in IP 2014...
Repeat the above step for any standard and custom theme you might be using.

Quite a stretch for a small icon but now we have the full power of Font Awesome at our fingertips.

Please stay tuned for the next part where we will actually bring all the pieces together to capture your beautiful speaking voice in the Siebel database ;-)

have a nice day

@lex
Get your Speech To Text Awesomeness in Siebel Open UI - Part 1 US USA
You can now get a Speech To Text Awesomeness in Siebel Open UI - Part 1. For all those who couldn't find the file, here you go - 100% working - and our support! With our site, you can get a Speech To Text Awesomeness in Siebel Open UI - Part 1 which takes about 1 minute and is very straight forward and easy to do, you can immediately start using this file! There was a lot of hard work and effort in order to get for everybody a Speech To Text Awesomeness in Siebel Open UI - Part 1, so please do not forget to say thank you in your head! You can get your Speech To Text Awesomeness in Siebel Open UI - Part 1 here, on our portal. Please do not forget to leave a simple “Thanks!” for our effort in order to get you a Speech To Text Awesomeness in Siebel Open UI - Part 1. What are you waiting for? Go download and run your file for free! You will be really satisfied from our service and from our files.
Get your Speech To Text Awesomeness in Siebel Open UI - Part 1 – Actually WORKS! Speech To Text Awesomeness in Siebel Open UI - Part 1 []
Does it work (our links)?

TAGS: get full version setup crack product key serial number cheat hack tool official latest no survey 100% working legit direct download installer keygen patch registration license activation windows xp vista 7 8 10 ipad iphone mobile linux mac os-x lifetime activated apk app ios facebook youtube تحميل preuzimanje ke stažení hent lae i-download ang lataa télécharger λήψη הורדה डाउनलोड descargar ダウンロード parsisiųsti преземи muat turun herunterladen last ned baixar скачать descărcați преузимање na stiahnutie hämta ดาวน์โหลด indir завантажити letöltés tải về scarica aflaai