tailieunhanh - Mobile Web Development phần 9

Có một vài khía cạnh quan trọng của dòng chảy này. • • • POTR sẽ quảng cáo bánh pizza trên các tờ báo, truyền hình, hoặc bất kỳ phương tiện truyền thông khác. Cùng với thông tin sản phẩm, chúng tôi cũng sẽ đưa ra một mã số. Để đặt hàng, khách hàng đã gửi một thông điệp tới một số đặc biệt (được gọi là Bộ luật ngắn) | Chapter 9 Comments in VXML are within -- and -- just as in any other XML document. Our list of application variables is defined before our main form. We want to customize the message given on different forms so we have kept the nomatch and noinput tags within the form. The filled tag has two new attributes. The namelist attribute specifies fields that should be populated to execute this filled code segment the mode defines whether all of those fields should be filled or any before the block gets executed. When we talked about the shadow variable earlier we did not mention that it s possible to populate multiple fields from the grammar file. Here s that trick. Something like this in our grammar file item something tag CDATA pizza Best Pizza size Best Size tag item And this in our VXML assign name expr pizza .interpretation. pizza assign name expr pizza .interpretation. size The pizza and interpretation variables act much like an object. pizza and size selection become properties of that object. One more trick is to evaluate expressions as needed to get their value. In our case we are evaluating the value of the pizza the user said and informing them in a prompt . We have stored the caller ID in an application variable customer. This is not really required because we can access it from the session scope later. But we are doing this to keep things consistent and also to allow us to extend the way we determine the customer later. Understanding Prophecy Error Messages If you get an MRCP error when you run your application your grammar file has a problem. Double-check and correct it. If you get an error message that says could not connect to dialog there is a problem in your VXML code including linked files. X3 Looking Under the Hood Which Words are Being Recognized In the Log Viewer create a new filter. For the filter condition select Message contains and put Partial result as value. When you apply this filter you will see the results

TỪ KHÓA LIÊN QUAN