以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XML在语音技术中的应用 』   (http://bbs.xml.org.cn/list.asp?boardid=47)
----  帮忙看一下voicexml错在哪里  (http://bbs.xml.org.cn/dispbbs.asp?boardid=47&rootid=&id=65481)


--  作者:ripoff
--  发布时间:8/6/2008 1:27:00 PM

--  帮忙看一下voicexml错在哪里
<?xml version="1.0" ?>
<!DOCTYPE vxml PUBLIC "-//W3C//DTD VOICEXML 2.1//EN" "http://www.w3.org/TR/voicexml21/vxml.dtd">
<vxml version="2.1" xmlns:xsi="http://www/w3/org/2001/vxml">

<form> <!-- If nothing else is specified, the first <form> that is encountered
   is used as initial dialog -->  
 <field name="ticket_num" type="digits">
  <prompt>
     Read the 12 digit number from your ticket.
  </prompt>
   <help>The 12 digit number is to the lower left.</help>
   <filled>
     <if cond="ticket_num.length != 12">
       <prompt>
          Sorry, I didn't hear exactly 12 digits.
       </prompt>
       <assign name="ticket_num" expr="undefined"/>
     <else/>
       <prompt>
          I heard <say-as interpret-as="vxml:digits">
          <value expr="ticket_num"/></say-as>
       </prompt>
     </if>
  </filled>
 </field>
 <field name="passwd" type="digits">
  <prompt>
     input the password.
  </prompt>
  <filled>
   <if cond="passwd.length != 6">
    <prompt>
     Sorry, I didn't hear exactly 6 digits.
    </prompt>
   <else/>
    <prompt>
     I heard <say-as interpret-as="vxml:digits">
     <value expr="passwd"/></say-as>
    </prompt>
   </if>
  </filled>  
 </field>
 <block>
  <prompt>
   your ticket name is <value expr="ticket_num"/> and your password is <value expr="passwd"/>.
  </prompt>
 </block>
  <subdialog  name="get_score" srcexpr="'http://172.16.3.98/get_score.asp?code='+<value expr="ticket_num"/>+'&subject='+<value expr="passwd"/>"/>
   <filled>
     <prompt>your score is<value expr="getString(get_score.subject_score)"/></prompt>
   </filled>
  </subdialog>

</form>
</vxml>


--  作者:ripoff
--  发布时间:8/6/2008 1:28:00 PM

--  
还有就是怎么在voicexml里面去访问数据库,望指点一二。
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms