DialogDesigner 50 Sample Applications.docx

上传人:b****1 文档编号:2336161 上传时间:2023-05-03 格式:DOCX 页数:17 大小:131.26KB
下载 相关 举报
DialogDesigner 50 Sample Applications.docx_第1页
第1页 / 共17页
DialogDesigner 50 Sample Applications.docx_第2页
第2页 / 共17页
DialogDesigner 50 Sample Applications.docx_第3页
第3页 / 共17页
DialogDesigner 50 Sample Applications.docx_第4页
第4页 / 共17页
DialogDesigner 50 Sample Applications.docx_第5页
第5页 / 共17页
DialogDesigner 50 Sample Applications.docx_第6页
第6页 / 共17页
DialogDesigner 50 Sample Applications.docx_第7页
第7页 / 共17页
DialogDesigner 50 Sample Applications.docx_第8页
第8页 / 共17页
DialogDesigner 50 Sample Applications.docx_第9页
第9页 / 共17页
DialogDesigner 50 Sample Applications.docx_第10页
第10页 / 共17页
DialogDesigner 50 Sample Applications.docx_第11页
第11页 / 共17页
DialogDesigner 50 Sample Applications.docx_第12页
第12页 / 共17页
DialogDesigner 50 Sample Applications.docx_第13页
第13页 / 共17页
DialogDesigner 50 Sample Applications.docx_第14页
第14页 / 共17页
DialogDesigner 50 Sample Applications.docx_第15页
第15页 / 共17页
DialogDesigner 50 Sample Applications.docx_第16页
第16页 / 共17页
DialogDesigner 50 Sample Applications.docx_第17页
第17页 / 共17页
亲,该文档总共17页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

DialogDesigner 50 Sample Applications.docx

《DialogDesigner 50 Sample Applications.docx》由会员分享,可在线阅读,更多相关《DialogDesigner 50 Sample Applications.docx(17页珍藏版)》请在冰点文库上搜索。

DialogDesigner 50 Sample Applications.docx

DialogDesigner50SampleApplications

DialogDesigner

SampleApplications

Version5.0

Disclaimer

ThesampleapplicationsreleasedwithDialogDesignerareintendedtodemonstratespecificfunctionsortechnologies.Whilesomeapplicationswillrun“out-of-the-box”withtheDialogDesignersimulationvoicebrowseroronavoiceplatform(AvayaIRorAvayaVoicePortal),theseapplicationsarenotguaranteedtorunwithouttheproperhardwareandtelephonysetup.Theseexamplesareintendedtobeusedastechnicalsamplesforreferenceonly,andnotproduction-readyapplications.

AdditionalsampleapplicationsarealsoavailableontheAvayaDevConnectportal.

Installationinstructions

1)InEclipse,makesurethattheTomcathomepropertyhasbeensetintheEclipsepreferences:

WindowàPreferencesàTomcat.BrowsefortherootdirectorywhereyouinstalledTomcat(i.e.C:

\ProgramFiles\ApacheSoftwareFoundation\Tomcat5.5,etc.).

2)LocatethesampleDD__SampleApplications.zipandusingWinZIP(orsomeothercompressedfileextractionutility)unzipto,whereistheDialogDesignerreleaseversion(e.g.5.0)andisthebasedirectoryofyourEclipseinstallation.(Note:

ThesampleapplicationZIPfileisdistributedontheDialogDesignerreleaseCD,sobrowsetolocatethefile.Thesampleapplicationsmayalsobedownloadedfrom).

3)UsingEclipse,importtheapplicationsintoyourEclipseworkspace.UseFileàImportàExistingProjectintoWorkspacetoselectoneormoreproject(s)andimportitintotheEclipseenvironment.(Note:

Thisassumesthatyourworkspaceisconfiguredtobe/workspace.IfyouhaveconfiguredyourEclipseenvironmenttouseaworkspaceinadifferentlocation,youwillhavetomanuallymovethesampleapplicationprojectstoyourworkspacelocation).

NOTE:

ToreducethesizeofthesampleapplicationZIPfile,thesampleapplicationsaredistributedwithoutthescert.jarfile.WhentheapplicationsareimportedintoDialogDesigner,itwillpromptyoutoupdatetheruntimelibraries,whichwillcopythescert.jarintotheproject.

Sampleapplications

ThefollowingsampleapplicationsandmoduleshavebeenprovidedwithDialogDesigner:

