1 / 25

AN EXTENSIBLE TRANSCODER FOR HTML TO VOICEXML CONVERSION by Narayanan Annamalai B.E.

This thesis explores the development of a transcoder to convert HTML content into VoiceXML, allowing visually impaired individuals to access the web through voice interaction. The transcoder aims to express the structure of HTML pages in voice form, while also being customizable and extensible for future HTML tags.

foshields
Download Presentation

AN EXTENSIBLE TRANSCODER FOR HTML TO VOICEXML CONVERSION by Narayanan Annamalai B.E.

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AN EXTENSIBLE TRANSCODER FOR HTML TO VOICEXML CONVERSION by Narayanan Annamalai B.E. Master’s Thesis Advisors: Dr. Gopal Gupta and Dr. B Prabhakaran THE UNIVERSITY OF TEXAS AT DALLAS May 2002

  2. The Scenario • By 2003 - One billion people will use wireless devices. • By 2005 - Half of them will have Internet connectivity. • Growth far surpasses that of wire-bound Internet users. • New Technology is needed to support the masses of Customers. • A medium is required for Data Transfer • The medium should be easy to use and efficient. • The right choice is – Voice

  3. Request B B A B Motivation • Drawback of Existing Web Infrastructure – content • Users of WAP – not satisfied • Not feasible to maintain multiple versions Client WEB SERVER (content in format A) FORMAT TRANSLATOR (Convert A to B)

  4. Related Work The visually impaired – used Screen readers. Frankie James proposed Auditory HTML Access System (AHA) – used distinct tones Above two systems – No Interactive feature Stuart Goose et al. proposed HTML to VoXML converter. VoXML is the ancestor of VoiceXML.

  5. Application of Transcoder VoiceXML Transcoder INTERNET http req. html PSTN VoiceXML Req. Audio Voice Server Mobile User WEB SERVER

  6. Voice Browser Application of Transcoder http req. INTERNET Audio HTML HTML Transcoder WEB SERVER VXML Client

  7. Transcoder Voice Browser Application of Transcoder http req. INTERNET VXML Audio HTML VXML WEB SERVER Client

  8. Objectives • Provide means for Visually impaired to access the Web. • Strive to express the structure of HTML pages in Voice form. • Application can be custom made with respect to User’s wish. • Make the transcoder extensible – to accommodate new HTML tags in future

  9. What is VoiceXML? VoiceXML – Standard developed by VoiceXML forum (AT & T, Motorola, IBM, Lucent) Markup language used for creating Human – Computer interfaces through telephone. User can interact with a VoiceXML page through spoken or DTMF inputs (Telephone key press). Plays synthesized speech, audio files using TTS (Text to speech) converters

  10. VoiceXML Example HTML file VoiceXML file <html> <head> <title> Sample Page</title> </head> <body> <h3> The output is in the form of audio </h3> </body> </html> <?xml version="1.0"?> <vxml version="2.0"> <form id="f1"> <block> starting of the vxml page </block> <block> Sample Page </block> <block> The output is in the form of audio</block> </form> </vxml>

  11. HTML vs VoiceXML HTML VoiceXML • Single unit, presented with full efficiency. • Displays several inputs at the same time. • Input does not need any grammar for validation. • Consists of forms and blocks alone. • Inputs are collected sequentially • 3. Every input needs a grammar for validation.

  12. System Model • The application is realized in two phases • Parsing Phase • Translation Phase Parsing Phase: The Input HTML file is parsed and the HTML node tree is obtained as output. Parser used - purpose is Web-Wise Systems HTML parser Translation Phase: Each HTML node is converted in to corresponding VoiceXML node.

  13. System Architecture Input Provider Parser Translator Internal data sheet External data sheet Output VoiceXML file

  14. Parsing Phase The structure of the HTML file should be transported to the VoiceXML file. HTML file is parsed and the root node of the input file is obtained. Any HTML file’s root node will be the <html> node <html> <head> <body>

  15. Input HTML file <html> <head><title> Example 1</title></head> <body> <h1> Hello World </h1> </body> </html> Parsing Example Output parse tree (htmlRoot = new RootNode()) .addNode(new PageNode() .addNode(new HeadNode() .addNode(new TitleNode() .addNode(new StringNode().setHtmlData(“Example1”)) ) //end TitleNode ) //end HeadNode .addNode(new BodyNode() .addNode(new H1Node().setAlign(``center’’) .addNode(new StringNode().setHtmlData( ``Hello World ‘’)) ) // end H1 Node ) // end Body Node ) //end PageNode

  16. Translating Phase: Issues • Translating phase: Node tree is traversed recursively (from left to right – depth first). • Html node converted to appropriate VoiceXML node. • Issues: • Verify inputs before submission – different from HTML • Highly structured – follows strict convention eg. consider <prompt> It is a beautiful city </prompt> syntactically right, but can be child of only field or block • One to one conversion not possible always

  17. Forms: radio tag Radio tags – provide choices, user selects one choice. When one choice selected, other becomes inactive. HTML – radio tags does not have closing tag. Challenge is to identify the last ‘radio’ button of the same type. example: Input HTML section <form> <INPUT type = radio name = “sex’’ value=“male”> Male <br> <INPUT type = radio name = “sex’’ value=“female”> Female <br> <h1> End of Radio </h1> </form>

  18. Forms: radio tag (contd.) Form node h1 Radio: male sex Radio: female sex Output VoiceXML section String: ‘end of radio’ …… <field name=“sex”> <prompt> Please select an Entrée, what sex <enumerate/></prompt> <option dtmf=“1” VALUE=“Male”> Male </option> <option dtmf=“2” VALUE=“Female”> Female </option> </field> …….

  19. Form: Text Box text box and text area are used to obtain String inputs from user. No sample space for string : e.g., name of a person. VoiceXML inputs need a grammar always. <record> element is used to solve the problem. User can specify record time and attributes. <submit>needs a list of fields and a URL for submission. Should verify the inputs with user before submission.

  20. Form: text box (contd.) Sample HTML extract Corresponding VoiceXML extract …….. <form id=“f2”> <record name=“firstname” beep=“true” maxtime=“10s” finalsilence=“4000ms” dtmfterm=“true”> <prompt> At tone, speak First name: </prompt> <noinput> I did not hear anything, please try again </noinput> <filled> <prompt> Your input is <audio expr=“firstname”/></prompt> </filled> ……. <submit next=WW method=XX namelist= …..> </form> ……. <form action=WW method=XX> <LABEL for=“firstname”> Firstname </LABEL> <INPUT type=“text” id=“firstname”> <INPUT type=“submit” value= “send”> </form> ……..

  21. Links • In HTML, links are given by <a href..> tag in two ways: • To different part of the same document. • To a different document altogether. In VXML, links are provided by <goto next ..> method. To Internal documents:Sub-dialogs are created. Sub-dialog is like a function call. <goto next= sub-dialog name> To External documents:<goto next=URL>. The target HTML URL is converted to a VoiceXML page, thus VoiceXML URL is provided.

  22. Text Display Tags Tags used for display – does not make much sense in VoiceXML. Function of some display tags can be spoken out orally <block>…….</block> and <prompt>…….</prompt> are tags used to speak out text enclosed between them. Content to be spoken can be tailored using Interface sheet. The Interface sheet – used to add new HTML tags, making the system Extensible

  23. Extensible Feature of Transcoder Input Attributes A Input duration in seconds for Text-box : Input duration in seconds for Text-Area : …………. HTML Tags Corresponding Text spoken B <blockquote> </blockquote> ………… Starting of text quoted from elsewhere Ignore ………….. Row A – Input Attributes can be supplied by the user Row B – Treatment of HTML tags can be altered, ignored. New tags can be added in this section.

  24. Conclusion Our transcoder is capable of converting any HTML (4.0 or lower version) file to corresponding VoiceXML file. Prominent feature of the Transcoder – Extensibility and User Inter-activeness. HTML to VoiceXML paves the way for Anytime, Anywhere Internet access for mobile clients.

  25. Future Work • Our system will strive to remove the restriction – all open tags in the input HTML file should have close tags. • Try to process applets and Scripts that may be present in input HTML page. • Analyzing the feasibility of implementing Transcoder in Proxy Servers.

More Related