Creating interfaces - PowerPoint PPT Presentation

About This Presentation
Title:

Creating interfaces

Description:

Creating interfaces XML & XSL review VoiceXML: grammar Homework: postings, presentation, study guide – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 16
Provided by: Jeani170
Category:

less

Transcript and Presenter's Notes

Title: Creating interfaces


1
Creating interfaces
  • XML XSL review
  • VoiceXML grammar
  • Homework postings, presentation, study guide

2
XML
  • General format for data. Intended for use between
    people and applications and between applications
    and applications.
  • XSLT language (itself XML format) for
    transforming XML,
  • one use being XML to HTML. The resulting HTML
    can use JavaScript.
  • XML to WML
  • XML to VoiceXML (probably less common, but this
    use could grow)

3
XML
  • Used server side with php or asp or ColdFusion
    or older technologies cgi/perl
  • Used with/by Flash
  • Used client side by JavaScript
  • Used with 'Web services'

4
Preview
  • Next Fall, new course on Java and connections
    (title not set)
  • Peter Ohring
  • probably evening
  • upper-level math/cs elective

5
XML
  • format for holding content (independent of
    formatting and use)
  • Not the only one! Consider
  • relational databases
  • linked lists
  • general graphs (nodes with any number of links,
    possibly cycles)
  • ?

6
"XML Languages"
  • XSLT
  • WML
  • VoiceXML
  • There are now also XML specifications for books,
    purchase orders, math, etc.

7
VoiceXML Grammars
  • Use / study grammars in Tellme studio
  • Note GRXML, alternative form of grammar that is
    an XML format will probably replace GSL,
    currently used by Tellme
  • Look up bargein, n-best
  • Specifying numeric keys dtmf
  • Setting multiple values

8
Grammars
  • Parentheses indicate and (sequence of words)
  • Square brackets (within an option) indicate or
  • ? Indicates optional zero or 1 occurrence
  • indicates any number of occurrences
  • indicates one or more occurrences
  • (math ?(computer science)) accepts
  • math
  • math computer science
  • purchase pace accepts
  • purchase
  • pace

9
Questions
  • Give a grammar that accepts "Tom", "Dick", or
    "Harry"
  • Give a grammar that accepts "Bill Clinton",
    "Hilary Clinton", "President Clinton"
  • Give a grammar that would distinguish between the
    41st president and the 43rd president.

10
DTMF
  • The grammar mode default setting is both voice
    and dtmf.
  • dtmf-1 means to accept caller hitting 1 key
  • Use grammar tools in My Studio for help
    generating the keys to represent letters

11
  • lt?xml version"1.0" ?gt
  • ltvxml version"2.0"gt
  • ltformgt
  • ltfield name"answer"gt
  • ltgrammar type"application/x-gsl" gt
  • lt!CDATA
  • yes dtmf-1 ltanswer "yes"gt
  • no dtmf-2 ltanswer "no"gt
  • gt
  • lt/grammargt
  • ltprompt count"1"gt Say yes or no lt/promptgt
  • ltprompt count"2"gt Press 1 or say yes or press 2
    or say no. lt/promptgt
  • ltcatch event"noinput nomatch"gt
  • ltreprompt/gt lt/catchgt
  • ltfilledgt ltaudiogtYou said ltvalue
    expr"answer"/gtlt/audiogt
  • lt/filledgt
  • lt/fieldgt
  • lt/formgt
  • lt/vxmlgt

12
Letter correspondences
  • In My Studio, click on Grammar Tools and then
    DTMF and the system will generate sequences (and
    let you know if there are problems)
  • Here are 3 letter sequences for these two
    choices
  • dtmf-6 dtmf-2 dtmf-8 math
  • dtmf-6 dtmf-3 dtmf-9 new media

13
Setting multiple values
  • (math ?computer) ltmajor math"gt ltbuilding
    NS"gt
  • (new media) ltmajor nm"gt ltbuilding Music"gt

14
Tellme
  • MyStudio 1-800-555-VXML You need to give 5
    digit plus 4 digit pin
  • For all of us to use your project, we need
  • you to upload all files to your rachel account
    (or some other website)
  • you to tell us the URL of the xml file

15
Homework
  • Postings (on other peoples projects)
  • Projects Be prepared to give demonstration and
    turn in (hardcopy) description and,
  • if you are doing VoiceXML, your URL
  • If doing a Web page, the URL
  • Review guide to final
Write a Comment
User Comments (0)
About PowerShow.com