∙ArrayExample

∙BloominBloomsLite

∙ConverseExample2

∙ConverseStep

∙DDIceCreamStore

∙DTMFToneMask

∙DynamicPhraseLoading

∙Events

∙GoogleWebservice1

∙InBandTonePulse

∙LexingtonLegends(requiresmodules:

StadiumDirections&CollectTicketInfo)

∙MultilingualHelloWorld

∙MyCreditCard

∙MyMathQuiz

∙MyTreasureMap

∙MyTroubleDesk

∙NBestExample

∙RecordMessage

∙RecordMessageOSDM

∙Spelling

∙StockAndWeatherAudio

∙TASExample

∙UserDefinedVXML

∙VoiceThermostat

MultilingualHelloWorld

Thisapplicationisthebasic“HelloWorld”withafewaddedenhancements.Afterthelanguagemenu,theapplicationsayshellotothecallerandpromptsthecallerforagreetingresponse.Aftercollectingthecaller’sresponse,theapplicationrepeatsthecaller’sutterance.Thentheapplicationasksiftheuserwantstogothroughtheapplicationagain.Ifcallerrespondswithanaffirmativeresponse,thentheappgoesbacktothelanguagemenutorepeat.ThislanguagesupportsEnglish&Spanishpromptsandgrammars.Onethingtonoteisthe“GoAgain”nodeusesamultilingualgrammarforyes/noinputandtheSpanishandEnglishgrammaritemsuse“true”and“false”forthetagvalueswhichallowsthecallflowtobranchbasedontheuserinputinterpretationratherthantheutterance(“yes”isdifferentfrom“si”,etc.).Oneothernote,ifyouarerunningthisapplicationonMicrosoftASR/TTS,theSpanishsupportisbarelyfunctional,sodonotexpectverysuccessfulrecognitionsandtheTTSiscomical.ThemorerecentMicrosoftSpeechpackage(6.0)maytreatthisbetter,orifaSpanishTTS/ASRenginehasbeeninstalled,youmayhavebetterTTS/ASRexperiences.(Configurationnote:

ifyoudohaveaSpanishTTSengineinstalled,youwillhavetoconfiguretheprojectsothatitemitstheSpanishTTSlanguagetagintheVXMLsotheSpanishTTSengineisloadedatruntime.RefertotheDialogDesignerhelpcontentsforinformationonconfiguringlanguagesintheworkspaceandconfiguringlanguagesforaproject).

RecordMessage

ThisisasimpleapplicationthatdemonstrateshowaRecorditemcanbeusedtoletacallerleaveamessage,listentothemessage,re-record,etc.ThisapplicationcanalsobereusedasamodulebecauseitreturnstheURLtotherecordedaudiofileasanoutputparameterfromthemodule.

RecordMessageOSDM

ThisapplicationisidenticaltoRecordMessageexceptitusestheRecordOSDMfromNuance.Inordertorunthisapplication,youmusthavepurchasedtheOSDMsNuance.AfteryouhaveinstalledandconfiguredtheOSDMsforthevoiceplatform,importtheOSDMsintoDialogDesignerinordertobuildRecordMessageOSDM.

NOTE:

AvayadoesnotprovideconfigurationortroubleshootingsupportforOSDMs.OSDMsmustbeconfiguredpriortoattemptingtousewithDialogDesigner.

Events

Thisapplicationdemonstrateseventhandlingaswellasevent-drivencallcontrol.ThereisaneventhandleronAppRootforthecustomeventtype“MyEvent”.ApromptandcollectnodecatchestheNoInput/NoMatchevents,playsapromptandthenthrowsa“MyEvent”.ThethirdtimetheMyEventiscaught,thecallisroutedtoadifferentdisconnectnodeandthecallends.ImportantthingstonotearetheuseofpromptlevelsontheME.promptandME3.prompt.

ArrayExample

OneofthefeaturesofDialogDesigneristheabilitytotreatruntimevariablesasacollection(orcanbethoughtofasanarray).Collectionsareusefulwhenworkingwithresultsfromdatabasequeries,webservicecalls,oriftheASRenginereturnsmorethanonerecognitionresult(seeNBestExample).ThisapplicationdemonstratesworkingwiththecollectionAPItopopulateacollectionvariablefromboththeGUIandfromJavacode.

TASExample

