Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Don't get me wrong, I think VoiceXML is cool, but I don't see how this relates to Perl. Anyway...

Originally, I interpreted your question to mean how do you get text input using VXML. Finally I realized that you don't mean text input, but rather you want to let the user input arbitrary words. First, note that would potentially introduce a security hole because now you have to parse the input (it's on-topic for purposes of meme propagation :). For that reason, it's better to explicitly list what input is allowed and have the user choose from that list.

Beyond that, it'd be difficult for the voice interpreter to translate arbitrary voice input into text. Say you have a professor named "Skocpol". Maybe the student will pronounce it as "Scockpole", or maybe as "Schohpaul". It would be easier for the interpreter to compare the voice input to a list of names than to translate arbitrary input into a word (which you would then have to match a regexp to "all" possible interpretations). Even safer would be inputting dial tones using "dtmf" mode.

I understand you want to allow arbitrary names because then you don't have to hard-code the names each quarter/semester (also you don't have to list the names). But in that case, you should probably use an XML structure (or database) to store the data and a web interface for updating the data (maybe even VXML, if it's updated like: "Spell the professor's name." "Ess Kay Oh Pee ..." :)

In reply to Re: How to make a form in VoiceXML (VXML) with input of the equivalent of input type="text" by kwoff
in thread How to make a form in VoiceXML (VXML) with input of the equivalent of <input type="text"> by ice6200

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-22 07:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found