ThisapplicationdemonstratesinvokingaTASscriptviatheVXMLObjecttag.UsingtheVXMLObjecttagtoinvokeTASscriptsisanimportantwaytoleverageexistingand/orlegacyscriptsonanIRplatform.Thisexampleinvokesthe“avftst”TASscript.ForadditionalinformationoninvokingTASscriptsonIRusingtheVXMLObjecttag,refertoIR/TASdocumentation(HelpàApplicationdevelopmentàAdvancedapplicationdevelopmentàUsingVoiceXMLàCreatingaVoiceXMLapplicationàUsingtheVoiceXMLelementinterface).Note:

TASapplicationsarenotcompatiblewithVoicePortal,sothisexampleisforIRonly.Additionally,simulationoftheobjecttagandTASscriptsarenotsupported.

NBestExample

ThisapplicationdemonstrateshowtohandlemorethanoneresultfromanASRengine.Whilethisapplicationsimplyreadsalloftheresults,anotherusecouldbetoiterateovertheresultandgivethecallerachancetoacceptoneoftheresponses(i.e.“callbillsmith”mayreturn“willsmith”and“billsmith”—youcouldgivethecallerachancetoacceptoneoftheresponses).IfyouareusingtheMicrosoftASRengine,n-bestisnotsupportedsoyoucan’tusespeech,butyoucansimulaten-bestbytypingintheASRrecognitionandconfidencevalues(commaseparated)andusingtheSendASRbutton.Forexample:

UserDefinedVXML

ThisapplicationusestheVXMLServletnodetosupportcustomVXML.Whilethisjustplaysatext-to-speechprompt,thisnodecouldbeusedtodomoreadvancedVXML.

InBandTonePulse

ThisapplicationdemonstratesplayingDTMFtonesfromaVXMLpage.ItusesthenewPhraseVariabletype“DTMFTones”toconvertthevalueofthevariableintothecorrespondingDTMFkey.TheDTMFtonesthatareplayedare50msDTMFtonepulsesfollowedby50msofsilence.ThistypeofapplicationmaybeusefulinsomeinstanceswhereatelephonysystemrequirestheapplicationtopulseDTMFtonesinband(suchasforatransfer,etc.).

NOTE:

PlayingtheDTMFtonesinbandmaynotworkforalltelephonyconfigurations.ItisrecommendedthatyouvalidatethefunctionalitywithyourIVRplatformandswitch.ThisisjustanexampleofhowtonescouldbeplayedinaVXMLapplicationandhasnoguarantees.

DynamicPhraseLoading

Thisisasimpleapplicationthatdemonstratesloadingandplayingdynamicphrases(pre-recordedaudio)atruntime.TheDialogDesignerruntimeframeworkprovidesAPIthatallowsanapplicationtooverridethelocationofanaudiofilesuchthatitmaybelocatedoutsideoftheprojectorevenonadifferentapplicationserver(i.e.anHTTP-enabledmediaserver).ThissampledemonstratesusingtheAPItoloadaudiofilesfromadifferentdirectorywithintheproject;thecallerispromptedforaphrasenumber(1-4)andbasedonthecallerinput,thecorrespondingphrasenumberisloadedfromthe“myphrases”directory.Whiletheapplicationisnotveryexciting,itisasimpledemonstrationofhowdynamicaudiocanbeaddedtoaproject.ThelogicthatisusedtoloadphrasesdynamicallyshouldbereviewedinWEB-INF/src/English/phrasesets/DynamicPhraseset.java.

Spelling

ThisapplicationdemonstratesusingaPhraseVariabletoplayaudiofilesbasedonthevalueofavariable.Thisapplicationactsasaverylimitedlocalizationbundleandwill“spell”individuallettersandnumbersfromavariablevalue.

Theapplicationcontainsaphraseset(spell),whichcontains36phrases(A-Z,0-9).AsimpleJavautilityclasswillparsethevalueofavariableandbuildacollectionvariablethatcontainstheIDsofthephrasestospellthevalue.Forexample:

“Hello123”isparsedintoacollectionofvalues:

[0]=“spell:

h”

[1]=“spell:

e”

[2]=“spell:

l”

[7]=“spell:

3”

NOTE:

ThisapplicationisasimpleexampleofonewaytouseaPhraseVariable.Thissampleapplicationisnot

展开阅读全文
相关搜索

当前位置:首页 > 工程科技 > 能源化工

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2