1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813
|
.\" automatically generated by xml2rfc v2.4.6-dev on 2014-05-17T16:01:04Z
.pl 10.0i
.po 0
.ll 7.2i
.lt 7.2i
.nr LL 7.2i
.nr LT 7.2i
.hy 0
.ad l
.ds LH RFC 6787
.ds CH MRCPv2
.ds RH November 2012
.ds LF Burnett & Shanmugham
.ds CF Standards Track
.ds RF FORMFEED[Page %]
.in 0
.nf
Internet Engineering Task Force (IETF) D. Burnett
Request for Comments: 6787 Voxeo
Category: Standards Track S. Shanmugham
ISSN: 2070-1721 Cisco Systems, Inc.
November 2012
.fi
.ce 1
Media Resource Control Protocol Version 2 (MRCPv2)
Abstract
.in 3
The Media Resource Control Protocol Version 2 (MRCPv2) allows client
hosts to control media service resources such as speech synthesizers,
recognizers, verifiers, and identifiers residing in servers on the
network. MRCPv2 is not a \%"stand-alone" protocol \%-- it relies on
other protocols, such as the Session Initiation Protocol (SIP), to
coordinate MRCPv2 clients and servers and manage sessions between
them, and the Session Description Protocol (SDP) to describe,
discover, and exchange capabilities. It also depends on SIP and SDP
to establish the media sessions and associated parameters between the
media source or sink and the media server. Once this is done, the
MRCPv2 exchange operates over the control session established above,
allowing the client to control the media processing resources on the
speech resource server.
.in 0
Status of This Memo
.in 3
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in Section\02 of RFC 5741.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
\%http://www.rfc-editor.org/info/rfc6787.
.in 0
Copyright Notice
.in 3
Copyright (c) 2012 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
\%(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
.bp
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section\04.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
This document may contain material from IETF Documents or IETF
Contributions published or made publicly available before November
10, 2008. The person(s) controlling the copyright in some of this
material may not have granted the IETF Trust the right to allow
modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other
than English.
.ti 0
Table of Contents
.in 0
.nf
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 8
2. Document Conventions . . . . . . . . . . . . . . . . . . . . 9
2.1. Definitions . . . . . . . . . . . . . . . . . . . . . . . 10
2.2. State-Machine Diagrams . . . . . . . . . . . . . . . . . 10
2.3. URI Schemes . . . . . . . . . . . . . . . . . . . . . . . 11
3. Architecture . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1. MRCPv2 Media Resource Types . . . . . . . . . . . . . . . 12
3.2. Server and Resource Addressing . . . . . . . . . . . . . 13
4. MRCPv2 Basics . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1. Connecting to the Server . . . . . . . . . . . . . . . . 14
4.2. Managing Resource Control Channels . . . . . . . . . . . 14
4.3. SIP Session Example . . . . . . . . . . . . . . . . . . . 17
4.4. Media Streams and RTP Ports . . . . . . . . . . . . . . . 22
4.5. MRCPv2 Message Transport . . . . . . . . . . . . . . . . 23
4.6. MRCPv2 Session Termination . . . . . . . . . . . . . . . 24
5. MRCPv2 Specification . . . . . . . . . . . . . . . . . . . . 24
5.1. Common Protocol Elements . . . . . . . . . . . . . . . . 25
5.2. Request . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.3. Response . . . . . . . . . . . . . . . . . . . . . . . . 28
5.4. Status Codes . . . . . . . . . . . . . . . . . . . . . . 29
5.5. Events . . . . . . . . . . . . . . . . . . . . . . . . . 31
6. MRCPv2 Generic Methods, Headers, and Result Structure . . . . 32
6.1. Generic Methods . . . . . . . . . . . . . . . . . . . . . 32
6.1.1. SET-PARAMS . . . . . . . . . . . . . . . . . . . . . 32
6.1.2. GET-PARAMS . . . . . . . . . . . . . . . . . . . . . 33
6.2. Generic Message Headers . . . . . . . . . . . . . . . . . 34
6.2.1. Channel-Identifier . . . . . . . . . . . . . . . . . 35
6.2.2. Accept . . . . . . . . . . . . . . . . . . . . . . . 36
.bp
6.2.3. Active-Request-Id-List . . . . . . . . . . . . . . . 36
6.2.4. Proxy-Sync-Id . . . . . . . . . . . . . . . . . . . . 37
6.2.5. Accept-Charset . . . . . . . . . . . . . . . . . . . 37
6.2.6. Content-Type . . . . . . . . . . . . . . . . . . . . 37
6.2.7. Content-ID . . . . . . . . . . . . . . . . . . . . . 38
6.2.8. Content-Base . . . . . . . . . . . . . . . . . . . . 38
6.2.9. Content-Encoding . . . . . . . . . . . . . . . . . . 38
6.2.10. Content-Location . . . . . . . . . . . . . . . . . . 39
6.2.11. Content-Length . . . . . . . . . . . . . . . . . . . 40
6.2.12. Fetch Timeout . . . . . . . . . . . . . . . . . . . . 40
6.2.13. Cache-Control . . . . . . . . . . . . . . . . . . . . 40
6.2.14. Logging-Tag . . . . . . . . . . . . . . . . . . . . . 42
6.2.15. Set-Cookie . . . . . . . . . . . . . . . . . . . . . 42
6.2.16. Vendor-Specific Parameters . . . . . . . . . . . . . 44
6.3. Generic Result Structure . . . . . . . . . . . . . . . . 45
6.3.1. Natural Language Semantics Markup Language . . . . . 46
7. Resource Discovery . . . . . . . . . . . . . . . . . . . . . 46
8. Speech Synthesizer Resource . . . . . . . . . . . . . . . . . 48
8.1. Synthesizer State Machine . . . . . . . . . . . . . . . . 48
8.2. Synthesizer Methods . . . . . . . . . . . . . . . . . . . 49
8.3. Synthesizer Events . . . . . . . . . . . . . . . . . . . 49
8.4. Synthesizer Header Fields . . . . . . . . . . . . . . . . 50
8.4.1. Jump-Size . . . . . . . . . . . . . . . . . . . . . . 50
8.4.2. Kill-On-Barge-In . . . . . . . . . . . . . . . . . . 51
8.4.3. Speaker-Profile . . . . . . . . . . . . . . . . . . . 52
8.4.4. Completion-Cause . . . . . . . . . . . . . . . . . . 52
8.4.5. Completion-Reason . . . . . . . . . . . . . . . . . . 53
8.4.6. Voice-Parameter . . . . . . . . . . . . . . . . . . . 53
8.4.7. Prosody-Parameters . . . . . . . . . . . . . . . . . 54
8.4.8. Speech-Marker . . . . . . . . . . . . . . . . . . . . 54
8.4.9. Speech-Language . . . . . . . . . . . . . . . . . . . 55
8.4.10. Fetch-Hint . . . . . . . . . . . . . . . . . . . . . 55
8.4.11. Audio-Fetch-Hint . . . . . . . . . . . . . . . . . . 56
8.4.12. Failed-URI . . . . . . . . . . . . . . . . . . . . . 56
8.4.13. Failed-URI-Cause . . . . . . . . . . . . . . . . . . 56
8.4.14. Speak-Restart . . . . . . . . . . . . . . . . . . . . 56
8.4.15. Speak-Length . . . . . . . . . . . . . . . . . . . . 57
8.4.16. Load-Lexicon . . . . . . . . . . . . . . . . . . . . 57
8.4.17. Lexicon-Search-Order . . . . . . . . . . . . . . . . 58
8.5. Synthesizer Message Body . . . . . . . . . . . . . . . . 58
8.5.1. Synthesizer Speech Data . . . . . . . . . . . . . . . 58
8.5.2. Lexicon Data . . . . . . . . . . . . . . . . . . . . 60
8.6. SPEAK Method . . . . . . . . . . . . . . . . . . . . . . 61
8.7. STOP . . . . . . . . . . . . . . . . . . . . . . . . . . 63
8.8. BARGE-IN-OCCURRED . . . . . . . . . . . . . . . . . . . . 65
8.9. PAUSE . . . . . . . . . . . . . . . . . . . . . . . . . . 67
8.10. RESUME . . . . . . . . . . . . . . . . . . . . . . . . . 68
8.11. CONTROL . . . . . . . . . . . . . . . . . . . . . . . . . 71
.bp
8.12. SPEAK-COMPLETE . . . . . . . . . . . . . . . . . . . . . 72
8.13. SPEECH-MARKER . . . . . . . . . . . . . . . . . . . . . . 73
8.14. DEFINE-LEXICON . . . . . . . . . . . . . . . . . . . . . 76
9. Speech Recognizer Resource . . . . . . . . . . . . . . . . . 76
9.1. Recognizer State Machine . . . . . . . . . . . . . . . . 78
9.2. Recognizer Methods . . . . . . . . . . . . . . . . . . . 79
9.3. Recognizer Events . . . . . . . . . . . . . . . . . . . . 79
9.4. Recognizer Header Fields . . . . . . . . . . . . . . . . 79
9.4.1. Confidence-Threshold . . . . . . . . . . . . . . . . 81
9.4.2. Sensitivity-Level . . . . . . . . . . . . . . . . . . 81
9.4.3. Speed-Vs-Accuracy . . . . . . . . . . . . . . . . . . 82
9.4.4. N-Best-List-Length . . . . . . . . . . . . . . . . . 82
9.4.5. Input-Type . . . . . . . . . . . . . . . . . . . . . 82
9.4.6. No-Input-Timeout . . . . . . . . . . . . . . . . . . 83
9.4.7. Recognition-Timeout . . . . . . . . . . . . . . . . . 83
9.4.8. Waveform-URI . . . . . . . . . . . . . . . . . . . . 83
9.4.9. Media-Type . . . . . . . . . . . . . . . . . . . . . 84
9.4.10. Input-Waveform-URI . . . . . . . . . . . . . . . . . 84
9.4.11. Completion-Cause . . . . . . . . . . . . . . . . . . 84
9.4.12. Completion-Reason . . . . . . . . . . . . . . . . . . 86
9.4.13. Recognizer-Context-Block . . . . . . . . . . . . . . 87
9.4.14. Start-Input-Timers . . . . . . . . . . . . . . . . . 87
9.4.15. Speech-Complete-Timeout . . . . . . . . . . . . . . . 88
9.4.16. Speech-Incomplete-Timeout . . . . . . . . . . . . . . 88
9.4.17. DTMF-Interdigit-Timeout . . . . . . . . . . . . . . . 89
9.4.18. DTMF-Term-Timeout . . . . . . . . . . . . . . . . . . 89
9.4.19. DTMF-Term-Char . . . . . . . . . . . . . . . . . . . 89
9.4.20. Failed-URI . . . . . . . . . . . . . . . . . . . . . 89
9.4.21. Failed-URI-Cause . . . . . . . . . . . . . . . . . . 90
9.4.22. Save-Waveform . . . . . . . . . . . . . . . . . . . . 90
9.4.23. New-Audio-Channel . . . . . . . . . . . . . . . . . . 90
9.4.24. Speech-Language . . . . . . . . . . . . . . . . . . . 91
9.4.25. Ver-Buffer-Utterance . . . . . . . . . . . . . . . . 91
9.4.26. Recognition-Mode . . . . . . . . . . . . . . . . . . 91
9.4.27. Cancel-If-Queue . . . . . . . . . . . . . . . . . . . 92
9.4.28. Hotword-Max-Duration . . . . . . . . . . . . . . . . 92
9.4.29. Hotword-Min-Duration . . . . . . . . . . . . . . . . 92
9.4.30. Interpret-Text . . . . . . . . . . . . . . . . . . . 93
9.4.31. DTMF-Buffer-Time . . . . . . . . . . . . . . . . . . 93
9.4.32. Clear-DTMF-Buffer . . . . . . . . . . . . . . . . . . 93
9.4.33. Early-No-Match . . . . . . . . . . . . . . . . . . . 93
9.4.34. Num-Min-Consistent-Pronunciations . . . . . . . . . . 94
9.4.35. Consistency-Threshold . . . . . . . . . . . . . . . . 94
9.4.36. Clash-Threshold . . . . . . . . . . . . . . . . . . . 94
9.4.37. Personal-Grammar-URI . . . . . . . . . . . . . . . . 95
9.4.38. Enroll-Utterance . . . . . . . . . . . . . . . . . . 95
9.4.39. Phrase-Id . . . . . . . . . . . . . . . . . . . . . . 95
9.4.40. Phrase-NL . . . . . . . . . . . . . . . . . . . . . . 95
.bp
9.4.41. Weight . . . . . . . . . . . . . . . . . . . . . . . 96
9.4.42. Save-Best-Waveform . . . . . . . . . . . . . . . . . 96
9.4.43. New-Phrase-Id . . . . . . . . . . . . . . . . . . . . 96
9.4.44. Confusable-Phrases-URI . . . . . . . . . . . . . . . 97
9.4.45. Abort-Phrase-Enrollment . . . . . . . . . . . . . . . 97
9.5. Recognizer Message Body . . . . . . . . . . . . . . . . . 97
9.5.1. Recognizer Grammar Data . . . . . . . . . . . . . . . 97
9.5.2. Recognizer Result Data . . . . . . . . . . . . . . . 101
9.5.3. Enrollment Result Data . . . . . . . . . . . . . . . 101
9.5.4. Recognizer Context Block . . . . . . . . . . . . . . 102
9.6. Recognizer Results . . . . . . . . . . . . . . . . . . . 102
9.6.1. Markup Functions . . . . . . . . . . . . . . . . . . 103
9.6.2. Overview of Recognizer Result Elements and Their
Relationships . . . . . . . . . . . . . . . . . . . . 104
9.6.3. Elements and Attributes . . . . . . . . . . . . . . . 105
9.7. Enrollment Results . . . . . . . . . . . . . . . . . . . 109
9.7.1. <num-clashes> Element . . . . . . . . . . . . . . . . 110
9.7.2. <num-good-repetitions> Element . . . . . . . . . . . 110
9.7.3. <num-repetitions-still-needed> Element . . . . . . . 110
9.7.4. <consistency-status> Element . . . . . . . . . . . . 110
9.7.5. <clash-phrase-ids> Element . . . . . . . . . . . . . 111
9.7.6. <transcriptions> Element . . . . . . . . . . . . . . 111
9.7.7. <confusable-phrases> Element . . . . . . . . . . . . 111
9.8. DEFINE-GRAMMAR . . . . . . . . . . . . . . . . . . . . . 111
9.9. RECOGNIZE . . . . . . . . . . . . . . . . . . . . . . . . 115
9.10. STOP . . . . . . . . . . . . . . . . . . . . . . . . . . 121
9.11. GET-RESULT . . . . . . . . . . . . . . . . . . . . . . . 122
9.12. START-OF-INPUT . . . . . . . . . . . . . . . . . . . . . 123
9.13. START-INPUT-TIMERS . . . . . . . . . . . . . . . . . . . 124
9.14. RECOGNITION-COMPLETE . . . . . . . . . . . . . . . . . . 124
9.15. START-PHRASE-ENROLLMENT . . . . . . . . . . . . . . . . . 126
9.16. ENROLLMENT-ROLLBACK . . . . . . . . . . . . . . . . . . . 127
9.17. END-PHRASE-ENROLLMENT . . . . . . . . . . . . . . . . . . 128
9.18. MODIFY-PHRASE . . . . . . . . . . . . . . . . . . . . . . 128
9.19. DELETE-PHRASE . . . . . . . . . . . . . . . . . . . . . . 129
9.20. INTERPRET . . . . . . . . . . . . . . . . . . . . . . . . 129
9.21. INTERPRETATION-COMPLETE . . . . . . . . . . . . . . . . . 131
9.22. DTMF Detection . . . . . . . . . . . . . . . . . . . . . 132
10. Recorder Resource . . . . . . . . . . . . . . . . . . . . . . 132
10.1. Recorder State Machine . . . . . . . . . . . . . . . . . 133
10.2. Recorder Methods . . . . . . . . . . . . . . . . . . . . 133
10.3. Recorder Events . . . . . . . . . . . . . . . . . . . . 133
10.4. Recorder Header Fields . . . . . . . . . . . . . . . . . 133
10.4.1. Sensitivity-Level . . . . . . . . . . . . . . . . . 134
10.4.2. No-Input-Timeout . . . . . . . . . . . . . . . . . . 134
10.4.3. Completion-Cause . . . . . . . . . . . . . . . . . . 134
10.4.4. Completion-Reason . . . . . . . . . . . . . . . . . 135
10.4.5. Failed-URI . . . . . . . . . . . . . . . . . . . . . 135
.bp
10.4.6. Failed-URI-Cause . . . . . . . . . . . . . . . . . . 136
10.4.7. Record-URI . . . . . . . . . . . . . . . . . . . . . 136
10.4.8. Media-Type . . . . . . . . . . . . . . . . . . . . . 136
10.4.9. Max-Time . . . . . . . . . . . . . . . . . . . . . . 137
10.4.10. Trim-Length . . . . . . . . . . . . . . . . . . . . 137
10.4.11. Final-Silence . . . . . . . . . . . . . . . . . . . 137
10.4.12. Capture-On-Speech . . . . . . . . . . . . . . . . . 137
10.4.13. Ver-Buffer-Utterance . . . . . . . . . . . . . . . . 138
10.4.14. Start-Input-Timers . . . . . . . . . . . . . . . . . 138
10.4.15. New-Audio-Channel . . . . . . . . . . . . . . . . . 138
10.5. Recorder Message Body . . . . . . . . . . . . . . . . . 138
10.6. RECORD . . . . . . . . . . . . . . . . . . . . . . . . . 139
10.7. STOP . . . . . . . . . . . . . . . . . . . . . . . . . . 140
10.8. RECORD-COMPLETE . . . . . . . . . . . . . . . . . . . . 141
10.9. START-INPUT-TIMERS . . . . . . . . . . . . . . . . . . . 142
10.10. START-OF-INPUT . . . . . . . . . . . . . . . . . . . . . 142
11. Speaker Verification and Identification . . . . . . . . . . . 143
11.1. Speaker Verification State Machine . . . . . . . . . . . 144
11.2. Speaker Verification Methods . . . . . . . . . . . . . . 146
11.3. Verification Events . . . . . . . . . . . . . . . . . . 147
11.4. Verification Header Fields . . . . . . . . . . . . . . . 148
11.4.1. Repository-URI . . . . . . . . . . . . . . . . . . . 148
11.4.2. Voiceprint-Identifier . . . . . . . . . . . . . . . 148
11.4.3. Verification-Mode . . . . . . . . . . . . . . . . . 149
11.4.4. Adapt-Model . . . . . . . . . . . . . . . . . . . . 150
11.4.5. Abort-Model . . . . . . . . . . . . . . . . . . . . 150
11.4.6. Min-Verification-Score . . . . . . . . . . . . . . . 150
11.4.7. Num-Min-Verification-Phrases . . . . . . . . . . . . 151
11.4.8. Num-Max-Verification-Phrases . . . . . . . . . . . . 151
11.4.9. No-Input-Timeout . . . . . . . . . . . . . . . . . . 151
11.4.10. Save-Waveform . . . . . . . . . . . . . . . . . . . 151
11.4.11. Media-Type . . . . . . . . . . . . . . . . . . . . . 152
11.4.12. Waveform-URI . . . . . . . . . . . . . . . . . . . . 152
11.4.13. Voiceprint-Exists . . . . . . . . . . . . . . . . . 153
11.4.14. Ver-Buffer-Utterance . . . . . . . . . . . . . . . . 153
11.4.15. Input-Waveform-URI . . . . . . . . . . . . . . . . . 153
11.4.16. Completion-Cause . . . . . . . . . . . . . . . . . . 153
11.4.17. Completion-Reason . . . . . . . . . . . . . . . . . 156
11.4.18. Speech-Complete-Timeout . . . . . . . . . . . . . . 156
11.4.19. New-Audio-Channel . . . . . . . . . . . . . . . . . 156
11.4.20. Abort-Verification . . . . . . . . . . . . . . . . . 156
11.4.21. Start-Input-Timers . . . . . . . . . . . . . . . . . 156
11.5. Verification Message Body . . . . . . . . . . . . . . . 157
11.5.1. Verification Result Data . . . . . . . . . . . . . . 157
11.5.2. Verification Result Elements . . . . . . . . . . . . 157
11.6. START-SESSION . . . . . . . . . . . . . . . . . . . . . 161
11.7. END-SESSION . . . . . . . . . . . . . . . . . . . . . . 162
11.8. QUERY-VOICEPRINT . . . . . . . . . . . . . . . . . . . . 163
.bp
11.9. DELETE-VOICEPRINT . . . . . . . . . . . . . . . . . . . 164
11.10. VERIFY . . . . . . . . . . . . . . . . . . . . . . . . . 165
11.11. VERIFY-FROM-BUFFER . . . . . . . . . . . . . . . . . . . 165
11.12. VERIFY-ROLLBACK . . . . . . . . . . . . . . . . . . . . 168
11.13. STOP . . . . . . . . . . . . . . . . . . . . . . . . . . 169
11.14. START-INPUT-TIMERS . . . . . . . . . . . . . . . . . . . 170
11.15. VERIFICATION-COMPLETE . . . . . . . . . . . . . . . . . 170
11.16. START-OF-INPUT . . . . . . . . . . . . . . . . . . . . . 171
11.17. CLEAR-BUFFER . . . . . . . . . . . . . . . . . . . . . . 171
11.18. GET-INTERMEDIATE-RESULT . . . . . . . . . . . . . . . . 171
12. Security Considerations . . . . . . . . . . . . . . . . . . . 172
12.1. Rendezvous and Session Establishment . . . . . . . . . . 173
12.2. Control Channel Protection . . . . . . . . . . . . . . . 173
12.3. Media Session Protection . . . . . . . . . . . . . . . . 173
12.4. Indirect Content Access . . . . . . . . . . . . . . . . 174
12.5. Protection of Stored Media . . . . . . . . . . . . . . . 175
12.6. DTMF and Recognition Buffers . . . . . . . . . . . . . . 175
12.7. Client-Set Server Parameters . . . . . . . . . . . . . . 175
12.8. DELETE-VOICEPRINT and Authorization . . . . . . . . . . 175
13. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 176
13.1. New Registries . . . . . . . . . . . . . . . . . . . . . 176
13.1.1. MRCPv2 Resource Types . . . . . . . . . . . . . . . 176
13.1.2. MRCPv2 Methods and Events . . . . . . . . . . . . . 176
13.1.3. MRCPv2 Header Fields . . . . . . . . . . . . . . . . 178
13.1.4. MRCPv2 Status Codes . . . . . . . . . . . . . . . . 180
13.1.5. Grammar Reference List Parameters . . . . . . . . . 180
13.1.6. MRCPv2 Vendor-Specific Parameters . . . . . . . . . 181
13.2. NLSML-Related Registrations . . . . . . . . . . . . . . 181
13.2.1. 'application/nlsml+xml' Media Type Registration . . 181
13.3. NLSML XML Schema Registration . . . . . . . . . . . . . 182
13.4. MRCPv2 XML Namespace Registration . . . . . . . . . . . 183
13.5. Text Media Type Registrations . . . . . . . . . . . . . 183
13.5.1. text/grammar-ref-list . . . . . . . . . . . . . . . 183
13.6. 'session' URI Scheme Registration . . . . . . . . . . . 184
13.7. SDP Parameter Registrations . . . . . . . . . . . . . . 185
13.7.1. Sub-Registry "proto" . . . . . . . . . . . . . . . . 186
13.7.2. Sub-Registry "att-field (media-level)" . . . . . . . 186
14. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 188
14.1. Message Flow . . . . . . . . . . . . . . . . . . . . . . 188
14.2. Recognition Result Examples . . . . . . . . . . . . . . 197
14.2.1. Simple ASR Ambiguity . . . . . . . . . . . . . . . . 197
14.2.2. Mixed Initiative . . . . . . . . . . . . . . . . . . 198
14.2.3. DTMF Input . . . . . . . . . . . . . . . . . . . . . 199
14.2.4. Interpreting Meta-Dialog and Meta-Task Utterances . 199
14.2.5. Anaphora and Deixis . . . . . . . . . . . . . . . . 200
14.2.6. Distinguishing Individual Items from Sets with One
Member . . . . . . . . . . . . . . . . . . . . . . . 201
14.2.7. Extensibility . . . . . . . . . . . . . . . . . . . 202
.bp
15. ABNF Normative Definition . . . . . . . . . . . . . . . . . . 202
16. XML Schemas . . . . . . . . . . . . . . . . . . . . . . . . . 217
16.1. NLSML Schema Definition . . . . . . . . . . . . . . . . 217
16.2. Enrollment Results Schema Definition . . . . . . . . . . 218
16.3. Verification Results Schema Definition . . . . . . . . . 220
17. References . . . . . . . . . . . . . . . . . . . . . . . . . 223
17.1. Normative References . . . . . . . . . . . . . . . . . . 223
17.2. Informative References . . . . . . . . . . . . . . . . . 226
Appendix A. Contributors . . . . . . . . . . . . . . . . . . . . 228
Appendix B. Acknowledgements . . . . . . . . . . . . . . . . . . 228
.fi
.in 3
.in 4
.ti 0
1. Introduction
.in 3
MRCPv2 is designed to allow a client device to control media
processing resources on the network. Some of these media processing
resources include speech recognition engines, speech synthesis
engines, speaker verification, and speaker identification engines.
MRCPv2 enables the implementation of distributed Interactive Voice
Response platforms using VoiceXML \%[W3C.REC-voicexml20-20040316]
browsers or other client applications while maintaining separate
\%back-end speech processing capabilities on specialized speech
processing servers. MRCPv2 is based on the earlier Media Resource
Control Protocol (MRCP) [RFC4463] developed jointly by Cisco Systems,
Inc., Nuance Communications, and Speechworks, Inc. Although some of
the method names are similar, the way in which these methods are
communicated is different. There are also more resources and more
methods for each resource. The first version of MRCP was essentially
taken only as input to the development of this protocol. There is no
expectation that an MRCPv2 client will work with an MRCPv1 server or
vice versa. There is no migration plan or gateway definition between
the two protocols.
The protocol requirements of Speech Services Control (SPEECHSC)
[RFC4313] include that the solution be capable of reaching a media
processing server, setting up communication channels to the media
resources, and sending and receiving control messages and media
streams to/from the server. The Session Initiation Protocol (SIP)
[RFC3261] meets these requirements.
The proprietary version of MRCP ran over the Real Time Streaming
Protocol (RTSP) [RFC2326]. At the time work on MRCPv2 was begun, the
consensus was that this use of RTSP would break the RTSP protocol or
cause \%backward-compatibility problems, something forbidden by
Section\03.2 of [RFC4313]. This is the reason why MRCPv2 does not run
over RTSP.
MRCPv2 leverages these capabilities by building upon SIP and the
Session Description Protocol (SDP) [RFC4566]. MRCPv2 uses SIP to set
.bp
up and tear down media and control sessions with the server. In
addition, the client can use a SIP \%re-INVITE method (an INVITE dialog
sent within an existing SIP session) to change the characteristics of
these media and control session while maintaining the SIP dialog
between the client and server. SDP is used to describe the
parameters of the media sessions associated with that dialog. It is
mandatory to support SIP as the session establishment protocol to
ensure interoperability. Other protocols can be used for session
establishment by prior agreement. This document only describes the
use of SIP and SDP.
MRCPv2 uses SIP and SDP to create the speech client/server dialog and
set up the media channels to the server. It also uses SIP and SDP to
establish MRCPv2 control sessions between the client and the server
for each media processing resource required for that dialog. The
MRCPv2 protocol exchange between the client and the media resource is
carried on that control session. MRCPv2 exchanges do not change the
state of the SIP dialog, the media sessions, or other parameters of
the dialog initiated via SIP. It controls and affects the state of
the media processing resource associated with the MRCPv2 session(s).
MRCPv2 defines the messages to control the different media processing
resources and the state machines required to guide their operation.
It also describes how these messages are carried over a \%transport-
layer protocol such as the Transmission Control Protocol (TCP)
[RFC0793] or the Transport Layer Security (TLS) Protocol [RFC5246].
(Note: the Stream Control Transmission Protocol (SCTP) [RFC4960] is a
viable transport for MRCPv2 as well, but the mapping onto SCTP is not
described in this specification.)
.in 4
.ti 0
2. Document Conventions
.in 3
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in RFC 2119 [RFC2119].
Since many of the definitions and syntax are identical to those for
the Hypertext Transfer Protocol \%-- HTTP/1.1 [RFC2616], this
specification refers to the section where they are defined rather
than copying it. For brevity, [HX.Y] is to be taken to refer to
Section\0X.Y of RFC 2616.
All the mechanisms specified in this document are described in both
prose and an augmented \%Backus-Naur form (ABNF [RFC5234]).
The complete message format in ABNF form is provided in Section\015
and is the normative format definition. Note that productions may be
duplicated within the main body of the document for reading
.bp
convenience. If a production in the body of the text conflicts with
one in the normative definition, the latter rules.
.in 6
.ti 0
2.1. Definitions
.in 18
.ti 3
Media Resource
.sp 0
An entity on the speech processing server that can be
controlled through MRCPv2.
.ti 3
MRCP Server
.sp 0
Aggregate of one or more "Media Resource" entities on
a server, exposed through MRCPv2. Often, 'server' in
this document refers to an MRCP server.
.ti 3
MRCP Client
.sp 0
An entity controlling one or more Media Resources
through MRCPv2 ("Client" for short).
.ti 3
DTMF
.sp 0
\%Dual-Tone \%Multi-Frequency; a method of transmitting
key presses \%in-band, either as actual tones (Q.23
[Q.23]) or as named tone events (RFC 4733 [RFC4733]).
.ti 3
Endpointing
.sp 0
The process of automatically detecting the beginning
and end of speech in an audio stream. This is
critical both for speech recognition and for automated
recording as one would find in voice mail systems.
.ti 3
Hotword Mode
.sp 0
A mode of speech recognition where a stream of
utterances is evaluated for match against a small set
of command words. This is generally employed either
to trigger some action or to control the subsequent
grammar to be used for further recognition.
.in 6
.ti 0
2.2. \%State-Machine Diagrams
.in 3
The \%state-machine diagrams in this document do not show every
possible method call. Rather, they reflect the state of the resource
based on the methods that have moved to \%IN-PROGRESS or COMPLETE
states (see Section\05.3). Note that since PENDING requests
essentially have not affected the resource yet and are in the queue
to be processed, they are not reflected in the \%state-machine
diagrams.
.bp
.in 6
.ti 0
2.3. URI Schemes
.in 3
This document defines many protocol headers that contain URIs
(Uniform Resource Identifiers [RFC3986]) or lists of URIs for
referencing media. The entire document, including the Security
Considerations section (Section\012), assumes that HTTP or HTTP over
TLS (HTTPS) [RFC2818] will be used as the URI addressing scheme
unless otherwise stated. However, implementations MAY support other
schemes (such as 'file'), provided they have addressed any security
considerations described in this document and any others particular
to the specific scheme. For example, implementations where the
client and server both reside on the same physical hardware and the
file system is secured by traditional \%user-level file access controls
could be reasonable candidates for supporting the 'file' scheme.
.in 4
.ti 0
3. Architecture
.in 3
A system using MRCPv2 consists of a client that requires the
generation and/or consumption of media streams and a media resource
server that has the resources or "engines" to process these streams
as input or generate these streams as output. The client uses SIP
and SDP to establish an MRCPv2 control channel with the server to use
its media processing resources. MRCPv2 servers are addressed using
SIP URIs.
SIP uses SDP with the offer/answer model described in RFC 3264
[RFC3264] to set up the MRCPv2 control channels and describe their
characteristics. A separate MRCPv2 session is needed to control each
of the media processing resources associated with the SIP dialog
between the client and server. Within a SIP dialog, the individual
resource control channels for the different resources are added or
removed through SDP offer/answer carried in a SIP \%re-INVITE
transaction.
The server, through the SDP exchange, provides the client with a
\%difficult-to-guess, unambiguous channel identifier and a TCP port
number (see Section\04.2). The client MAY then open a new TCP
connection with the server on this port number. Multiple MRCPv2
channels can share a TCP connection between the client and the
server. All MRCPv2 messages exchanged between the client and the
server carry the specified channel identifier that the server MUST
ensure is unambiguous among all MRCPv2 control channels that are
active on that server. The client uses this channel identifier to
indicate the media processing resource associated with that channel.
For information on message framing, see Section\05.
SIP also establishes the media sessions between the client (or other
source/sink of media) and the MRCPv2 server using SDP "m=" lines.
.bp
One or more media processing resources may share a media session
under a SIP session, or each media processing resource may have its
own media session.
The following diagram shows the general architecture of a system that
uses MRCPv2. To simplify the diagram, only a few resources are
shown.
.in 0
.nf
MRCPv2 client MRCPv2 Media Resource Server
|--------------------| |------------------------------------|
||------------------|| ||----------------------------------||
|| Application Layer|| ||Synthesis|Recognition|Verification||
||------------------|| || Engine | Engine | Engine ||
||Media Resource API|| || || | || | || ||
||------------------|| ||Synthesis|Recognizer | Verifier ||
|| SIP | MRCPv2 || ||Resource | Resource | Resource ||
||Stack | || || Media Resource Management ||
|| | || ||----------------------------------||
||------------------|| || SIP | MRCPv2 ||
|| TCP/IP Stack ||--MRCPv2-|| Stack | ||
|| || ||----------------------------------||
||------------------||---SIP---|| TCP/IP Stack ||
|--------------------| || ||
| ||----------------------------------||
SIP |------------------------------------|
| /
|-------------------| RTP
| | /
| Media Source/Sink |---------/
| |
|-------------------|
.fi
.in 3
.ce 1
Figure\01: Architectural Diagram
.in 6
.ti 0
3.1. MRCPv2 Media Resource Types
.in 3
An MRCPv2 server may offer one or more of the following media
processing resources to its clients.
.in 18
.ti 3
Basic Synthesizer
.sp 0
A speech synthesizer resource that has very limited
capabilities and can generate its media stream
exclusively from concatenated audio clips. The speech
data is described using a limited subset of the Speech
Synthesis Markup Language (SSML)
\%[W3C.REC-speech-synthesis-20040907] elements. A basic
synthesizer MUST support the SSML tags <speak>,
<audio>, \%<say-as>, and <mark>.
.bp
.ti 3
Speech Synthesizer
.sp 0
A \%full-capability speech synthesis resource that can
render speech from text. Such a synthesizer MUST have
full SSML \%[W3C.REC-speech-synthesis-20040907] support.
.ti 3
Recorder
.sp 0
A resource capable of recording audio and providing a
URI pointer to the recording. A recorder MUST provide
endpointing capabilities for suppressing silence at
the beginning and end of a recording, and MAY also
suppress silence in the middle of a recording. If
such suppression is done, the recorder MUST maintain
timing metadata to indicate the actual timestamps of
the recorded media.
.ti 3
DTMF Recognizer
.sp 0
A recognizer resource capable of extracting and
interpreting \%Dual-Tone \%Multi-Frequency (DTMF) [Q.23]
digits in a media stream and matching them against a
supplied digit grammar. It could also do a semantic
interpretation based on semantic tags in the grammar.
.ti 3
Speech Recognizer
.sp 0
A full speech recognition resource that is capable of
receiving a media stream containing audio and
interpreting it to recognition results. It also has a
natural language semantic interpreter to \%post-process
the recognized data according to the semantic data in
the grammar and provide semantic results along with
the recognized input. The recognizer MAY also support
enrolled grammars, where the client can enroll and
create new personal grammars for use in future
recognition operations.
.ti 3
Speaker Verifier
.sp 0
A resource capable of verifying the authenticity of a
claimed identity by matching a media stream containing
spoken input to a \%pre-existing voiceprint. This may
also involve matching the caller's voice against more
than one voiceprint, also called \%multi-verification or
speaker identification.
.in 6
.ti 0
3.2. Server and Resource Addressing
.in 3
The MRCPv2 server is a generic SIP server, and is thus addressed by a
SIP URI (RFC 3261 [RFC3261]).
.bp
For example:
.in 0
.nf
sip:mrcpv2@example.net or
sips:mrcpv2@example.net
.fi
.in 3
.in 4
.ti 0
4. MRCPv2 Basics
.in 3
MRCPv2 requires a \%connection-oriented \%transport-layer protocol such
as TCP to guarantee reliable sequencing and delivery of MRCPv2
control messages between the client and the server. In order to meet
the requirements for security enumerated in SPEECHSC requirements
[RFC4313], clients and servers MUST implement TLS as well. One or
more connections between the client and the server can be shared
among different MRCPv2 channels to the server. The individual
messages carry the channel identifier to differentiate messages on
different channels. MRCPv2 encoding is text based with mechanisms to
carry embedded binary data. This allows arbitrary data like
recognition grammars, recognition results, synthesizer speech markup,
etc., to be carried in MRCPv2 messages. For information on message
framing, see Section\05.
.in 6
.ti 0
4.1. Connecting to the Server
.in 3
MRCPv2 employs SIP, in conjunction with SDP, as the session
establishment and management protocol. The client reaches an MRCPv2
server using conventional INVITE and other SIP requests for
establishing, maintaining, and terminating SIP dialogs. The SDP
offer/answer exchange model over SIP is used to establish a resource
control channel for each resource. The SDP offer/answer exchange is
also used to establish media sessions between the server and the
source or sink of audio.
.in 6
.ti 0
4.2. Managing Resource Control Channels
.in 3
The client needs a separate MRCPv2 resource control channel to
control each media processing resource under the SIP dialog. A
unique channel identifier string identifies these resource control
channels. The channel identifier is a \%difficult-to-guess,
unambiguous string followed by an "@", then by a string token
specifying the type of resource. The server generates the channel
identifier and MUST make sure it does not clash with the identifier
of any other MRCP channel currently allocated by that server. MRCPv2
defines the following \%IANA-registered types of media processing
resources. Additional resource types and their associated methods/
events and state machines may be added as described below in
Section\013.
.bp
.in 0
.nf
+---------------+----------------------+--------------+
| Resource Type | Resource Description | Described in |
+---------------+----------------------+--------------+
| speechrecog | Speech Recognizer | Section\09 |
| dtmfrecog | DTMF Recognizer | Section\09 |
| speechsynth | Speech Synthesizer | Section\08 |
| basicsynth | Basic Synthesizer | Section\08 |
| speakverify | Speaker Verification | Section\011 |
| recorder | Speech Recorder | Section\010 |
+---------------+----------------------+--------------+
.fi
.in 3
.ce 1
Table\01: Resource Types
The SIP INVITE or \%re-INVITE transaction and the SDP offer/answer
exchange it carries contain "m=" lines describing the resource
control channel to be allocated. There MUST be one SDP "m=" line for
each MRCPv2 resource to be used in the session. This "m=" line MUST
have a media type field of "application" and a transport type field
of either "TCP/MRCPv2" or "TCP/TLS/MRCPv2". The port number field of
the "m=" line MUST contain the "discard" port of the transport
protocol (port 9 for TCP) in the SDP offer from the client and MUST
contain the TCP listen port on the server in the SDP answer. The
client may then either set up a TCP or TLS connection to that server
port or share an already established connection to that port. Since
MRCPv2 allows multiple sessions to share the same TCP connection,
multiple "m=" lines in a single SDP document MAY share the same port
field value; MRCPv2 servers MUST NOT assume any relationship between
resources using the same port other than the sharing of the
communication channel.
MRCPv2 resources do not use the port or format field of the "m=" line
to distinguish themselves from other resources using the same
channel. The client MUST specify the resource type identifier in the
resource attribute associated with the control "m=" line of the SDP
offer. The server MUST respond with the full \%Channel-Identifier
(which includes the resource type identifier and a \%difficult-to-
guess, unambiguous string) in the "channel" attribute associated with
the control "m=" line of the SDP answer. To remain backwards
compatible with conventional SDP usage, the format field of the "m="
line MUST have the arbitrarily selected value of "1".
When the client wants to add a media processing resource to the
session, it issues a new SDP offer, according to the procedures of
RFC 3264 [RFC3264], in a SIP \%re-INVITE request. The SDP offer/answer
exchange carried by this SIP transaction contains one or more
additional control "m=" lines for the new resources to be allocated
to the session. The server, on seeing the new "m=" line, allocates
the resources (if they are available) and responds with a
.bp
corresponding control "m=" line in the SDP answer carried in the SIP
response. If the new resources are not available, the \%re-INVITE
receives an error message, and existing media processing going on
before the \%re-INVITE will continue as it was before. It is not
possible to allocate more than one resource of each type. If a
client requests more than one resource of any type, the server MUST
behave as if the resources of that type (beyond the first one) are
not available.
MRCPv2 clients and servers using TCP as a transport protocol MUST use
the procedures specified in RFC 4145 [RFC4145] for setting up the TCP
connection, with the considerations described hereby. Similarly,
MRCPv2 clients and servers using TCP/TLS as a transport protocol MUST
use the procedures specified in RFC 4572 [RFC4572] for setting up the
TLS connection, with the considerations described hereby. The
a=setup attribute, as described in RFC 4145 [RFC4145], MUST be
"active" for the offer from the client and MUST be "passive" for the
answer from the MRCPv2 server. The a=connection attribute MUST have
a value of "new" on the very first control "m=" line offer from the
client to an MRCPv2 server. Subsequent control "m=" line offers from
the client to the MRCP server MAY contain "new" or "existing",
depending on whether the client wants to set up a new connection or
share an existing connection, respectively. If the client specifies
a value of "new", the server MUST respond with a value of "new". If
the client specifies a value of "existing", the server MUST respond.
The legal values in the response are "existing" if the server prefers
to share an existing connection or "new" if not. In the latter case,
the client MUST initiate a new transport connection.
When the client wants to deallocate the resource from this session,
it issues a new SDP offer, according to RFC 3264 [RFC3264], where the
control "m=" line port MUST be set to 0. This SDP offer is sent in a
SIP \%re-INVITE request. This deallocates the associated MRCPv2
identifier and resource. The server MUST NOT close the TCP or TLS
connection if it is currently being shared among multiple MRCP
channels. When all MRCP channels that may be sharing the connection
are released and/or the associated SIP dialog is terminated, the
client or server terminates the connection.
When the client wants to tear down the whole session and all its
resources, it MUST issue a SIP BYE request to close the SIP session.
This will deallocate all the control channels and resources allocated
under the session.
All servers MUST support TLS. Servers MAY use TCP without TLS in
controlled environments (e.g., not in the public Internet) where both
nodes are inside a protected perimeter, for example, preventing
access to the MRCP server from remote nodes outside the controlled
.bp
perimeter. It is up to the client, through the SDP offer, to choose
which transport it wants to use for an MRCPv2 session. Aside from
the exceptions given above, when using TCP, the "m=" lines MUST
conform to RFC4145 [RFC4145], which describes the usage of SDP for
\%connection-oriented transport. When using TLS, the SDP "m=" line for
the control stream MUST conform to \%Connection-Oriented Media
(COMEDIA) over TLS [RFC4572], which specifies the usage of SDP for
establishing a secure \%connection-oriented transport over TLS.
.in 6
.ti 0
4.3. SIP Session Example
.in 3
This first example shows the power of using SIP to route to the
appropriate resource. In the example, note the use of a request to a
domain's speech server service in the INVITE to
mresources@example.com. The SIP routing machinery in the domain
locates the actual server, mresources@server.example.com, which gets
returned in the 200 OK. Note that "cmid" is defined in Section\04.4.
This example exchange adds a resource control channel for a
synthesizer. Since a synthesizer also generates an audio stream,
this interaction also creates a \%receive-only \%Real-Time Protocol (RTP)
[RFC3550] media session for the server to send audio to. The SIP
dialog with the media source/sink is independent of MRCP and is not
shown.
.in 0
.nf
C->S: INVITE sip:mresources@example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf1
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:314161 INVITE
Contact:<sip:sarvi@client.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=sarvi 2890844526 2890844526 IN IP4 192.0.2.12
s=-
c=IN IP4 192.0.2.12
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechsynth
a=cmid:1
m=audio 49170 RTP/AVP 0
.bp
a=rtpmap:0 pcmu/8000
a=recvonly
a=mid:1
S->C: SIP/2.0 200 OK
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf1;received=192.0.32.10
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:314161 INVITE
Contact:<sip:mresources@server.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=- 2890842808 2890842808 IN IP4 192.0.2.11
s=-
c=IN IP4 192.0.2.11
t=0 0
m=application 32416 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:32AECB234338@speechsynth
a=cmid:1
m=audio 48260 RTP/AVP 0
a=rtpmap:0 pcmu/8000
a=sendonly
a=mid:1
C->S: ACK sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf2
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:Sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:314161 ACK
Content-Length:0
.fi
.in 3
.ce 1
Example: Add Synthesizer Control Channel
This example exchange continues from the previous figure and
allocates an additional resource control channel for a recognizer.
Since a recognizer would need to receive an audio stream for
recognition, this interaction also updates the audio stream to
.bp
sendrecv, making it a \%two-way RTP media session.
.in 0
.nf
C->S: INVITE sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf3
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:314162 INVITE
Contact:<sip:sarvi@client.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=sarvi 2890844526 2890844527 IN IP4 192.0.2.12
s=-
c=IN IP4 192.0.2.12
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:existing
a=resource:speechsynth
a=cmid:1
m=audio 49170 RTP/AVP 0 96
a=rtpmap:0 pcmu/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=sendrecv
a=mid:1
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:existing
a=resource:speechrecog
a=cmid:1
S->C: SIP/2.0 200 OK
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf3;received=192.0.32.10
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:314162 INVITE
Contact:<sip:mresources@server.example.com>
Content-Type:application/sdp
Content-Length:...
.bp
v=0
o=- 2890842808 2890842809 IN IP4 192.0.2.11
s=-
c=IN IP4 192.0.2.11
t=0 0
m=application 32416 TCP/MRCPv2 1
a=setup:passive
a=connection:existing
a=channel:32AECB234338@speechsynth
a=cmid:1
m=audio 48260 RTP/AVP 0 96
a=rtpmap:0 pcmu/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=sendrecv
a=mid:1
m=application 32416 TCP/MRCPv2 1
a=setup:passive
a=connection:existing
a=channel:32AECB234338@speechrecog
a=cmid:1
C->S: ACK sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf4
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:Sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:314162 ACK
Content-Length:0
.fi
.in 3
.ce 1
Example: Add Recognizer
This example exchange continues from the previous figure and
deallocates the recognizer channel. Since a recognizer no longer
needs to receive an audio stream, this interaction also updates the
RTP media session to recvonly.
.in 0
.nf
C->S: INVITE sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf5
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:314163 INVITE
.bp
Contact:<sip:sarvi@client.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=sarvi 2890844526 2890844528 IN IP4 192.0.2.12
s=-
c=IN IP4 192.0.2.12
t=0 0
m=application 9 TCP/MRCPv2 1
a=resource:speechsynth
a=cmid:1
m=audio 49170 RTP/AVP 0
a=rtpmap:0 pcmu/8000
a=recvonly
a=mid:1
m=application 0 TCP/MRCPv2 1
a=resource:speechrecog
a=cmid:1
S->C: SIP/2.0 200 OK
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf5;received=192.0.32.10
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:314163 INVITE
Contact:<sip:mresources@server.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=- 2890842808 2890842810 IN IP4 192.0.2.11
s=-
c=IN IP4 192.0.2.11
t=0 0
m=application 32416 TCP/MRCPv2 1
a=channel:32AECB234338@speechsynth
a=cmid:1
m=audio 48260 RTP/AVP 0
a=rtpmap:0 pcmu/8000
a=sendonly
a=mid:1
m=application 0 TCP/MRCPv2 1
a=channel:32AECB234338@speechrecog
a=cmid:1
.bp
C->S: ACK sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf6
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:Sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:314163 ACK
Content-Length:0
.fi
.in 3
.ce 1
Example: Deallocate Recognizer
.in 6
.ti 0
4.4. Media Streams and RTP Ports
.in 3
Since MRCPv2 resources either generate or consume media streams, the
client or the server needs to associate media sessions with their
corresponding resource or resources. More than one resource could be
associated with a single media session or each resource could be
assigned a separate media session. Also, note that more than one
media session can be associated with a single resource if need be,
but this scenario is not useful for the current set of resources.
For example, a synthesizer and a recognizer could be associated to
the same media session (m=audio line), if it is opened in "sendrecv"
mode. Alternatively, the recognizer could have its own "sendonly"
audio session, and the synthesizer could have its own "recvonly"
audio session.
The association between control channels and their corresponding
media sessions is established using a new "resource channel media
identifier" \%media-level attribute ("cmid"). Valid values of this
attribute are the values of the "mid" attribute defined in RFC 5888
[RFC5888]. If there is more than one audio "m=" line, then each
audio "m=" line MUST have a "mid" attribute. Each control "m=" line
MAY have one or more "cmid" attributes that match the resource
control channel to the "mid" attributes of the audio "m=" lines it is
associated with. Note that if a control "m=" line does not have a
"cmid" attribute it will not be associated with any media. The
operations on such a resource will hence be limited. For example, if
it was a recognizer resource, the RECOGNIZE method requires an
associated media to process while the INTERPRET method does not. The
formatting of the "cmid" attribute is described by the following
ABNF:
.in 0
.nf
cmid-attribute = "a=cmid:" identification-tag
identification-tag = token
.fi
.in 3
To allow this flexible mapping of media sessions to MRCPv2 control
channels, a single audio "m=" line can be associated with multiple
.bp
resources, or each resource can have its own audio "m=" line. For
example, if the client wants to allocate a recognizer and a
synthesizer and associate them with a single \%two-way audio stream,
the SDP offer would contain two control "m=" lines and a single audio
"m=" line with an attribute of "sendrecv". Each of the control "m="
lines would have a "cmid" attribute whose value matches the "mid" of
the audio "m=" line. If, on the other hand, the client wants to
allocate a recognizer and a synthesizer each with its own separate
audio stream, the SDP offer would carry two control "m=" lines (one
for the recognizer and another for the synthesizer) and two audio
"m=" lines (one with the attribute "sendonly" and another with
attribute "recvonly"). The "cmid" attribute of the recognizer
control "m=" line would match the "mid" value of the "sendonly" audio
"m=" line, and the "cmid" attribute of the synthesizer control "m="
line would match the "mid" attribute of the "recvonly" "m=" line.
When a server receives media (e.g., audio) on a media session that is
associated with more than one media processing resource, it is the
responsibility of the server to receive and fork the media to the
resources that need to consume it. If multiple resources in an
MRCPv2 session are generating audio (or other media) to be sent on a
single associated media session, it is the responsibility of the
server either to multiplex the multiple streams onto the single RTP
session or to contain an embedded RTP mixer (see RFC 3550 [RFC3550])
to combine the multiple streams into one. In the former case, the
media stream will contain RTP packets generated by different sources,
and hence the packets will have different Synchronization Source
Identifiers (SSRCs). In the latter case, the RTP packets will
contain multiple Contributing Source Identifiers (CSRCs)
corresponding to the original streams before being combined by the
mixer. If an MRCPv2 server implementation neither multiplexes nor
mixes, it MUST disallow the client from associating multiple such
resources to a single audio stream by rejecting the SDP offer with a
SIP 488 "Not Acceptable" error. Note that there is a large installed
base that will return a SIP 501 "Not Implemented" error in this case.
To facilitate interoperability with this installed base, new
implementations SHOULD treat a 501 in this context as a 488 when it
is received from an element known to be a legacy implementation.
.in 6
.ti 0
4.5. MRCPv2 Message Transport
.in 3
The MRCPv2 messages defined in this document are transported over a
TCP or TLS connection between the client and the server. The method
for setting up this transport connection and the resource control
channel is discussed in Sections 4.1 and 4.2. Multiple resource
control channels between a client and a server that belong to
different SIP dialogs can share one or more TLS or TCP connections
between them; the server and client MUST support this mode of
.bp
operation. Clients and servers MUST use the MRCPv2 channel
identifier, carried in the \%Channel-Identifier header field in
individual MRCPv2 messages, to differentiate MRCPv2 messages from
different resource channels (see Section\06.2.1 for details). All
MRCPv2 servers MUST support TLS. Servers MAY use TCP without TLS in
controlled environments (e.g., not in the public Internet) where both
nodes are inside a protected perimeter, for example, preventing
access to the MRCP server from remote nodes outside the controlled
perimeter. It is up to the client to choose which mode of transport
it wants to use for an MRCPv2 session.
Most examples from here on show only the MRCPv2 messages and do not
show the SIP messages that may have been used to establish the MRCPv2
control channel.
.in 6
.ti 0
4.6. MRCPv2 Session Termination
.in 3
If an MRCP client notices that the underlying connection has been
closed for one of its MRCP channels, and it has not previously
initiated a \%re-INVITE to close that channel, it MUST send a BYE to
close down the SIP dialog and all other MRCP channels. If an MRCP
server notices that the underlying connection has been closed for one
of its MRCP channels, and it has not previously received and accepted
a \%re-INVITE closing that channel, then it MUST send a BYE to close
down the SIP dialog and all other MRCP channels.
.in 4
.ti 0
5. MRCPv2 Specification
.in 3
Except as otherwise indicated, MRCPv2 messages are Unicode encoded in
\%UTF-8 (RFC 3629 [RFC3629]) to allow many different languages to be
represented. \%DEFINE-GRAMMAR (Section\09.8), for example, is one such
exception, since its body can contain arbitrary XML in arbitrary (but
specified via XML) encodings. MRCPv2 also allows message bodies to
be represented in other character sets (for example, ISO \%8859-1
\%[ISO.8859-1.1987]) because, in some locales, other character sets are
already in widespread use. The MRCPv2 headers (the first line of an
MRCP message) and header field names use only the \%US-ASCII subset of
\%UTF-8.
Lines are terminated by CRLF (carriage return, then line feed).
Also, some parameters in the message may contain binary data or a
record spanning multiple lines. Such fields have a length value
associated with the parameter, which indicates the number of octets
immediately following the parameter.
.bp
.in 6
.ti 0
5.1. Common Protocol Elements
.in 3
The MRCPv2 message set consists of requests from the client to the
server, responses from the server to the client, and asynchronous
events from the server to the client. All these messages consist of
a \%start-line, one or more header fields, an empty line (i.e., a line
with nothing preceding the CRLF) indicating the end of the header
fields, and an optional message body.
.in 0
.nf
generic-message = start-line
message-header
CRLF
[ message-body ]
message-body = *OCTET
start-line = request-line / response-line / event-line
message-header = 1*(generic-header / resource-header /
generic-field)
resource-header = synthesizer-header
/ recognizer-header
/ recorder-header
/ verifier-header
.fi
.in 3
The \%message-body contains \%resource-specific and \%message-specific
data. The actual media types used to carry the data are specified in
the sections defining the individual messages. Generic header fields
are described in Section\06.2.
If a message contains a message body, the message MUST contain
\%content-headers indicating the media type and encoding of the data in
the message body.
Request, response and event messages (described in following
sections) include the version of MRCP that the message conforms to.
Version compatibility rules follow [H3.1] regarding version ordering,
compliance requirements, and upgrading of version numbers. The
version information is indicated by "MRCP" (as opposed to "HTTP" in
[H3.1]) or "MRCP/2.0" (as opposed to "HTTP/1.1" in [H3.1]). To be
compliant with this specification, clients and servers sending MRCPv2
messages MUST indicate an \%mrcp-version of "MRCP/2.0". ABNF
productions using \%mrcp-version can be found in Sections 5.2, 5.3, and
5.5.
.in 0
.nf
mrcp-version = "MRCP" "/" 1*2DIGIT "." 1*2DIGIT
.fi
.in 3
.bp
The \%message-length field specifies the length of the message in
octets, including the \%start-line, and MUST be the second token from
the beginning of the message. This is to make the framing and
parsing of the message simpler to do. This field specifies the
length of the message including data that may be encoded into the
body of the message. Note that this value MAY be given as a \%fixed-
length integer that is \%zero-padded (with leading zeros) in order to
eliminate or reduce inefficiency in cases where the \%message-length
value would change as a result of the length of the \%message-length
token itself. This value, as with all lengths in MRCP, is to be
interpreted as a \%base-10 number. In particular, leading zeros do not
indicate that the value is to be interpreted as a \%base-8 number.
.in 0
.nf
message-length = 1*19DIGIT
.fi
.in 3
The following sample MRCP exchange demonstrates proper \%message-length
values. The values for \%message-length have been removed from all
other examples in the specification and replaced by '...' to reduce
confusion in the case of minor \%message-length computation errors in
those examples.
.in 0
.nf
C->S: MRCP/2.0 877 INTERPRET 543266
Channel-Identifier:32AECB23433801@speechrecog
Interpret-Text:may I speak to Andre Roy
Content-Type:application/srgs+xml
Content-ID:<request1@form-level.store>
Content-Length:661
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0" root="request">
<!-- single language attachment to tokens -->
<rule id="yes">
<one-of>
<item xml:lang="fr-CA">oui</item>
<item xml:lang="en-US">yes</item>
</one-of>
</rule>
<!-- single language attachment to a rule expansion -->
<rule id="request">
may I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
.bp
</grammar>
S->C: MRCP/2.0 82 543266 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
S->C: MRCP/2.0 634 INTERPRETATION-COMPLETE 543266 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
Content-Type:application/nlsml+xml
Content-Length:441
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="session:request1@form-level.store">
<interpretation>
<instance name="Person">
<ex:Person>
<ex:Name> Andre Roy </ex:Name>
</ex:Person>
</instance>
<input> may I speak to Andre Roy </input>
</interpretation>
</result>
.fi
.in 3
All MRCPv2 messages, responses and events MUST carry the \%Channel-
Identifier header field so the server or client can differentiate
messages from different control channels that may share the same
transport connection.
In the \%resource-specific header field descriptions in Sections \%8-11,
a header field is disallowed on a method (request, response, or
event) for that resource unless specifically listed as being allowed.
Also, the phrasing "This header field MAY occur on method X"
indicates that the header field is allowed on that method but is not
required to be used in every instance of that method.
.in 6
.ti 0
5.2. Request
.in 3
An MRCPv2 request consists of a Request line followed by the message
header section and an optional message body containing data specific
to the request message.
The Request message from a client to the server includes within the
first line the method to be applied, a method tag for that request
and the version of the protocol in use.
.bp
.in 0
.nf
request-line = mrcp-version SP message-length SP method-name
SP request-id CRLF
.fi
.in 3
The \%mrcp-version field is the MRCP protocol version that is being
used by the client.
The \%message-length field specifies the length of the message,
including the \%start-line.
Details about the \%mrcp-version and \%message-length fields are given in
Section\05.1.
The \%method-name field identifies the specific request that the client
is making to the server. Each resource supports a subset of the
MRCPv2 methods. The subset for each resource is defined in the
section of the specification for the corresponding resource.
.in 0
.nf
method-name = generic-method
/ synthesizer-method
/ recognizer-method
/ recorder-method
/ verifier-method
.fi
.in 3
The \%request-id field is a unique identifier representable as an
unsigned \%32-bit integer created by the client and sent to the server.
Clients MUST utilize monotonically increasing \%request-ids for
consecutive requests within an MRCP session. The \%request-id space is
linear (i.e., not mod(32)), so the space does not wrap, and validity
can be checked with a simple unsigned comparison operation. The
client may choose any initial value for its first request, but a
small integer is RECOMMENDED to avoid exhausting the space in long
sessions. If the server receives duplicate or \%out-of-order requests,
the server MUST reject the request with a response code of 410.
Since \%request-ids are scoped to the MRCP session, they are unique
across all TCP connections and all resource channels in the session.
The server resource MUST use the \%client-assigned identifier in its
response to the request. If the request does not complete
synchronously, future asynchronous events associated with this
request MUST carry the \%client-assigned \%request-id.
.in 0
.nf
request-id = 1*10DIGIT
.fi
.in 3
.in 6
.ti 0
5.3. Response
.in 3
After receiving and interpreting the request message for a method,
the server resource responds with an MRCPv2 response message. The
response consists of a response line followed by the message header
.bp
section and an optional message body containing data specific to the
method.
.in 0
.nf
response-line = mrcp-version SP message-length SP request-id
SP status-code SP request-state CRLF
.fi
.in 3
The \%mrcp-version field MUST contain the version of the request if
supported; otherwise, it MUST contain the highest version of MRCP
supported by the server.
The \%message-length field specifies the length of the message,
including the \%start-line.
Details about the \%mrcp-version and \%message-length fields are given in
Section\05.1.
The \%request-id used in the response MUST match the one sent in the
corresponding request message.
The \%status-code field is a \%3-digit code representing the success or
failure or other status of the request.
.in 0
.nf
status-code = 3DIGIT
.fi
.in 3
The \%request-state field indicates if the action initiated by the
Request is PENDING, \%IN-PROGRESS, or COMPLETE. The COMPLETE status
means that the request was processed to completion and that there
will be no more events or other messages from that resource to the
client with that \%request-id. The PENDING status means that the
request has been placed in a queue and will be processed in \%first-in-
\%first-out order. The \%IN-PROGRESS status means that the request is
being processed and is not yet complete. A PENDING or \%IN-PROGRESS
status indicates that further Event messages may be delivered with
that \%request-id.
.in 0
.nf
request-state = "COMPLETE"
/ "IN-PROGRESS"
/ "PENDING"
.fi
.in 3
.in 6
.ti 0
5.4. Status Codes
.in 3
The status codes are classified under the Success (2xx), Client
Failure (4xx), and Server Failure (5xx) codes.
.bp
.in 0
.nf
+------------+--------------------------------------------------+
| Code | Meaning |
+------------+--------------------------------------------------+
| 200 | Success |
| 201 | Success with some optional header fields ignored |
+------------+--------------------------------------------------+
.fi
.in 3
.ce 1
Success (2xx)
.in 0
.nf
+------------+------------------------------------------------------+
| Code | Meaning |
+------------+------------------------------------------------------+
| 401 | Method not allowed |
| 402 | Method not valid in this state |
| 403 | Unsupported header field |
| 404 | Illegal value for header field. This is the error |
| | for a syntax violation. |
| 405 | Resource not allocated for this session or does not |
| | exist |
| 406 | Mandatory Header Field Missing |
| 407 | Method or Operation Failed (e.g., Grammar |
| | compilation failed in the recognizer. Detailed cause |
| | codes might be available through a resource-specific |
| | header.) |
| 408 | Unrecognized or unsupported message entity |
| 409 | Unsupported Header Field Value. This is a value that |
| | is syntactically legal but exceeds the |
| | implementation's capabilities or expectations. |
| 410 | Non-Monotonic or Out-of-order sequence number in |
| | request. |
| 411-420 | Reserved for future assignment |
+------------+------------------------------------------------------+
.fi
.in 3
.ce 1
Client Failure (4xx)
.in 0
.nf
+------------+--------------------------------+
| Code | Meaning |
+------------+--------------------------------+
| 501 | Server Internal Error |
| 502 | Protocol Version not supported |
| 503 | Reserved for future assignment |
| 504 | Message too large |
+------------+--------------------------------+
.fi
.in 3
.ce 1
Server Failure (5xx)
.bp
.in 6
.ti 0
5.5. Events
.in 3
The server resource may need to communicate a change in state or the
occurrence of a certain event to the client. These messages are used
when a request does not complete immediately and the response returns
a status of PENDING or \%IN-PROGRESS. The intermediate results and
events of the request are indicated to the client through the event
message from the server. The event message consists of an event
header line followed by the message header section and an optional
message body containing data specific to the event message. The
header line has the \%request-id of the corresponding request and
status value. The \%request-state value is COMPLETE if the request is
done and this was the last event, else it is \%IN-PROGRESS.
.in 0
.nf
event-line = mrcp-version SP message-length SP event-name
SP request-id SP request-state CRLF
.fi
.in 3
The \%mrcp-version used here is identical to the one used in the
Request/Response line and indicates the highest version of MRCP
running on the server.
The \%message-length field specifies the length of the message,
including the \%start-line.
Details about the \%mrcp-version and \%message-length fields are given in
Section\05.1.
The \%event-name identifies the nature of the event generated by the
media resource. The set of valid event names depends on the resource
generating it. See the corresponding \%resource-specific section of
the document.
.in 0
.nf
event-name = synthesizer-event
/ recognizer-event
/ recorder-event
/ verifier-event
.fi
.in 3
The \%request-id used in the event MUST match the one sent in the
request that caused this event.
The \%request-state indicates whether the Request/Command causing this
event is complete or still in progress and whether it is the same as
the one mentioned in Section\05.3. The final event for a request has
a COMPLETE status indicating the completion of the request.
.bp
.in 4
.ti 0
6. MRCPv2 Generic Methods, Headers, and Result Structure
.in 3
MRCPv2 supports a set of methods and header fields that are common to
all resources. These are discussed here; \%resource-specific methods
and header fields are discussed in the corresponding \%resource-
specific section of the document.
.in 6
.ti 0
6.1. Generic Methods
.in 3
MRCPv2 supports two generic methods for reading and writing the state
associated with a resource.
.in 0
.nf
generic-method = "SET-PARAMS"
/ "GET-PARAMS"
.fi
.in 3
These are described in the following subsections.
.in 8
.ti 0
6.1.1. \%SET-PARAMS
.in 3
The \%SET-PARAMS method, from the client to the server, tells the
MRCPv2 resource to define parameters for the session, such as voice
characteristics and prosody on synthesizers, recognition timers on
recognizers, etc. If the server accepts and sets all parameters, it
MUST return a response \%status-code of 200. If it chooses to ignore
some optional header fields that can be safely ignored without
affecting operation of the server, it MUST return 201.
If one or more of the header fields being sent is incorrect, error
403, 404, or 409 MUST be returned as follows:
.in 6
.ti 3
o If one or more of the header fields being set has an illegal
value, the server MUST reject the request with a 404 Illegal Value
for Header Field.
.ti 3
o If one or more of the header fields being set is unsupported for
the resource, the server MUST reject the request with a 403
Unsupported Header Field, except as described in the next
paragraph.
.ti 3
o If one or more of the header fields being set has an unsupported
value, the server MUST reject the request with a 409 Unsupported
Header Field Value, except as described in the next paragraph.
.in 3
If both error 404 and another error have occurred, only error 404
MUST be returned. If both errors 403 and 409 have occurred, but not
error 404, only error 403 MUST be returned.
.bp
If error 403, 404, or 409 is returned, the response MUST include the
bad or unsupported header fields and their values exactly as they
were sent from the client. Session parameters modified using
\%SET-PARAMS do not override parameters explicitly specified on
individual requests or requests that are \%IN-PROGRESS.
.in 0
.nf
C->S: MRCP/2.0 ... SET-PARAMS 543256
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:female
Voice-variant:3
S->C: MRCP/2.0 ... 543256 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
.fi
.in 3
.in 8
.ti 0
6.1.2. \%GET-PARAMS
.in 3
The \%GET-PARAMS method, from the client to the server, asks the MRCPv2
resource for its current session parameters, such as voice
characteristics and prosody on synthesizers, recognition timers on
recognizers, etc. For every header field the client sends in the
request without a value, the server MUST include the header field and
its corresponding value in the response. If no parameter header
fields are specified by the client, then the server MUST return all
the settable parameters and their values in the corresponding header
section of the response, including \%vendor-specific parameters. Such
wildcard parameter requests can be very \%processing-intensive, since
the number of settable parameters can be large depending on the
implementation. Hence, it is RECOMMENDED that the client not use the
wildcard \%GET-PARAMS operation very often. Note that \%GET-PARAMS
returns header field values that apply to the whole session and not
values that have a \%request-level scope. For example, \%Input-Waveform-
URI is a \%request-level header field and thus would not be returned by
\%GET-PARAMS.
If all of the header fields requested are supported, the server MUST
return a response \%status-code of 200. If some of the header fields
being retrieved are unsupported for the resource, the server MUST
reject the request with a 403 Unsupported Header Field. Such a
response MUST include the unsupported header fields exactly as they
were sent from the client, without values.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... GET-PARAMS 543256
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:
Voice-variant:
Vendor-Specific-Parameters:com.example.param1;
com.example.param2
S->C: MRCP/2.0 ... 543256 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:female
Voice-variant:3
Vendor-Specific-Parameters:com.example.param1="Company Name";
com.example.param2="124324234@example.com"
.fi
.in 3
.in 6
.ti 0
6.2. Generic Message Headers
.in 3
All MRCPv2 header fields, which include both the \%generic-headers
defined in the following subsections and the \%resource-specific header
fields defined later, follow the same generic format as that given in
Section\03.1 of RFC 5322 [RFC5322]. Each header field consists of a
name followed by a colon (":") and the value. Header field names are
\%case-insensitive. The value MAY be preceded by any amount of LWS
(linear white space), though a single SP (space) is preferred.
Header fields may extend over multiple lines by preceding each extra
line with at least one SP or HT (horizontal tab).
.in 0
.nf
generic-field = field-name ":" [ field-value ]
field-name = token
field-value = *LWS field-content *( CRLF 1*LWS field-content)
field-content = <the OCTETs making up the field-value
and consisting of either *TEXT or combinations
of token, separators, and quoted-string>
.fi
.in 3
The \%field-content does not include any leading or trailing LWS (i.e.,
linear white space occurring before the first \%non-whitespace
character of the \%field-value or after the last \%non-whitespace
character of the \%field-value). Such leading or trailing LWS MAY be
removed without changing the semantics of the field value. Any LWS
that occurs between \%field-content MAY be replaced with a single SP
before interpreting the field value or forwarding the message
downstream.
MRCPv2 servers and clients MUST NOT depend on header field order. It
is RECOMMENDED to send \%general-header fields first, followed by
\%request-header or \%response-header fields, and ending with the \%entity-
header fields. However, MRCPv2 servers and clients MUST be prepared
to process the header fields in any order. The only exception to
.bp
this rule is when there are multiple header fields with the same name
in a message.
Multiple header fields with the same name MAY be present in a message
if and only if the entire value for that header field is defined as a
\%comma-separated list [i.e., #(values)].
Since \%vendor-specific parameters may be \%order-dependent, it MUST be
possible to combine multiple header fields of the same name into one
"name:value" pair without changing the semantics of the message, by
appending each subsequent value to the first, each separated by a
comma. The order in which header fields with the same name are
received is therefore significant to the interpretation of the
combined header field value, and thus an intermediary MUST NOT change
the order of these values when a message is forwarded.
.in 0
.nf
generic-header = channel-identifier
/ accept
/ active-request-id-list
/ proxy-sync-id
/ accept-charset
/ content-type
/ content-id
/ content-base
/ content-encoding
/ content-location
/ content-length
/ fetch-timeout
/ cache-control
/ logging-tag
/ set-cookie
/ vendor-specific
.fi
.in 3
.in 8
.ti 0
6.2.1. \%Channel-Identifier
.in 3
All MRCPv2 requests, responses, and events MUST contain the \%Channel-
Identifier header field. The value is allocated by the server when a
control channel is added to the session and communicated to the
client by the "a=channel" attribute in the SDP answer from the
server. The header field value consists of 2 parts separated by the
\&'@' symbol. The first part is an unambiguous string identifying the
MRCPv2 session. The second part is a string token that specifies one
of the media processing resource types listed in Section\03.1. The
unambiguous string (first part) MUST be difficult to guess, unique
among the resource instances managed by the server, and common to all
resource channels with that server established through a single SIP
dialog.
.bp
.in 0
.nf
channel-identifier = "Channel-Identifier" ":" channel-id CRLF
channel-id = 1*alphanum "@" 1*alphanum
.fi
.in 3
.in 8
.ti 0
6.2.2. Accept
.in 3
The Accept header field follows the syntax defined in [H14.1]. The
semantics are also identical, with the exception that if no Accept
header field is present, the server MUST assume a default value that
is specific to the resource type that is being controlled. This
default value can be changed for a resource on a session by sending
this header field in a \%SET-PARAMS method. The current default value
of this header field for a resource in a session can be found through
a \%GET-PARAMS method. This header field MAY occur on any request.
.in 8
.ti 0
6.2.3. \%Active-Request-Id-List
.in 3
In a request, this header field indicates the list of \%request-ids to
which the request applies. This is useful when there are multiple
requests that are PENDING or \%IN-PROGRESS and the client wants this
request to apply to one or more of these specifically.
In a response, this header field returns the list of \%request-ids that
the method modified or affected. There could be one or more requests
in a \%request-state of PENDING or \%IN-PROGRESS. When a method
affecting one or more PENDING or \%IN-PROGRESS requests is sent from
the client to the server, the response MUST contain the list of
\%request-ids that were affected or modified by this command in its
header section.
The \%Active-Request-Id-List is only used in requests and responses,
not in events.
For example, if a STOP request with no \%Active-Request-Id-List is sent
to a synthesizer resource that has one or more SPEAK requests in the
PENDING or \%IN-PROGRESS state, all SPEAK requests MUST be cancelled,
including the one \%IN-PROGRESS. The response to the STOP request
contains in the \%Active-Request-Id-List value the \%request-ids of all
the SPEAK requests that were terminated. After sending the STOP
response, the server MUST NOT send any \%SPEAK-COMPLETE or \%RECOGNITION-
COMPLETE events for the terminated requests.
.in 0
.nf
active-request-id-list = "Active-Request-Id-List" ":"
request-id *("," request-id) CRLF
.fi
.in 3
.bp
.in 8
.ti 0
6.2.4. \%Proxy-Sync-Id
.in 3
When any server resource generates a \%"barge-in-able" event, it also
generates a unique tag. The tag is sent as this header field's value
in an event to the client. The client then acts as an intermediary
among the server resources and sends a \%BARGE-IN-OCCURRED method to
the synthesizer server resource with the \%Proxy-Sync-Id it received
from the server resource. When the recognizer and synthesizer
resources are part of the same session, they may choose to work
together to achieve quicker interaction and response. Here, the
\%Proxy-Sync-Id helps the resource receiving the event, intermediated
by the client, to decide if this event has been processed through a
direct interaction of the resources. This header field MAY occur
only on events and the \%BARGE-IN-OCCURRED method. The name of this
header field contains the word 'proxy' only for historical reasons
and does not imply that a proxy server is involved.
.in 0
.nf
proxy-sync-id = "Proxy-Sync-Id" ":" 1*VCHAR CRLF
.fi
.in 3
.in 8
.ti 0
6.2.5. \%Accept-Charset
.in 3
See [H14.2]. This specifies the acceptable character sets for
entities returned in the response or events associated with this
request. This is useful in specifying the character set to use in
the Natural Language Semantic Markup Language (NLSML) results of a
\%RECOGNITION-COMPLETE event. This header field is only used on
requests.
.in 8
.ti 0
6.2.6. \%Content-Type
.in 3
See [H14.17]. MRCPv2 supports a restricted set of registered media
types for content, including speech markup, grammar, and recognition
results. The content types applicable to each MRCPv2 \%resource-type
are specified in the corresponding section of the document and are
registered in the MIME Media Types registry maintained by IANA. The
multipart content type "multipart/mixed" is supported to communicate
multiple of the above mentioned contents, in which case the body
parts MUST NOT contain any \%MRCPv2-specific header fields. This
header field MAY occur on all messages.
.bp
.in 0
.nf
content-type = "Content-Type" ":" media-type-value CRLF
media-type-value = type "/" subtype *( ";" parameter )
type = token
subtype = token
parameter = attribute "=" value
attribute = token
value = token / quoted-string
.fi
.in 3
.in 8
.ti 0
6.2.7. \%Content-ID
.in 3
This header field contains an ID or name for the content by which it
can be referenced. This header field operates according to the
specification in RFC 2392 [RFC2392] and is required for content
disambiguation in multipart messages. In MRCPv2, whenever the
associated content is stored by either the client or the server, it
MUST be retrievable using this ID. Such content can be referenced
later in a session by addressing it with the 'session' URI scheme
described in Section\013.6. This header field MAY occur on all
messages.
.in 8
.ti 0
6.2.8. \%Content-Base
.in 3
The \%Content-Base \%entity-header MAY be used to specify the base URI
for resolving relative URIs within the entity.
.in 0
.nf
content-base = "Content-Base" ":" absoluteURI CRLF
.fi
.in 3
Note, however, that the base URI of the contents within the \%entity-
body may be redefined within that \%entity-body. An example of this
would be multipart media, which in turn can have multiple entities
within it. This header field MAY occur on all messages.
.in 8
.ti 0
6.2.9. \%Content-Encoding
.in 3
The \%Content-Encoding \%entity-header is used as a modifier to the
\%Content-Type. When present, its value indicates what additional
content encoding has been applied to the \%entity-body, and thus what
decoding mechanisms must be applied in order to obtain the Media Type
referenced by the \%Content-Type header field. \%Content-Encoding is
primarily used to allow a document to be compressed without losing
the identity of its underlying media type. Note that the SIP session
.bp
can be used to determine accepted encodings (see Section\07). This
header field MAY occur on all messages.
.in 0
.nf
content-encoding = "Content-Encoding" ":"
*WSP content-coding
*(*WSP "," *WSP content-coding *WSP )
CRLF
.fi
.in 3
Content codings are defined in [H3.5]. An example of its use is
.in 0
.nf
Content-Encoding:gzip
.fi
.in 3
If multiple encodings have been applied to an entity, the content
encodings MUST be listed in the order in which they were applied.
.in 9
.ti 0
6.2.10. \%Content-Location
.in 3
The \%Content-Location \%entity-header MAY be used to supply the resource
location for the entity enclosed in the message when that entity is
accessible from a location separate from the requested resource's
URI. Refer to [H14.14].
.in 0
.nf
content-location = "Content-Location" ":"
( absoluteURI / relativeURI ) CRLF
.fi
.in 3
The \%Content-Location value is a statement of the location of the
resource corresponding to this particular entity at the time of the
request. This header field is provided for optimization purposes
only. The receiver of this header field MAY assume that the entity
being sent is identical to what would have been retrieved or might
already have been retrieved from the \%Content-Location URI.
For example, if the client provided a grammar markup inline, and it
had previously retrieved it from a certain URI, that URI can be
provided as part of the entity, using the \%Content-Location header
field. This allows a resource like the recognizer to look into its
cache to see if this grammar was previously retrieved, compiled, and
cached. In this case, it might optimize by using the previously
compiled grammar object.
If the \%Content-Location is a relative URI, the relative URI is
interpreted relative to the \%Content-Base URI. This header field MAY
occur on all messages.
.bp
.in 9
.ti 0
6.2.11. \%Content-Length
.in 3
This header field contains the length of the content of the message
body (i.e., after the double CRLF following the last header field).
Unlike in HTTP, it MUST be included in all messages that carry
content beyond the header section. If it is missing, a default value
of zero is assumed. Otherwise, it is interpreted according to
[H14.13]. When a message having no use for a message body contains
one, i.e., the \%Content-Length is \%non-zero, the receiver MUST ignore
the content of the message body. This header field MAY occur on all
messages.
.in 0
.nf
content-length = "Content-Length" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
6.2.12. Fetch Timeout
.in 3
When the recognizer or synthesizer needs to fetch documents or other
resources, this header field controls the corresponding URI access
properties. This defines the timeout for content that the server may
need to fetch over the network. The value is interpreted to be in
milliseconds and ranges from 0 to an \%implementation-specific maximum
value. It is RECOMMENDED that servers be cautious about accepting
long timeout values. The default value for this header field is
implementation specific. This header field MAY occur in \%DEFINE-
GRAMMAR, RECOGNIZE, SPEAK, \%SET-PARAMS, or \%GET-PARAMS.
.in 0
.nf
fetch-timeout = "Fetch-Timeout" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
6.2.13. \%Cache-Control
.in 3
If the server implements content caching, it MUST adhere to the cache
correctness rules of HTTP 1.1 [RFC2616] when accessing and caching
stored content. In particular, the "expires" and \%"cache-control"
header fields of the cached URI or document MUST be honored and take
precedence over the \%Cache-Control defaults set by this header field.
The \%Cache-Control directives are used to define the default caching
algorithms on the server for the session or request. The scope of
the directive is based on the method it is sent on. If the directive
is sent on a \%SET-PARAMS method, it applies for all requests for
external documents the server makes during that session, unless it is
overridden by a \%Cache-Control header field on an individual request.
If the directives are sent on any other requests, they apply only to
external document requests the server makes for that request. An
empty \%Cache-Control header field on the \%GET-PARAMS method is a
request for the server to return the current \%Cache-Control directives
setting on the server. This header field MAY occur only on requests.
.bp
.in 0
.nf
cache-control = "Cache-Control" ":"
[*WSP cache-directive
*( *WSP "," *WSP cache-directive *WSP )]
CRLF
cache-directive = "max-age" "=" delta-seconds
/ "max-stale" [ "=" delta-seconds ]
/ "min-fresh" "=" delta-seconds
delta-seconds = 1*19DIGIT
.fi
.in 3
Here, \%delta-seconds is a decimal time value specifying the number of
seconds since the instant the message response or data was received
by the server.
The different \%cache-directive options allow the client to ask the
server to override the default cache expiration mechanisms:
.in 18
.ti 3
\%max-age Indicates that the client can tolerate the server
using content whose age is no greater than the
specified time in seconds. Unless a \%"max-stale"
directive is also included, the client is not willing
to accept a response based on stale data.
.ti 3
\%min-fresh Indicates that the client is willing to accept a
server response with cached data whose expiration is
no less than its current age plus the specified time
in seconds. If the server's cache \%time-to-live
exceeds the \%client-supplied \%min-fresh value, the
server MUST NOT utilize cached content.
.ti 3
\%max-stale Indicates that the client is willing to allow a server
to utilize cached data that has exceeded its
expiration time. If \%"max-stale" is assigned a value,
then the client is willing to allow the server to use
cached data that has exceeded its expiration time by
no more than the specified number of seconds. If no
value is assigned to \%"max-stale", then the client is
willing to allow the server to use stale data of any
age.
.in 3
If the server cache is requested to use stale response/data without
validation, it MAY do so only if this does not conflict with any
\%"MUST"-level requirements concerning cache validation (e.g., a \%"must-
revalidate" \%Cache-Control directive in the HTTP 1.1 specification
pertaining to the corresponding URI).
.bp
If both the MRCPv2 \%Cache-Control directive and the cached entry on
the server include \%"max-age" directives, then the lesser of the two
values is used for determining the freshness of the cached entry for
that request.
.in 9
.ti 0
6.2.14. \%Logging-Tag
.in 3
This header field MAY be sent as part of a \%SET-PARAMS/GET-PARAMS
method to set or retrieve the logging tag for logs generated by the
server. Once set, the value persists until a new value is set or the
session ends. The MRCPv2 server MAY provide a mechanism to create
subsets of its output logs so that system administrators can examine
or extract only the log file portion during which the logging tag was
set to a certain value.
It is RECOMMENDED that clients include in the logging tag information
to identify the MRCPv2 client User Agent, so that one can determine
which MRCPv2 client request generated a given log message at the
server. It is also RECOMMENDED that MRCPv2 clients not log
personally identifiable information such as credit card numbers and
national identification numbers.
.in 0
.nf
logging-tag = "Logging-Tag" ":" 1*UTFCHAR CRLF
.fi
.in 3
.in 9
.ti 0
6.2.15. \%Set-Cookie
.in 3
Since the associated HTTP client on an MRCPv2 server fetches
documents for processing on behalf of the MRCPv2 client, the cookie
store in the HTTP client of the MRCPv2 server is treated as an
extension of the cookie store in the HTTP client of the MRCPv2
client. This requires that the MRCPv2 client and server be able to
synchronize their common cookie store as needed. To enable the
MRCPv2 client to push its stored cookies to the MRCPv2 server and get
new cookies from the MRCPv2 server stored back to the MRCPv2 client,
the \%Set-Cookie \%entity-header field MAY be included in MRCPv2 requests
to update the cookie store on a server and be returned in final
MRCPv2 responses or events to subsequently update the client's own
cookie store. The stored cookies on the server persist for the
duration of the MRCPv2 session and MUST be destroyed at the end of
the session. To ensure support for cookies, MRCPv2 clients and
servers MUST support the \%Set-Cookie \%entity-header field.
Note that it is the MRCPv2 client that determines which, if any,
cookies are sent to the server. There is no requirement that all
cookies be shared. Rather, it is RECOMMENDED that MRCPv2 clients
communicate only cookies needed by the MRCPv2 server to process its
requests.
.bp
.in 0
.nf
set-cookie = "Set-Cookie:" cookies CRLF
cookies = cookie *("," *LWS cookie)
cookie = attribute "=" value *(";" cookie-av)
cookie-av = "Comment" "=" value
/ "Domain" "=" value
/ "Max-Age" "=" value
/ "Path" "=" value
/ "Secure"
/ "Version" "=" 1*19DIGIT
/ "Age" "=" delta-seconds
set-cookie = "Set-Cookie:" SP set-cookie-string
set-cookie-string = cookie-pair *( ";" SP cookie-av )
cookie-pair = cookie-name "=" cookie-value
cookie-name = token
cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
token = <token, defined in [RFC2616], Section 2.2>
cookie-av = expires-av / max-age-av / domain-av /
path-av / secure-av / httponly-av /
extension-av / age-av
expires-av = "Expires=" sane-cookie-date
sane-cookie-date = <rfc1123-date, from [RFC2616], Section 3.3.1>
max-age-av = "Max-Age=" non-zero-digit *DIGIT
non-zero-digit = %x31-39
domain-av = "Domain=" domain-value
domain-value = <subdomain>
path-av = "Path=" path-value
path-value = <any CHAR except CTLs or ";">
secure-av = "Secure"
httponly-av = "HttpOnly"
extension-av = <any CHAR except CTLs or ";">
age-av = "Age=" delta-seconds
.fi
.in 3
The \%Set-Cookie header field is specified in RFC 6265 [RFC6265]. The
"Age" attribute is introduced in this specification to indicate the
age of the cookie and is OPTIONAL. An MRCPv2 client or server MUST
calculate the age of the cookie according to the age calculation
rules in the HTTP/1.1 specification [RFC2616] and append the "Age"
attribute accordingly. This attribute is provided because time may
have passed since the client received the cookie from an HTTP server.
Rather than having the client reduce \%Max-Age by the actual age, it
passes \%Max-Age verbatim and appends the "Age" attribute, thus
maintaining the cookie as received while still accounting for the
fact that time has passed.
.bp
The MRCPv2 client or server MUST supply defaults for the "Domain" and
"Path" attributes, as specified in RFC 6265, if they are omitted by
the HTTP origin server. Note that there is no leading dot present in
the "Domain" attribute value in this case. Although an explicitly
specified "Domain" value received via the HTTP protocol may be
modified to include a leading dot, an MRCPv2 client or server MUST
NOT modify the "Domain" value when received via the MRCPv2 protocol.
An MRCPv2 client or server MAY combine multiple cookie header fields
of the same type into a single \%"field-name:field-value" pair as
described in Section\06.2.
The \%Set-Cookie header field MAY be specified in any request that
subsequently results in the server performing an HTTP access. When a
server receives new cookie information from an HTTP origin server,
and assuming the cookie store is modified according to RFC 6265, the
server MUST return the new cookie information in the MRCPv2 COMPLETE
response or event, as appropriate, to allow the client to update its
own cookie store.
The \%SET-PARAMS request MAY specify the \%Set-Cookie header field to
update the cookie store on a server. The \%GET-PARAMS request MAY be
used to return the entire cookie store of \%"Set-Cookie" type cookies
to the client.
.in 9
.ti 0
6.2.16. \%Vendor-Specific Parameters
.in 3
This set of header fields allows for the client to set or retrieve
\%vendor-specific parameters.
.in 0
.nf
vendor-specific = "Vendor-Specific-Parameters" ":"
[vendor-specific-av-pair
*(";" vendor-specific-av-pair)] CRLF
vendor-specific-av-pair = vendor-av-pair-name "="
value
vendor-av-pair-name = 1*UTFCHAR
.fi
.in 3
Header fields of this form MAY be sent in any method (request) and
are used to manage \%implementation-specific parameters on the server
side. The \%vendor-av-pair-name follows the reverse Internet Domain
Name convention (see Section\013.1.6 for syntax and registration
information). The value of the vendor attribute is specified after
the "=" symbol and MAY be quoted. For example:
.bp
.in 0
.nf
com.example.companyA.paramxyz=256
com.example.companyA.paramabc=High
com.example.companyB.paramxyz=Low
.fi
.in 3
When used in \%GET-PARAMS to get the current value of these parameters
from the server, this header field value MAY contain a \%semicolon-
separated list of \%implementation-specific attribute names.
.in 6
.ti 0
6.3. Generic Result Structure
.in 3
Result data from the server for the Recognizer and Verifier resources
is carried as a typed media entity in the MRCPv2 message body of
various events. The Natural Language Semantics Markup Language
(NLSML), an XML markup based on an early draft from the W3C, is the
default standard for returning results back to the client. Hence,
all servers implementing these resource types MUST support the media
type 'application/nlsml+xml'. The Extensible MultiModal Annotation
(EMMA) \%[W3C.REC-emma-20090210] format can be used to return results
as well. This can be done by negotiating the format at session
establishment time with SDP (a=resultformat:application/emma+xml) or
with SIP (Allow/Accept). With SIP, for example, if a client wants
results in EMMA, an MRCPv2 server can route the request to another
server that supports EMMA by inspecting the SIP header fields, rather
than having to inspect the SDP.
MRCPv2 uses this representation to convey content among the clients
and servers that generate and make use of the markup. MRCPv2 uses
NSLML specifically to convey recognition, enrollment, and
verification results between the corresponding resource on the MRCPv2
server and the MRCPv2 client. Details of this result format are
fully described in Section\06.3.1.
.in 0
.nf
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="http://theYesNoGrammar">
<interpretation>
<instance>
<ex:response>yes</ex:response>
</instance>
<input>OK</input>
</interpretation>
</result>
.fi
.in 3
.ce 1
Result Example
.bp
.in 8
.ti 0
6.3.1. Natural Language Semantics Markup Language
.in 3
The Natural Language Semantics Markup Language (NLSML) is an XML data
structure with elements and attributes designed to carry result
information from recognizer (including enrollment) and verifier
resources. The normative definition of NLSML is the RelaxNG schema
in Section\016.1. Note that the elements and attributes of this
format are defined in the MRCPv2 namespace. In the result structure,
they must either be prefixed by a namespace prefix declared within
the result or must be children of an element identified as belonging
to the respective namespace. For details on how to use XML
Namespaces, see \%[W3C.REC-xml-names11-20040204]. Section\02 of
\%[W3C.REC-xml-names11-20040204] provides details on how to declare
namespaces and namespace prefixes.
The root element of NLSML is <result>. Optional child elements are
<interpretation>, \%<enrollment-result>, and \%<verification-result>, at
least one of which must be present. A single <result> MAY contain
any or all of the optional child elements. Details of the <result>
and <interpretation> elements and their subelements and attributes
can be found in Section\09.6. Details of the \%<enrollment-result>
element and its subelements can be found in Section\09.7. Details of
the \%<verification-result> element and its subelements can be found in
Section\011.5.2.
.in 4
.ti 0
7. Resource Discovery
.in 3
Server resources may be discovered and their capabilities learned by
clients through standard SIP machinery. The client MAY issue a SIP
OPTIONS transaction to a server, which has the effect of requesting
the capabilities of the server. The server MUST respond to such a
request with an \%SDP-encoded description of its capabilities according
to RFC 3264 [RFC3264]. The MRCPv2 capabilities are described by a
single "m=" line containing the media type "application" and
transport type "TCP/TLS/MRCPv2" or "TCP/MRCPv2". There MUST be one
"resource" attribute for each media resource that the server
supports, and it has the resource type identifier as its value.
The SDP description MUST also contain "m=" lines describing the audio
capabilities and the coders the server supports.
In this example, the client uses the SIP OPTIONS method to query the
capabilities of the MRCPv2 server.
.bp
.in 0
.nf
C->S:
OPTIONS sip:mrcp@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf7
Max-Forwards:6
To:<sip:mrcp@example.com>
From:Sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:63104 OPTIONS
Contact:<sip:sarvi@client.example.com>
Accept:application/sdp
Content-Length:0
S->C:
SIP/2.0 200 OK
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bf7;received=192.0.32.10
To:<sip:mrcp@example.com>;tag=62784
From:Sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:63104 OPTIONS
Contact:<sip:mrcp@server.example.com>
Allow:INVITE, ACK, CANCEL, OPTIONS, BYE
Accept:application/sdp
Accept-Encoding:gzip
Accept-Language:en
Supported:foo
Content-Type:application/sdp
Content-Length:...
v=0
o=sarvi 2890844536 2890842811 IN IP4 192.0.2.12
s=-
i=MRCPv2 server capabilities
c=IN IP4 192.0.2.12/127
t=0 0
m=application 0 TCP/TLS/MRCPv2 1
a=resource:speechsynth
a=resource:speechrecog
a=resource:speakverify
m=audio 0 RTP/AVP 0 3
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
.fi
.in 3
.ce 1
Using SIP OPTIONS for MRCPv2 Server Capability Discovery
.bp
.in 4
.ti 0
8. Speech Synthesizer Resource
.in 3
This resource processes text markup provided by the client and
generates a stream of synthesized speech in real time. Depending
upon the server implementation and capability of this resource, the
client can also dictate parameters of the synthesized speech such as
voice characteristics, speaker speed, etc.
The synthesizer resource is controlled by MRCPv2 requests from the
client. Similarly, the resource can respond to these requests or
generate asynchronous events to the client to indicate conditions of
interest to the client during the generation of the synthesized
speech stream.
This section applies for the following resource types:
.in 6
.ti 3
o speechsynth
.ti 3
o basicsynth
.in 3
The capabilities of these resources are defined in Section\03.1.
.in 6
.ti 0
8.1. Synthesizer State Machine
.in 3
The synthesizer maintains a state machine to process MRCPv2 requests
from the client. The state transitions shown below describe the
states of the synthesizer and reflect the state of the request at the
head of the synthesizer resource queue. A SPEAK request in the
PENDING state can be deleted or stopped by a STOP request without
affecting the state of the resource.
.bp
.in 0
.nf
Idle Speaking Paused
State State State
| | |
|----------SPEAK-------->| |--------|
|<------STOP-------------| CONTROL |
|<----SPEAK-COMPLETE-----| |------->|
|<----BARGE-IN-OCCURRED--| |
| |---------| |
| CONTROL |-----------PAUSE--------->|
| |-------->|<----------RESUME---------|
| | |----------|
|----------| | PAUSE |
| BARGE-IN-OCCURRED | |--------->|
|<---------| |----------| |
| | SPEECH-MARKER |
| |<---------| |
|----------| |----------| |
| STOP | RESUME |
| | |<---------| |
|<---------| | |
|<---------------------STOP-------------------------|
|----------| | |
| DEFINE-LEXICON | |
| | | |
|<---------| | |
|<---------------BARGE-IN-OCCURRED------------------|
.fi
.in 3
.ce 1
Synthesizer State Machine
.in 6
.ti 0
8.2. Synthesizer Methods
.in 3
The synthesizer supports the following methods.
.in 0
.nf
synthesizer-method = "SPEAK"
/ "STOP"
/ "PAUSE"
/ "RESUME"
/ "BARGE-IN-OCCURRED"
/ "CONTROL"
/ "DEFINE-LEXICON"
.fi
.in 3
.in 6
.ti 0
8.3. Synthesizer Events
.in 3
The synthesizer can generate the following events.
.in 0
.nf
synthesizer-event = "SPEECH-MARKER"
/ "SPEAK-COMPLETE"
.fi
.in 3
.bp
.in 6
.ti 0
8.4. Synthesizer Header Fields
.in 3
A synthesizer method can contain header fields containing request
options and information to augment the Request, Response, or Event it
is associated with.
.in 0
.nf
synthesizer-header = jump-size
/ kill-on-barge-in
/ speaker-profile
/ completion-cause
/ completion-reason
/ voice-parameter
/ prosody-parameter
/ speech-marker
/ speech-language
/ fetch-hint
/ audio-fetch-hint
/ failed-uri
/ failed-uri-cause
/ speak-restart
/ speak-length
/ load-lexicon
/ lexicon-search-order
.fi
.in 3
.in 8
.ti 0
8.4.1. \%Jump-Size
.in 3
This header field MAY be specified in a CONTROL method and controls
the amount to jump forward or backward in an active SPEAK request. A
\&'+' or \%'-' indicates a relative value to what is being currently
played. This header field MAY also be specified in a SPEAK request
as a desired offset into the synthesized speech. In this case, the
synthesizer MUST begin speaking from this amount of time into the
speech markup. Note that an offset that extends beyond the end of
the produced speech will result in audio of length zero. The
different speech length units supported are dependent on the
synthesizer implementation. If the synthesizer resource does not
support a unit for the operation, the resource MUST respond with a
\%status-code of 409 "Unsupported Header Field Value".
.bp
.in 0
.nf
jump-size = "Jump-Size" ":" speech-length-value CRLF
speech-length-value = numeric-speech-length
/ text-speech-length
text-speech-length = 1*UTFCHAR SP "Tag"
numeric-speech-length = ("+" / "-") positive-speech-length
positive-speech-length = 1*19DIGIT SP numeric-speech-unit
numeric-speech-unit = "Second"
/ "Word"
/ "Sentence"
/ "Paragraph"
.fi
.in 3
.in 8
.ti 0
8.4.2. \%Kill-On-Barge-In
.in 3
This header field MAY be sent as part of the SPEAK method to enable
\%"kill-on-barge-in" support. If enabled, the SPEAK method is
interrupted by DTMF input detected by a signal detector resource or
by the start of speech sensed or recognized by the speech recognizer
resource.
.in 0
.nf
kill-on-barge-in = "Kill-On-Barge-In" ":" BOOLEAN CRLF
.fi
.in 3
The client MUST send a \%BARGE-IN-OCCURRED method to the synthesizer
resource when it receives a \%barge-in-able event from any source.
This source could be a synthesizer resource or signal detector
resource and MAY be either local or distributed. If this header
field is not specified in a SPEAK request or explicitly set by a
\%SET-PARAMS, the default value for this header field is "true".
If the recognizer or signal detector resource is on the same server
as the synthesizer and both are part of the same session, the server
MAY work with both to provide internal notification to the
synthesizer so that audio may be stopped without having to wait for
the client's \%BARGE-IN-OCCURRED event.
It is generally RECOMMENDED when playing a prompt to the user with
\%Kill-On-Barge-In and asking for input, that the client issue the
RECOGNIZE request ahead of the SPEAK request for optimum performance
and user experience. This way, it is guaranteed that the recognizer
is online before the prompt starts playing and the user's speech will
not be truncated at the beginning (especially for power users).
.bp
.in 8
.ti 0
8.4.3. \%Speaker-Profile
.in 3
This header field MAY be part of the \%SET-PARAMS/GET-PARAMS or SPEAK
request from the client to the server and specifies a URI that
references the profile of the speaker. Speaker profiles are
collections of voice parameters like gender, accent, etc.
.in 0
.nf
speaker-profile = "Speaker-Profile" ":" uri CRLF
.fi
.in 3
.in 8
.ti 0
8.4.4. \%Completion-Cause
.in 3
This header field MUST be specified in a \%SPEAK-COMPLETE event coming
from the synthesizer resource to the client. This indicates the
reason the SPEAK request completed.
.in 0
.nf
completion-cause = "Completion-Cause" ":" 3DIGIT SP
1*VCHAR CRLF
.fi
.in 3
.in 0
.nf
+------------+-----------------------+------------------------------+
| Cause-Code | Cause-Name | Description |
+------------+-----------------------+------------------------------+
| 000 | normal | SPEAK completed normally. |
| 001 | barge-in | SPEAK request was terminated |
| | | because of barge-in. |
| 002 | parse-failure | SPEAK request terminated |
| | | because of a failure to |
| | | parse the speech markup |
| | | text. |
| 003 | uri-failure | SPEAK request terminated |
| | | because access to one of the |
| | | URIs failed. |
| 004 | error | SPEAK request terminated |
| | | prematurely due to |
| | | synthesizer error. |
| 005 | language-unsupported | Language not supported. |
| 006 | lexicon-load-failure | Lexicon loading failed. |
| 007 | cancelled | A prior SPEAK request failed |
| | | while this one was still in |
| | | the queue. |
+------------+-----------------------+------------------------------+
.fi
.in 3
.ce 1
Synthesizer Resource Completion Cause Codes
.bp
.in 8
.ti 0
8.4.5. \%Completion-Reason
.in 3
This header field MAY be specified in a \%SPEAK-COMPLETE event coming
from the synthesizer resource to the client. This contains the
reason text behind the SPEAK request completion. This header field
communicates text describing the reason for the failure, such as an
error in parsing the speech markup text.
.in 0
.nf
completion-reason = "Completion-Reason" ":"
quoted-string CRLF
.fi
.in 3
The completion reason text is provided for client use in logs and for
debugging and instrumentation purposes. Clients MUST NOT interpret
the completion reason text.
.in 8
.ti 0
8.4.6. \%Voice-Parameter
.in 3
This set of header fields defines the voice of the speaker.
.in 0
.nf
voice-parameter = voice-gender
/ voice-age
/ voice-variant
/ voice-name
voice-gender = "Voice-Gender:" voice-gender-value CRLF
voice-gender-value = "male"
/ "female"
/ "neutral"
voice-age = "Voice-Age:" 1*3DIGIT CRLF
voice-variant = "Voice-Variant:" 1*19DIGIT CRLF
voice-name = "Voice-Name:"
1*UTFCHAR *(1*WSP 1*UTFCHAR) CRLF
.fi
.in 3
The \%"Voice-" parameters are derived from the similarly named
attributes of the voice element specified in W3C's Speech Synthesis
Markup Language Specification (SSML)
\%[W3C.REC-speech-synthesis-20040907]. Legal values for these
parameters are as defined in that specification.
These header fields MAY be sent in \%SET-PARAMS or \%GET-PARAMS requests
to define or get default values for the entire session or MAY be sent
in the SPEAK request to define default values for that SPEAK request.
Note that SSML content can itself set these values internal to the
SSML document, of course.
.bp
Voice parameter header fields MAY also be sent in a CONTROL method to
affect a SPEAK request in progress and change its behavior on the
fly. If the synthesizer resource does not support this operation, it
MUST reject the request with a \%status-code of 403 "Unsupported Header
Field".
.in 8
.ti 0
8.4.7. \%Prosody-Parameters
.in 3
This set of header fields defines the prosody of the speech.
.in 0
.nf
prosody-parameter = "Prosody-" prosody-param-name ":"
prosody-param-value CRLF
prosody-param-name = 1*VCHAR
prosody-param-value = 1*VCHAR
.fi
.in 3
\%prosody-param-name is any one of the attribute names under the
prosody element specified in W3C's Speech Synthesis Markup Language
Specification \%[W3C.REC-speech-synthesis-20040907]. The \%prosody-
\%param-value is any one of the value choices of the corresponding
prosody element attribute from that specification.
These header fields MAY be sent in \%SET-PARAMS or \%GET-PARAMS requests
to define or get default values for the entire session or MAY be sent
in the SPEAK request to define default values for that SPEAK request.
Furthermore, these attributes can be part of the speech text marked
up in SSML.
The prosody parameter header fields in the \%SET-PARAMS or SPEAK
request only apply if the speech data is of type 'text/plain' and
does not use a speech markup format.
These prosody parameter header fields MAY also be sent in a CONTROL
method to affect a SPEAK request in progress and change its behavior
on the fly. If the synthesizer resource does not support this
operation, it MUST respond back to the client with a \%status-code of
403 "Unsupported Header Field".
.in 8
.ti 0
8.4.8. \%Speech-Marker
.in 3
This header field contains timestamp information in a "timestamp"
field. This is a Network Time Protocol (NTP) [RFC5905] timestamp, a
\%64-bit number in decimal form. It MUST be synced with the \%Real-Time
Protocol (RTP) [RFC3550] timestamp of the media stream through the
\%Real-Time Control Protocol (RTCP) [RFC3550].
.bp
Markers are bookmarks that are defined within the markup. Most
speech markup formats provide mechanisms to embed marker fields
within speech texts. The synthesizer generates \%SPEECH-MARKER events
when it reaches these marker fields. This header field MUST be part
of the \%SPEECH-MARKER event and contain the marker tag value after the
timestamp, separated by a semicolon. In these events, the timestamp
marks the time the text corresponding to the marker was emitted as
speech by the synthesizer.
This header field MUST also be returned in responses to STOP,
CONTROL, and \%BARGE-IN-OCCURRED methods, in the \%SPEAK-COMPLETE event,
and in an \%IN-PROGRESS SPEAK response. In these messages, if any
markers have been encountered for the current SPEAK, the marker tag
value MUST be the last embedded marker encountered. If no markers
have yet been encountered for the current SPEAK, only the timestamp
is REQUIRED. Note that in these events, the purpose of this header
field is to provide timestamp information associated with important
events within the lifecycle of a request (start of SPEAK processing,
end of SPEAK processing, receipt of \%CONTROL/STOP/BARGE-IN-OCCURRED).
.in 0
.nf
timestamp = "timestamp" "=" time-stamp-value
time-stamp-value = 1*20DIGIT
speech-marker = "Speech-Marker" ":"
timestamp
[";" 1*(UTFCHAR / %x20)] CRLF
.fi
.in 3
.in 8
.ti 0
8.4.9. \%Speech-Language
.in 3
This header field specifies the default language of the speech data
if the language is not specified in the markup. The value of this
header field MUST follow RFC 5646 [RFC5646] for its values. The
header field MAY occur in SPEAK, \%SET-PARAMS, or \%GET-PARAMS requests.
.in 0
.nf
speech-language = "Speech-Language" ":" 1*VCHAR CRLF
.fi
.in 3
.in 9
.ti 0
8.4.10. \%Fetch-Hint
.in 3
When the synthesizer needs to fetch documents or other resources like
speech markup or audio files, this header field controls the
corresponding URI access properties. This provides client policy on
when the synthesizer should retrieve content from the server. A
value of "prefetch" indicates the content MAY be downloaded when the
request is received, whereas "safe" indicates that content MUST NOT
be downloaded until actually referenced. The default value is
"prefetch". This header field MAY occur in SPEAK, \%SET-PARAMS, or
\%GET-PARAMS requests.
.bp
.in 0
.nf
fetch-hint = "Fetch-Hint" ":"
("prefetch" / "safe") CRLF
.fi
.in 3
.in 9
.ti 0
8.4.11. \%Audio-Fetch-Hint
.in 3
When the synthesizer needs to fetch documents or other resources like
speech audio files, this header field controls the corresponding URI
access properties. This provides client policy whether or not the
synthesizer is permitted to attempt to optimize speech by \%pre-
fetching audio. The value is either "safe" to say that audio is only
fetched when it is referenced, never before; "prefetch" to permit,
but not require the implementation to \%pre-fetch the audio; or
"stream" to allow it to stream the audio fetches. The default value
is "prefetch". This header field MAY occur in SPEAK, \%SET-PARAMS, or
\%GET-PARAMS requests.
.in 0
.nf
audio-fetch-hint = "Audio-Fetch-Hint" ":"
("prefetch" / "safe" / "stream") CRLF
.fi
.in 3
.in 9
.ti 0
8.4.12. \%Failed-URI
.in 3
When a synthesizer method needs a synthesizer to fetch or access a
URI and the access fails, the server SHOULD provide the failed URI in
this header field in the method response, unless there are multiple
URI failures, in which case the server MUST provide one of the failed
URIs in this header field in the method response.
.in 0
.nf
failed-uri = "Failed-URI" ":" absoluteURI CRLF
.fi
.in 3
.in 9
.ti 0
8.4.13. \%Failed-URI-Cause
.in 3
When a synthesizer method needs a synthesizer to fetch or access a
URI and the access fails, the server MUST provide the \%URI-specific or
\%protocol-specific response code for the URI in the \%Failed-URI header
field in the method response through this header field. The value
encoding is \%UTF-8 (RFC 3629 [RFC3629]) to accommodate any access
protocol \%-- some access protocols might have a response string
instead of a numeric response code.
.in 0
.nf
failed-uri-cause = "Failed-URI-Cause" ":" 1*UTFCHAR CRLF
.fi
.in 3
.in 9
.ti 0
8.4.14. \%Speak-Restart
.in 3
When a client issues a CONTROL request to a currently speaking
synthesizer resource to jump backward, and the target jump point is
before the start of the current SPEAK request, the current SPEAK
request MUST restart from the beginning of its speech data and the
.bp
server's response to the CONTROL request MUST contain this header
field with a value of "true" indicating a restart.
.in 0
.nf
speak-restart = "Speak-Restart" ":" BOOLEAN CRLF
.fi
.in 3
.in 9
.ti 0
8.4.15. \%Speak-Length
.in 3
This header field MAY be specified in a CONTROL method to control the
maximum length of speech to speak, relative to the current speaking
point in the currently active SPEAK request. If numeric, the value
MUST be a positive integer. If a header field with a Tag unit is
specified, then the speech output continues until the tag is reached
or the SPEAK request is completed, whichever comes first. This
header field MAY be specified in a SPEAK request to indicate the
length to speak from the speech data and is relative to the point in
speech that the SPEAK request starts. The different speech length
units supported are synthesizer implementation dependent. If a
server does not support the specified unit, the server MUST respond
with a \%status-code of 409 "Unsupported Header Field Value".
.in 0
.nf
speak-length = "Speak-Length" ":" positive-length-value
CRLF
positive-length-value = positive-speech-length
/ text-speech-length
text-speech-length = 1*UTFCHAR SP "Tag"
positive-speech-length = 1*19DIGIT SP numeric-speech-unit
numeric-speech-unit = "Second"
/ "Word"
/ "Sentence"
/ "Paragraph"
.fi
.in 3
.in 9
.ti 0
8.4.16. \%Load-Lexicon
.in 3
This header field is used to indicate whether a lexicon has to be
loaded or unloaded. The value "true" means to load the lexicon if
not already loaded, and the value "false" means to unload the lexicon
if it is loaded. The default value for this header field is "true".
This header field MAY be specified in a \%DEFINE-LEXICON method.
.in 0
.nf
load-lexicon = "Load-Lexicon" ":" BOOLEAN CRLF
.fi
.in 3
.bp
.in 9
.ti 0
8.4.17. \%Lexicon-Search-Order
.in 3
This header field is used to specify a list of active pronunciation
lexicon URIs and the search order among the active lexicons.
Lexicons specified within the SSML document take precedence over the
lexicons specified in this header field. This header field MAY be
specified in the SPEAK, \%SET-PARAMS, and \%GET-PARAMS methods.
.in 0
.nf
lexicon-search-order = "Lexicon-Search-Order" ":"
"<" absoluteURI ">" *(" " "<" absoluteURI ">") CRLF
.fi
.in 3
.in 6
.ti 0
8.5. Synthesizer Message Body
.in 3
A synthesizer message can contain additional information associated
with the Request, Response, or Event in its message body.
.in 8
.ti 0
8.5.1. Synthesizer Speech Data
.in 3
\%Marked-up text for the synthesizer to speak is specified as a typed
media entity in the message body. The speech data to be spoken by
the synthesizer can be specified inline by embedding the data in the
message body or by reference by providing a URI for accessing the
data. In either case, the data and the format used to markup the
speech needs to be of a content type supported by the server.
All MRCPv2 servers containing synthesizer resources MUST support both
plain text speech data and W3C's Speech Synthesis Markup Language
\%[W3C.REC-speech-synthesis-20040907] and hence MUST support the media
types 'text/plain' and 'application/ssml+xml'. Other formats MAY be
supported.
If the speech data is to be fetched by URI reference, the media type
\%\&'text/uri-list' (see RFC 2483 [RFC2483]) is used to indicate one or
more URIs that, when dereferenced, will contain the content to be
spoken. If a list of speech URIs is specified, the resource MUST
speak the speech data provided by each URI in the order in which the
URIs are specified in the content.
MRCPv2 clients and servers MUST support the 'multipart/mixed' media
type. This is the appropriate media type to use when providing a mix
of URI and inline speech data. Embedded within the multipart content
block, there MAY be content for the \%'text/uri-list', 'application/
ssml+xml', and/or 'text/plain' media types. The character set and
encoding used in the speech data is specified according to standard
media type definitions. The multipart content MAY also contain
actual audio data. Clients may have recorded audio clips stored in
memory or on a local device and wish to play it as part of the SPEAK
request. The audio portions MAY be sent by the client as part of the
.bp
multipart content block. This audio is referenced in the speech
markup data that is another part in the multipart content block
according to the 'multipart/mixed' media type specification.
.in 0
.nf
Content-Type:text/uri-list
Content-Length:...
http://www.example.com/ASR-Introduction.ssml
http://www.example.com/ASR-Document-Part1.ssml
http://www.example.com/ASR-Document-Part2.ssml
http://www.example.com/ASR-Conclusion.ssml
.fi
.in 3
.ce 1
URI List Example
.in 0
.nf
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Aldine Turnbet
and arrived at <break/>
<say-as interpret-as="vxml:time">0345p</say-as>.</s>
<s>The subject is <prosody
rate="-20%">ski trip</prosody></s>
</p>
</speak>
.fi
.in 3
.ce 1
SSML Example
.bp
.in 0
.nf
Content-Type:multipart/mixed; boundary="break"
--break
Content-Type:text/uri-list
Content-Length:...
http://www.example.com/ASR-Introduction.ssml
http://www.example.com/ASR-Document-Part1.ssml
http://www.example.com/ASR-Document-Part2.ssml
http://www.example.com/ASR-Conclusion.ssml
--break
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams
and arrived at <break/>
<say-as interpret-as="vxml:time">0342p</say-as>.</s>
<s>The subject is <prosody
rate="-20%">ski trip</prosody></s>
</p>
</speak>
--break--
.fi
.in 3
.ce 1
Multipart Example
.in 8
.ti 0
8.5.2. Lexicon Data
.in 3
Synthesizer lexicon data from the client to the server can be
provided inline or by reference. Either way, they are carried as
typed media in the message body of the MRCPv2 request message (see
Section\08.14).
When a lexicon is specified inline in the message, the client MUST
provide a \%Content-ID for that lexicon as part of the content header
fields. The server MUST store the lexicon associated with that
\%Content-ID for the duration of the session. A stored lexicon can be
overwritten by defining a new lexicon with the same \%Content-ID.
.bp
Lexicons that have been associated with a \%Content-ID can be
referenced through the 'session' URI scheme (see Section\013.6).
If lexicon data is specified by external URI reference, the media
type \%'text/uri-list' (see RFC 2483 [RFC2483] ) is used to list the
one or more URIs that may be dereferenced to obtain the lexicon data.
All MRCPv2 servers MUST support the "http" and "https" URI access
mechanisms, and MAY support other mechanisms.
If the data in the message body consists of a mix of URI and inline
lexicon data, the 'multipart/mixed' media type is used. The
character set and encoding used in the lexicon data may be specified
according to standard media type definitions.
.in 6
.ti 0
8.6. SPEAK Method
.in 3
The SPEAK request provides the synthesizer resource with the speech
text and initiates speech synthesis and streaming. The SPEAK method
MAY carry voice and prosody header fields that alter the behavior of
the voice being synthesized, as well as a typed media message body
containing the actual \%marked-up text to be spoken.
The SPEAK method implementation MUST do a fetch of all external URIs
that are part of that operation. If caching is implemented, this URI
fetching MUST conform to the \%cache-control hints and parameter header
fields associated with the method in deciding whether it is to be
fetched from cache or from the external server. If these hints/
parameters are not specified in the method, the values set for the
session using \%SET-PARAMS/GET-PARAMS apply. If it was not set for the
session, their default values apply.
When applying voice parameters, there are three levels of precedence.
The highest precedence are those specified within the speech markup
text, followed by those specified in the header fields of the SPEAK
request and hence that apply for that SPEAK request only, followed by
the session default values that can be set using the \%SET-PARAMS
request and apply for subsequent methods invoked during the session.
If the resource was idle at the time the SPEAK request arrived at the
server and the SPEAK method is being actively processed, the resource
responds immediately with a success status code and a \%request-state
of \%IN-PROGRESS.
If the resource is in the speaking or paused state when the SPEAK
method arrives at the server, i.e., it is in the middle of processing
a previous SPEAK request, the status returns success with a \%request-
state of PENDING. The server places the SPEAK request in the
synthesizer resource request queue. The request queue operates
.bp
strictly FIFO: requests are processed serially in order of receipt.
If the current SPEAK fails, all SPEAK methods in the pending queue
are cancelled and each generates a \%SPEAK-COMPLETE event with a
\%Completion-Cause of "cancelled".
For the synthesizer resource, SPEAK is the only method that can
return a \%request-state of \%IN-PROGRESS or PENDING. When the text has
been synthesized and played into the media stream, the resource
issues a \%SPEAK-COMPLETE event with the \%request-id of the SPEAK
request and a \%request-state of COMPLETE.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... SPEAK 543257
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:neutral
Voice-Age:25
Prosody-volume:medium
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams and arrived at
<break/>
<say-as interpret-as="vxml:time">0342p</say-as>.
</s>
<s>The subject is
<prosody rate="-20%">ski trip</prosody>
</s>
</p>
</speak>
S->C: MRCP/2.0 ... 543257 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@speechsynth
Speech-Marker:timestamp=857206027059
S->C: MRCP/2.0 ... SPEAK-COMPLETE 543257 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Completion-Cause:000 normal
Speech-Marker:timestamp=857206027059
.fi
.in 3
.ce 1
SPEAK Example
.in 6
.ti 0
8.7. STOP
.in 3
The STOP method from the client to the server tells the synthesizer
resource to stop speaking if it is speaking something.
The STOP request can be sent with an \%Active-Request-Id-List header
field to stop the zero or more specific SPEAK requests that may be in
queue and return a response \%status-code of 200 "Success". If no
.bp
\%Active-Request-Id-List header field is sent in the STOP request, the
server terminates all outstanding SPEAK requests.
If a STOP request successfully terminated one or more PENDING or
\%IN-PROGRESS SPEAK requests, then the response MUST contain an \%Active-
\%Request-Id-List header field enumerating the SPEAK \%request-ids that
were terminated. Otherwise, there is no \%Active-Request-Id-List
header field in the response. No \%SPEAK-COMPLETE events are sent for
such terminated requests.
If a SPEAK request that was \%IN-PROGRESS and speaking was stopped, the
next pending SPEAK request, if any, becomes \%IN-PROGRESS at the
resource and enters the speaking state.
If a SPEAK request that was \%IN-PROGRESS and paused was stopped, the
next pending SPEAK request, if any, becomes \%IN-PROGRESS and enters
the paused state.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... SPEAK 543258
Channel-Identifier:32AECB23433802@speechsynth
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams and arrived at
<break/>
<say-as interpret-as="vxml:time">0342p</say-as>.</s>
<s>The subject is
<prosody rate="-20%">ski trip</prosody></s>
</p>
</speak>
S->C: MRCP/2.0 ... 543258 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@speechsynth
Speech-Marker:timestamp=857206027059
C->S: MRCP/2.0 ... STOP 543259
Channel-Identifier:32AECB23433802@speechsynth
S->C: MRCP/2.0 ... 543259 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Active-Request-Id-List:543258
Speech-Marker:timestamp=857206039059
.fi
.in 3
.ce 1
STOP Example
.in 6
.ti 0
8.8. \%BARGE-IN-OCCURRED
.in 3
The \%BARGE-IN-OCCURRED method, when used with the synthesizer
resource, provides a client that has detected a \%barge-in-able event a
means to communicate the occurrence of the event to the synthesizer
resource.
This method is useful in two scenarios:
.in 7
.ti 3
1. The client has detected DTMF digits in the input media or some
other \%barge-in-able event and wants to communicate that to the
synthesizer resource.
.bp
.ti 3
2. The recognizer resource and the synthesizer resource are in
different servers. In this case, the client acts as an
intermediary for the two servers. It receives an event from the
recognition resource and sends a \%BARGE-IN-OCCURRED request to the
synthesizer. In such cases, the \%BARGE-IN-OCCURRED method would
also have a \%Proxy-Sync-Id header field received from the resource
generating the original event.
.in 3
If a SPEAK request is active with \%kill-on-barge-in enabled (see
Section\08.4.2), and the \%BARGE-IN-OCCURRED event is received, the
synthesizer MUST immediately stop streaming out audio. It MUST also
terminate any speech requests queued behind the current active one,
irrespective of whether or not they have \%barge-in enabled. If a
\%barge-in-able SPEAK request was playing and it was terminated, the
response MUST contain an \%Active-Request-Id-List header field listing
the \%request-ids of all SPEAK requests that were terminated. The
server generates no \%SPEAK-COMPLETE events for these requests.
If there were no SPEAK requests terminated by the synthesizer
resource as a result of the \%BARGE-IN-OCCURRED method, the server MUST
respond to the \%BARGE-IN-OCCURRED with a \%status-code of 200 "Success",
and the response MUST NOT contain an \%Active-Request-Id-List header
field.
If the synthesizer and recognizer resources are part of the same
MRCPv2 session, they can be optimized for a quicker \%kill-on-barge-in
response if the recognizer and synthesizer interact directly. In
these cases, the client MUST still react to a \%START-OF-INPUT event
from the recognizer by invoking the \%BARGE-IN-OCCURRED method to the
synthesizer. The client MUST invoke the \%BARGE-IN-OCCURRED if it has
any outstanding requests to the synthesizer resource in either the
PENDING or \%IN-PROGRESS state.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... SPEAK 543258
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:neutral
Voice-Age:25
Prosody-volume:medium
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams and arrived at
<break/>
<say-as interpret-as="vxml:time">0342p</say-as>.</s>
<s>The subject is
<prosody rate="-20%">ski trip</prosody></s>
</p>
</speak>
S->C: MRCP/2.0 ... 543258 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@speechsynth
Speech-Marker:timestamp=857206027059
C->S: MRCP/2.0 ... BARGE-IN-OCCURRED 543259
Channel-Identifier:32AECB23433802@speechsynth
Proxy-Sync-Id:987654321
S->C:MRCP/2.0 ... 543259 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Active-Request-Id-List:543258
Speech-Marker:timestamp=857206039059
.fi
.in 3
.ce 1
\%BARGE-IN-OCCURRED Example
.in 6
.ti 0
8.9. PAUSE
.in 3
The PAUSE method from the client to the server tells the synthesizer
resource to pause speech output if it is speaking something. If a
PAUSE method is issued on a session when a SPEAK is not active, the
server MUST respond with a \%status-code of 402 "Method not valid in
this state". If a PAUSE method is issued on a session when a SPEAK
is active and paused, the server MUST respond with a \%status-code of
.bp
200 "Success". If a SPEAK request was active, the server MUST return
an \%Active-Request-Id-List header field whose value contains the
\%request-id of the SPEAK request that was paused.
.in 0
.nf
C->S: MRCP/2.0 ... SPEAK 543258
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:neutral
Voice-Age:25
Prosody-volume:medium
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams and arrived at
<break/>
<say-as interpret-as="vxml:time">0342p</say-as>.</s>
<s>The subject is
<prosody rate="-20%">ski trip</prosody></s>
</p>
</speak>
S->C: MRCP/2.0 ... 543258 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@speechsynth
Speech-Marker:timestamp=857206027059
C->S: MRCP/2.0 ... PAUSE 543259
Channel-Identifier:32AECB23433802@speechsynth
S->C: MRCP/2.0 ... 543259 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Active-Request-Id-List:543258
.fi
.in 3
.ce 1
PAUSE Example
.in 7
.ti 0
8.10. RESUME
.in 3
The RESUME method from the client to the server tells a paused
synthesizer resource to resume speaking. If a RESUME request is
issued on a session with no active SPEAK request, the server MUST
.bp
respond with a \%status-code of 402 "Method not valid in this state".
If a RESUME request is issued on a session with an active SPEAK
request that is speaking (i.e., not paused), the server MUST respond
with a \%status-code of 200 "Success". If a SPEAK request was paused,
the server MUST return an \%Active-Request-Id-List header field whose
value contains the \%request-id of the SPEAK request that was resumed.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... SPEAK 543258
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:neutral
Voice-age:25
Prosody-volume:medium
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams and arrived at
<break/>
<say-as interpret-as="vxml:time">0342p</say-as>.</s>
<s>The subject is
<prosody rate="-20%">ski trip</prosody></s>
</p>
</speak>
S->C: MRCP/2.0 ... 543258 200 IN-PROGRESS@speechsynth
Channel-Identifier:32AECB23433802
Speech-Marker:timestamp=857206027059
C->S: MRCP/2.0 ... PAUSE 543259
Channel-Identifier:32AECB23433802@speechsynth
S->C: MRCP/2.0 ... 543259 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Active-Request-Id-List:543258
C->S: MRCP/2.0 ... RESUME 543260
Channel-Identifier:32AECB23433802@speechsynth
S->C: MRCP/2.0 ... 543260 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Active-Request-Id-List:543258
.fi
.in 3
.ce 1
RESUME Example
.bp
.in 7
.ti 0
8.11. CONTROL
.in 3
The CONTROL method from the client to the server tells a synthesizer
that is speaking to modify what it is speaking on the fly. This
method is used to request the synthesizer to jump forward or backward
in what it is speaking, change speaker rate, speaker parameters, etc.
It affects only the currently \%IN-PROGRESS SPEAK request. Depending
on the implementation and capability of the synthesizer resource, it
may or may not support the various modifications indicated by header
fields in the CONTROL request.
When a client invokes a CONTROL method to jump forward and the
operation goes beyond the end of the active SPEAK method's text, the
CONTROL request still succeeds. The active SPEAK request completes
and returns a \%SPEAK-COMPLETE event following the response to the
CONTROL method. If there are more SPEAK requests in the queue, the
synthesizer resource starts at the beginning of the next SPEAK
request in the queue.
When a client invokes a CONTROL method to jump backward and the
operation jumps to the beginning or beyond the beginning of the
speech data of the active SPEAK method, the CONTROL request still
succeeds. The response to the CONTROL request contains the \%speak-
restart header field, and the active SPEAK request restarts from the
beginning of its speech data.
These two behaviors can be used to rewind or \%fast-forward across
multiple speech requests, if the client wants to break up a speech
markup text into multiple SPEAK requests.
If a SPEAK request was active when the CONTROL method was received,
the server MUST return an \%Active-Request-Id-List header field
containing the \%request-id of the SPEAK request that was active.
.in 0
.nf
C->S: MRCP/2.0 ... SPEAK 543258
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:neutral
Voice-age:25
Prosody-volume:medium
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
.bp
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams
and arrived at <break/>
<say-as interpret-as="vxml:time">0342p</say-as>.</s>
<s>The subject is <prosody
rate="-20%">ski trip</prosody></s>
</p>
</speak>
S->C: MRCP/2.0 ... 543258 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@speechsynth
Speech-Marker:timestamp=857205016059
C->S: MRCP/2.0 ... CONTROL 543259
Channel-Identifier:32AECB23433802@speechsynth
Prosody-rate:fast
S->C: MRCP/2.0 ... 543259 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Active-Request-Id-List:543258
Speech-Marker:timestamp=857206027059
C->S: MRCP/2.0 ... CONTROL 543260
Channel-Identifier:32AECB23433802@speechsynth
Jump-Size:-15 Words
S->C: MRCP/2.0 ... 543260 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Active-Request-Id-List:543258
Speech-Marker:timestamp=857206039059
.fi
.in 3
.ce 1
CONTROL Example
.in 7
.ti 0
8.12. \%SPEAK-COMPLETE
.in 3
This is an Event message from the synthesizer resource to the client
that indicates the corresponding SPEAK request was completed. The
\%request-id field matches the \%request-id of the SPEAK request that
initiated the speech that just completed. The \%request-state field is
set to COMPLETE by the server, indicating that this is the last event
with the corresponding \%request-id. The \%Completion-Cause header field
specifies the cause code pertaining to the status and reason of
request completion, such as the SPEAK completed normally or because
of an error, \%kill-on-barge-in, etc.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... SPEAK 543260
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:neutral
Voice-age:25
Prosody-volume:medium
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams
and arrived at <break/>
<say-as interpret-as="vxml:time">0342p</say-as>.</s>
<s>The subject is
<prosody rate="-20%">ski trip</prosody></s>
</p>
</speak>
S->C: MRCP/2.0 ... 543260 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@speechsynth
Speech-Marker:timestamp=857206027059
S->C: MRCP/2.0 ... SPEAK-COMPLETE 543260 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Completion-Cause:000 normal
Speech-Marker:timestamp=857206039059
.fi
.in 3
.ce 1
\%SPEAK-COMPLETE Example
.in 7
.ti 0
8.13. \%SPEECH-MARKER
.in 3
This is an event generated by the synthesizer resource to the client
when the synthesizer encounters a marker tag in the speech markup it
is currently processing. The value of the \%request-id field MUST
match that of the corresponding SPEAK request. The \%request-state
field MUST have the value \%"IN-PROGRESS" as the speech is still not
complete. The value of the speech marker tag hit, describing where
the synthesizer is in the speech markup, MUST be returned in the
\%Speech-Marker header field, along with an NTP timestamp indicating
the instant in the output speech stream that the marker was
encountered. The \%SPEECH-MARKER event MUST also be generated with a
.bp
null marker value and output NTP timestamp when a SPEAK request in
\%Pending-State (i.e., in the queue) changes state to \%IN-PROGRESS and
starts speaking. The NTP timestamp MUST be synchronized with the RTP
timestamp used to generate the speech stream through standard RTCP
machinery.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... SPEAK 543261
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:neutral
Voice-age:25
Prosody-volume:medium
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams
and arrived at <break/>
<say-as interpret-as="vxml:time">0342p</say-as>.</s>
<mark name="here"/>
<s>The subject is
<prosody rate="-20%">ski trip</prosody>
</s>
<mark name="ANSWER"/>
</p>
</speak>
S->C: MRCP/2.0 ... 543261 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@speechsynth
Speech-Marker:timestamp=857205015059
S->C: MRCP/2.0 ... SPEECH-MARKER 543261 IN-PROGRESS
Channel-Identifier:32AECB23433802@speechsynth
Speech-Marker:timestamp=857206027059;here
S->C: MRCP/2.0 ... SPEECH-MARKER 543261 IN-PROGRESS
Channel-Identifier:32AECB23433802@speechsynth
Speech-Marker:timestamp=857206039059;ANSWER
S->C: MRCP/2.0 ... SPEAK-COMPLETE 543261 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Completion-Cause:000 normal
Speech-Marker:timestamp=857207689259;ANSWER
.fi
.in 3
.ce 1
\%SPEECH-MARKER Example
.bp
.in 7
.ti 0
8.14. \%DEFINE-LEXICON
.in 3
The \%DEFINE-LEXICON method, from the client to the server, provides a
lexicon and tells the server to load or unload the lexicon (see
Section\08.4.16). The media type of the lexicon is provided in the
\%Content-Type header (see Section\08.5.2). One such media type is
"application/pls+xml" for the Pronunciation Lexicon Specification
(PLS) \%[W3C.REC-pronunciation-lexicon-20081014] [RFC4267].
If the server resource is in the speaking or paused state, the server
MUST respond with a failure \%status-code of 402 "Method not valid in
this state".
If the resource is in the idle state and is able to successfully
load/unload the lexicon, the status MUST return a 200 "Success"
\%status-code and the \%request-state MUST be COMPLETE.
If the synthesizer could not define the lexicon for some reason, for
example, because the download failed or the lexicon was in an
unsupported form, the server MUST respond with a failure \%status-code
of 407 and a \%Completion-Cause header field describing the failure
reason.
.in 4
.ti 0
9. Speech Recognizer Resource
.in 3
The speech recognizer resource receives an incoming voice stream and
provides the client with an interpretation of what was spoken in
textual form.
The recognizer resource is controlled by MRCPv2 requests from the
client. The recognizer resource can both respond to these requests
and generate asynchronous events to the client to indicate conditions
of interest during the processing of the method.
This section applies to the following resource types.
.in 7
.ti 3
1. speechrecog
.ti 3
2. dtmfrecog
.in 3
The difference between the above two resources is in their level of
support for recognition grammars. The "dtmfrecog" resource type is
capable of recognizing only DTMF digits and hence accepts only DTMF
grammars. It only generates \%barge-in for DTMF inputs and ignores
speech. The "speechrecog" resource type can recognize regular speech
as well as DTMF digits and hence MUST support grammars describing
either speech or DTMF. This resource generates \%barge-in events for
speech and/or DTMF. By analyzing the grammars that are activated by
.bp
the RECOGNIZE method, it determines if a \%barge-in should occur for
speech and/or DTMF. When the recognizer decides it needs to generate
a \%barge-in, it also generates a \%START-OF-INPUT event to the client.
The recognizer resource MAY support recognition in the normal or
hotword modes or both (although note that a single "speechrecog"
resource does not perform normal and hotword mode recognition
simultaneously). For implementations where a single recognizer
resource does not support both modes, or simultaneous normal and
hotword recognition is desired, the two modes can be invoked through
separate resources allocated to the same SIP dialog (with different
MRCP session identifiers) and share the RTP audio feed.
The capabilities of the recognizer resource are enumerated below:
.in 6
.ti 3
Normal Mode Recognition Normal mode recognition tries to match all
of the speech or DTMF against the grammar and returns a \%no-match
status if the input fails to match or the method times out.
.ti 3
Hotword Mode Recognition Hotword mode is where the recognizer looks
for a match against specific speech grammar or DTMF sequence and
ignores speech or DTMF that does not match. The recognition
completes only if there is a successful match of grammar, if the
client cancels the request, or if there is a \%non-input or
recognition timeout.
.ti 3
Voice Enrolled Grammars A recognizer resource MAY optionally support
Voice Enrolled Grammars. With this functionality, enrollment is
performed using a person's voice. For example, a list of contacts
can be created and maintained by recording the person's names
using the caller's voice. This technique is sometimes also called
\%speaker-dependent recognition.
.ti 3
Interpretation A recognizer resource MAY be employed strictly for
its natural language interpretation capabilities by supplying it
with a text string as input instead of speech. In this mode, the
resource takes text as input and produces an "interpretation" of
the input according to the supplied grammar.
.in 3
Voice enrollment has the concept of an enrollment session. A session
to add a new phrase to a personal grammar involves the initial
enrollment followed by a repeat of enough utterances before
committing the new phrase to the personal grammar. Each time an
utterance is recorded, it is compared for similarity with the other
samples and a clash test is performed against other entries in the
personal grammar to ensure there are no similar and confusable
entries.
.bp
Enrollment is done using a recognizer resource. Controlling which
utterances are to be considered for enrollment of a new phrase is
done by setting a header field (see Section\09.4.39) in the Recognize
request.
Interpretation is accomplished through the INTERPRET method
(Section\09.20) and the \%Interpret-Text header field (Section\09.4.30).
.in 6
.ti 0
9.1. Recognizer State Machine
.in 3
The recognizer resource maintains a state machine to process MRCPv2
requests from the client.
.in 0
.nf
Idle Recognizing Recognized
State State State
| | |
|---------RECOGNIZE---->|---RECOGNITION-COMPLETE-->|
|<------STOP------------|<-----RECOGNIZE-----------|
| | |
| |--------| |-----------|
| START-OF-INPUT | GET-RESULT |
| |------->| |---------->|
|------------| | |
| DEFINE-GRAMMAR |----------| |
|<-----------| | START-INPUT-TIMERS |
| |<---------| |
|------| | |
| INTERPRET | |
|<-----| |------| |
| | RECOGNIZE |
|-------| |<-----| |
| STOP |
|<------| |
|<-------------------STOP--------------------------|
|<-------------------DEFINE-GRAMMAR----------------|
.fi
.in 3
.ce 1
Recognizer State Machine
If a recognizer resource supports voice enrolled grammars, starting
an enrollment session does not change the state of the recognizer
resource. Once an enrollment session is started, then utterances are
enrolled by calling the RECOGNIZE method repeatedly. The state of
the speech recognizer resource goes from IDLE to RECOGNIZING state
each time RECOGNIZE is called.
.bp
.in 6
.ti 0
9.2. Recognizer Methods
.in 3
The recognizer supports the following methods.
.in 0
.nf
recognizer-method = recog-only-method
/ enrollment-method
recog-only-method = "DEFINE-GRAMMAR"
/ "RECOGNIZE"
/ "INTERPRET"
/ "GET-RESULT"
/ "START-INPUT-TIMERS"
/ "STOP"
.fi
.in 3
It is OPTIONAL for a recognizer resource to support voice enrolled
grammars. If the recognizer resource does support voice enrolled
grammars, it MUST support the following methods.
.in 0
.nf
enrollment-method = "START-PHRASE-ENROLLMENT"
/ "ENROLLMENT-ROLLBACK"
/ "END-PHRASE-ENROLLMENT"
/ "MODIFY-PHRASE"
/ "DELETE-PHRASE"
.fi
.in 3
.in 6
.ti 0
9.3. Recognizer Events
.in 3
The recognizer can generate the following events.
.in 0
.nf
recognizer-event = "START-OF-INPUT"
/ "RECOGNITION-COMPLETE"
/ "INTERPRETATION-COMPLETE"
.fi
.in 3
.in 6
.ti 0
9.4. Recognizer Header Fields
.in 3
A recognizer message can contain header fields containing request
options and information to augment the Method, Response, or Event
message it is associated with.
.bp
.in 0
.nf
recognizer-header = recog-only-header
/ enrollment-header
recog-only-header = confidence-threshold
/ sensitivity-level
/ speed-vs-accuracy
/ n-best-list-length
/ no-input-timeout
/ input-type
/ recognition-timeout
/ waveform-uri
/ input-waveform-uri
/ completion-cause
/ completion-reason
/ recognizer-context-block
/ start-input-timers
/ speech-complete-timeout
/ speech-incomplete-timeout
/ dtmf-interdigit-timeout
/ dtmf-term-timeout
/ dtmf-term-char
/ failed-uri
/ failed-uri-cause
/ save-waveform
/ media-type
/ new-audio-channel
/ speech-language
/ ver-buffer-utterance
/ recognition-mode
/ cancel-if-queue
/ hotword-max-duration
/ hotword-min-duration
/ interpret-text
/ dtmf-buffer-time
/ clear-dtmf-buffer
/ early-no-match
.fi
.in 3
If a recognizer resource supports voice enrolled grammars, the
following header fields are also used.
.bp
.in 0
.nf
enrollment-header = num-min-consistent-pronunciations
/ consistency-threshold
/ clash-threshold
/ personal-grammar-uri
/ enroll-utterance
/ phrase-id
/ phrase-nl
/ weight
/ save-best-waveform
/ new-phrase-id
/ confusable-phrases-uri
/ abort-phrase-enrollment
.fi
.in 3
For \%enrollment-specific header fields that can appear as part of
\%SET-PARAMS or \%GET-PARAMS methods, the following general rule applies:
the \%START-PHRASE-ENROLLMENT method MUST be invoked before these
header fields may be set through the \%SET-PARAMS method or retrieved
through the \%GET-PARAMS method.
Note that the \%Waveform-URI header field of the Recognizer resource
can also appear in the response to the \%END-PHRASE-ENROLLMENT method.
.in 8
.ti 0
9.4.1. \%Confidence-Threshold
.in 3
When a recognizer resource recognizes or matches a spoken phrase with
some portion of the grammar, it associates a confidence level with
that match. The \%Confidence-Threshold header field tells the
recognizer resource what confidence level the client considers a
successful match. This is a float value between \%0.0-1.0 indicating
the recognizer's confidence in the recognition. If the recognizer
determines that there is no candidate match with a confidence that is
greater than the confidence threshold, then it MUST return \%no-match
as the recognition result. This header field MAY occur in RECOGNIZE,
\%SET-PARAMS, or \%GET-PARAMS. The default value for this header field
is implementation specific, as is the interpretation of any specific
value for this header field. Although values for servers from
different vendors are not comparable, it is expected that clients
will tune this value over time for a given server.
.in 0
.nf
confidence-threshold = "Confidence-Threshold" ":" FLOAT CRLF
.fi
.in 3
.in 8
.ti 0
9.4.2. \%Sensitivity-Level
.in 3
To filter out background noise and not mistake it for speech, the
recognizer resource supports a variable level of sound sensitivity.
The \%Sensitivity-Level header field is a float value between 0.0 and
1.0 and allows the client to set the sensitivity level for the
recognizer. This header field MAY occur in RECOGNIZE, \%SET-PARAMS, or
.bp
\%GET-PARAMS. A higher value for this header field means higher
sensitivity. The default value for this header field is
implementation specific, as is the interpretation of any specific
value for this header field. Although values for servers from
different vendors are not comparable, it is expected that clients
will tune this value over time for a given server.
.in 0
.nf
sensitivity-level = "Sensitivity-Level" ":" FLOAT CRLF
.fi
.in 3
.in 8
.ti 0
9.4.3. \%Speed-Vs-Accuracy
.in 3
Depending on the implementation and capability of the recognizer
resource it may be tunable towards Performance or Accuracy. Higher
accuracy may mean more processing and higher CPU utilization, meaning
fewer active sessions per server and vice versa. The value is a
float between 0.0 and 1.0. A value of 0.0 means fastest recognition.
A value of 1.0 means best accuracy. This header field MAY occur in
RECOGNIZE, \%SET-PARAMS, or \%GET-PARAMS. The default value for this
header field is implementation specific. Although values for servers
from different vendors are not comparable, it is expected that
clients will tune this value over time for a given server.
.in 0
.nf
speed-vs-accuracy = "Speed-Vs-Accuracy" ":" FLOAT CRLF
.fi
.in 3
.in 8
.ti 0
9.4.4. \%N-Best-List-Length
.in 3
When the recognizer matches an incoming stream with the grammar, it
may come up with more than one alternative match because of
confidence levels in certain words or conversation paths. If this
header field is not specified, by default, the recognizer resource
returns only the best match above the confidence threshold. The
client, by setting this header field, can ask the recognition
resource to send it more than one alternative. All alternatives must
still be above the \%Confidence-Threshold. A value greater than one
does not guarantee that the recognizer will provide the requested
number of alternatives. This header field MAY occur in RECOGNIZE,
\%SET-PARAMS, or \%GET-PARAMS. The minimum value for this header field
is 1. The default value for this header field is 1.
.in 0
.nf
n-best-list-length = "N-Best-List-Length" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 8
.ti 0
9.4.5. \%Input-Type
.in 3
When the recognizer detects \%barge-in-able input and generates a
\%START-OF-INPUT event, that event MUST carry this header field to
specify whether the input that caused the \%barge-in was DTMF or
speech.
.bp
.in 0
.nf
input-type = "Input-Type" ":" inputs CRLF
inputs = "speech" / "dtmf"
.fi
.in 3
.in 8
.ti 0
9.4.6. \%No-Input-Timeout
.in 3
When recognition is started and there is no speech detected for a
certain period of time, the recognizer can send a \%RECOGNITION-
COMPLETE event to the client with a \%Completion-Cause of \%"no-input-
timeout" and terminate the recognition operation. The client can use
the \%No-Input-Timeout header field to set this timeout. The value is
in milliseconds and can range from 0 to an \%implementation-specific
maximum value. This header field MAY occur in RECOGNIZE, \%SET-PARAMS,
or \%GET-PARAMS. The default value is implementation specific.
.in 0
.nf
no-input-timeout = "No-Input-Timeout" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 8
.ti 0
9.4.7. \%Recognition-Timeout
.in 3
When recognition is started and there is no match for a certain
period of time, the recognizer can send a \%RECOGNITION-COMPLETE event
to the client and terminate the recognition operation. The
\%Recognition-Timeout header field allows the client to set this
timeout value. The value is in milliseconds. The value for this
header field ranges from 0 to an \%implementation-specific maximum
value. The default value is 10 seconds. This header field MAY occur
in RECOGNIZE, \%SET-PARAMS, or \%GET-PARAMS.
.in 0
.nf
recognition-timeout = "Recognition-Timeout" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 8
.ti 0
9.4.8. \%Waveform-URI
.in 3
If the \%Save-Waveform header field is set to "true", the recognizer
MUST record the incoming audio stream of the recognition into a
stored form and provide a URI for the client to access it. This
header field MUST be present in the \%RECOGNITION-COMPLETE event if the
\%Save-Waveform header field was set to "true". The value of the
header field MUST be empty if there was some error condition
preventing the server from recording. Otherwise, the URI generated
by the server MUST be unambiguous across the server and all its
recognition sessions. The content associated with the URI MUST be
available to the client until the MRCPv2 session terminates.
Similarly, if the \%Save-Best-Waveform header field is set to "true",
the recognizer MUST save the audio stream for the best repetition of
the phrase that was used during the enrollment session. The
recognizer MUST then record the recognized audio and make it
available to the client by returning a URI in the \%Waveform-URI header
field in the response to the \%END-PHRASE-ENROLLMENT method. The value
.bp
of the header field MUST be empty if there was some error condition
preventing the server from recording. Otherwise, the URI generated
by the server MUST be unambiguous across the server and all its
recognition sessions. The content associated with the URI MUST be
available to the client until the MRCPv2 session terminates. See the
discussion on the sensitivity of saved waveforms in Section\012.
The server MUST also return the size in octets and the duration in
milliseconds of the recorded audio waveform as parameters associated
with the header field.
.in 0
.nf
waveform-uri = "Waveform-URI" ":" ["<" uri ">"
";" "size" "=" 1*19DIGIT
";" "duration" "=" 1*19DIGIT] CRLF
.fi
.in 3
.in 8
.ti 0
9.4.9. \%Media-Type
.in 3
This header field MAY be specified in the \%SET-PARAMS, \%GET-PARAMS, or
the RECOGNIZE methods and tells the server resource the media type in
which to store captured audio or video, such as the one captured and
returned by the \%Waveform-URI header field.
.in 0
.nf
media-type = "Media-Type" ":" media-type-value
CRLF
.fi
.in 3
.in 9
.ti 0
9.4.10. \%Input-Waveform-URI
.in 3
This optional header field specifies a URI pointing to audio content
to be processed by the RECOGNIZE operation. This enables the client
to request recognition from a specified buffer or audio file.
.in 0
.nf
input-waveform-uri = "Input-Waveform-URI" ":" uri CRLF
.fi
.in 3
.in 9
.ti 0
9.4.11. \%Completion-Cause
.in 3
This header field MUST be part of a \%RECOGNITION-COMPLETE event coming
from the recognizer resource to the client. It indicates the reason
behind the RECOGNIZE method completion. This header field MUST be
sent in the \%DEFINE-GRAMMAR and RECOGNIZE responses, if they return
with a failure status and a COMPLETE state. In the ABNF below, the
\%cause-code contains a numerical value selected from the \%Cause-Code
column of the following table. The \%cause-name contains the
corresponding token selected from the \%Cause-Name column.
.in 0
.nf
completion-cause = "Completion-Cause" ":" cause-code SP
cause-name CRLF
cause-code = 3DIGIT
cause-name = *VCHAR
.bp
.fi
.in 3
.in 0
.nf
+--------+-----------------------+----------------------------------+
| Cause- | Cause-Name | Description |
| Code | | |
+--------+-----------------------+----------------------------------+
| 000 | success | RECOGNIZE completed with a match |
| | | or DEFINE-GRAMMAR succeeded in |
| | | downloading and compiling the |
| | | grammar. |
| | | |
| 001 | no-match | RECOGNIZE completed, but no |
| | | match was found. |
| | | |
| 002 | no-input-timeout | RECOGNIZE completed without a |
| | | match due to a no-input-timeout. |
| | | |
| 003 | hotword-maxtime | RECOGNIZE in hotword mode |
| | | completed without a match due to |
| | | a recognition-timeout. |
| | | |
| 004 | grammar-load-failure | RECOGNIZE failed due to grammar |
| | | load failure. |
| | | |
| 005 | grammar-compilation- | RECOGNIZE failed due to grammar |
| | failure | compilation failure. |
| | | |
| 006 | recognizer-error | RECOGNIZE request terminated |
| | | prematurely due to a recognizer |
| | | error. |
| | | |
| 007 | speech-too-early | RECOGNIZE request terminated |
| | | because speech was too early. |
| | | This happens when the audio |
| | | stream is already "in-speech" |
| | | when the RECOGNIZE request was |
| | | received. |
| | | |
| 008 | success-maxtime | RECOGNIZE request terminated |
| | | because speech was too long but |
| | | whatever was spoken till that |
| | | point was a full match. |
| | | |
| 009 | uri-failure | Failure accessing a URI. |
| | | |
| 010 | language-unsupported | Language not supported. |
| | | |
| 011 | cancelled | A new RECOGNIZE cancelled this |
| | | one, or a prior RECOGNIZE failed |
| | | while this one was still in the |
.bp
| | | queue. |
| | | |
| 012 | semantics-failure | Recognition succeeded, but |
| | | semantic interpretation of the |
| | | recognized input failed. The |
| | | RECOGNITION-COMPLETE event MUST |
| | | contain the Recognition result |
| | | with only input text and no |
| | | interpretation. |
| | | |
| 013 | partial-match | Speech Incomplete Timeout |
| | | expired before there was a full |
| | | match. But whatever was spoken |
| | | till that point was a partial |
| | | match to one or more grammars. |
| | | |
| 014 | partial-match-maxtime | The Recognition-Timeout expired |
| | | before full match was achieved. |
| | | But whatever was spoken till |
| | | that point was a partial match |
| | | to one or more grammars. |
| | | |
| 015 | no-match-maxtime | The Recognition-Timeout expired. |
| | | Whatever was spoken till that |
| | | point did not match any of the |
| | | grammars. This cause could also |
| | | be returned if the recognizer |
| | | does not support detecting |
| | | partial grammar matches. |
| | | |
| 016 | grammar-definition- | Any DEFINE-GRAMMAR error other |
| | failure | than grammar-load-failure and |
| | | grammar-compilation-failure. |
+--------+-----------------------+----------------------------------+
.fi
.in 3
.in 9
.ti 0
9.4.12. \%Completion-Reason
.in 3
This header field MAY be specified in a \%RECOGNITION-COMPLETE event
coming from the recognizer resource to the client. This contains the
reason text behind the RECOGNIZE request completion. The server uses
this header field to communicate text describing the reason for the
failure, such as the specific error encountered in parsing a grammar
markup.
The completion reason text is provided for client use in logs and for
debugging and instrumentation purposes. Clients MUST NOT interpret
the completion reason text.
.bp
.in 0
.nf
completion-reason = "Completion-Reason" ":"
quoted-string CRLF
.fi
.in 3
.in 9
.ti 0
9.4.13. \%Recognizer-Context-Block
.in 3
This header field MAY be sent as part of the \%SET-PARAMS or \%GET-PARAMS
request. If the \%GET-PARAMS method contains this header field with no
value, then it is a request to the recognizer to return the
recognizer context block. The response to such a message MAY contain
a recognizer context block as a typed media message body. If the
server returns a recognizer context block, the response MUST contain
this header field and its value MUST match the \%Content-ID of the
corresponding media block.
If the \%SET-PARAMS method contains this header field, it MUST also
contain a message body containing the recognizer context data and a
\%Content-ID matching this header field value. This \%Content-ID MUST
match the \%Content-ID that came with the context data during the
\%GET-PARAMS operation.
An implementation choosing to use this mechanism to hand off
recognizer context data between servers MUST distinguish its
\%implementation-specific block of data by using an \%IANA-registered
content type in the IANA Media Type vendor tree.
.in 0
.nf
recognizer-context-block = "Recognizer-Context-Block" ":"
[1*VCHAR] CRLF
.fi
.in 3
.in 9
.ti 0
9.4.14. \%Start-Input-Timers
.in 3
This header field MAY be sent as part of the RECOGNIZE request. A
value of false tells the recognizer to start recognition but not to
start the \%no-input timer yet. The recognizer MUST NOT start the
timers until the client sends a \%START-INPUT-TIMERS request to the
recognizer. This is useful in the scenario when the recognizer and
synthesizer engines are not part of the same session. In such
configurations, when a \%kill-on-barge-in prompt is being played (see
Section\08.4.2), the client wants the RECOGNIZE request to be
simultaneously active so that it can detect and implement \%kill-on-
\%barge-in. However, the recognizer SHOULD NOT start the \%no-input
timers until the prompt is finished. The default value is "true".
.in 0
.nf
start-input-timers = "Start-Input-Timers" ":" BOOLEAN CRLF
.fi
.in 3
.bp
.in 9
.ti 0
9.4.15. \%Speech-Complete-Timeout
.in 3
This header field specifies the length of silence required following
user speech before the speech recognizer finalizes a result (either
accepting it or generating a \%no-match result). The \%Speech-Complete-
Timeout value applies when the recognizer currently has a complete
match against an active grammar, and specifies how long the
recognizer MUST wait for more input before declaring a match. By
contrast, the \%Speech-Incomplete-Timeout is used when the speech is an
incomplete match to an active grammar. The value is in milliseconds.
.in 0
.nf
speech-complete-timeout = "Speech-Complete-Timeout" ":"
1*19DIGIT CRLF
.fi
.in 3
A long \%Speech-Complete-Timeout value delays the result to the client
and therefore makes the application's response to a user slow. A
short \%Speech-Complete-Timeout may lead to an utterance being broken
up inappropriately. Reasonable speech complete timeout values are
typically in the range of 0.3 seconds to 1.0 seconds. The value for
this header field ranges from 0 to an \%implementation-specific maximum
value. The default value for this header field is implementation
specific. This header field MAY occur in RECOGNIZE, \%SET-PARAMS, or
\%GET-PARAMS.
.in 9
.ti 0
9.4.16. \%Speech-Incomplete-Timeout
.in 3
This header field specifies the required length of silence following
user speech after which a recognizer finalizes a result. The
incomplete timeout applies when the speech prior to the silence is an
incomplete match of all active grammars. In this case, once the
timeout is triggered, the partial result is rejected (with a
\%Completion-Cause of \%"partial-match"). The value is in milliseconds.
The value for this header field ranges from 0 to an \%implementation-
specific maximum value. The default value for this header field is
implementation specific.
.in 0
.nf
speech-incomplete-timeout = "Speech-Incomplete-Timeout" ":" 1*19DIGIT
CRLF
.fi
.in 3
The \%Speech-Incomplete-Timeout also applies when the speech prior to
the silence is a complete match of an active grammar, but where it is
possible to speak further and still match the grammar. By contrast,
the \%Speech-Complete-Timeout is used when the speech is a complete
match to an active grammar and no further spoken words can continue
to represent a match.
A long \%Speech-Incomplete-Timeout value delays the result to the
client and therefore makes the application's response to a user slow.
.bp
A short \%Speech-Incomplete-Timeout may lead to an utterance being
broken up inappropriately.
The \%Speech-Incomplete-Timeout is usually longer than the \%Speech-
\%Complete-Timeout to allow users to pause \%mid-utterance (for example,
to breathe). This header field MAY occur in RECOGNIZE, \%SET-PARAMS,
or \%GET-PARAMS.
.in 9
.ti 0
9.4.17. \%DTMF-Interdigit-Timeout
.in 3
This header field specifies the \%inter-digit timeout value to use when
recognizing DTMF input. The value is in milliseconds. The value for
this header field ranges from 0 to an \%implementation-specific maximum
value. The default value is 5 seconds. This header field MAY occur
in RECOGNIZE, \%SET-PARAMS, or \%GET-PARAMS.
.in 0
.nf
dtmf-interdigit-timeout = "DTMF-Interdigit-Timeout" ":"
1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
9.4.18. \%DTMF-Term-Timeout
.in 3
This header field specifies the terminating timeout to use when
recognizing DTMF input. The \%DTMF-Term-Timeout applies only when no
additional input is allowed by the grammar; otherwise, the
\%DTMF-Interdigit-Timeout applies. The value is in milliseconds. The
value for this header field ranges from 0 to an \%implementation-
specific maximum value. The default value is 10 seconds. This
header field MAY occur in RECOGNIZE, \%SET-PARAMS, or \%GET-PARAMS.
.in 0
.nf
dtmf-term-timeout = "DTMF-Term-Timeout" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
9.4.19. \%DTMF-Term-Char
.in 3
This header field specifies the terminating DTMF character for DTMF
input recognition. The default value is NULL, which is indicated by
an empty header field value. This header field MAY occur in
RECOGNIZE, \%SET-PARAMS, or \%GET-PARAMS.
.in 0
.nf
dtmf-term-char = "DTMF-Term-Char" ":" VCHAR CRLF
.fi
.in 3
.in 9
.ti 0
9.4.20. \%Failed-URI
.in 3
When a recognizer needs to fetch or access a URI and the access
fails, the server SHOULD provide the failed URI in this header field
in the method response, unless there are multiple URI failures, in
which case one of the failed URIs MUST be provided in this header
field in the method response.
.bp
.in 0
.nf
failed-uri = "Failed-URI" ":" absoluteURI CRLF
.fi
.in 3
.in 9
.ti 0
9.4.21. \%Failed-URI-Cause
.in 3
When a recognizer method needs a recognizer to fetch or access a URI
and the access fails, the server MUST provide the \%URI-specific or
\%protocol-specific response code for the URI in the \%Failed-URI header
field through this header field in the method response. The value
encoding is \%UTF-8 (RFC 3629 [RFC3629]) to accommodate any access
protocol, some of which might have a response string instead of a
numeric response code.
.in 0
.nf
failed-uri-cause = "Failed-URI-Cause" ":" 1*UTFCHAR CRLF
.fi
.in 3
.in 9
.ti 0
9.4.22. \%Save-Waveform
.in 3
This header field allows the client to request the recognizer
resource to save the audio input to the recognizer. The recognizer
resource MUST then attempt to record the recognized audio, without
endpointing, and make it available to the client in the form of a URI
returned in the \%Waveform-URI header field in the \%RECOGNITION-COMPLETE
event. If there was an error in recording the stream or the audio
content is otherwise not available, the recognizer MUST return an
empty \%Waveform-URI header field. The default value for this field is
"false". This header field MAY occur in RECOGNIZE, \%SET-PARAMS, or
\%GET-PARAMS. See the discussion on the sensitivity of saved waveforms
in Section\012.
.in 0
.nf
save-waveform = "Save-Waveform" ":" BOOLEAN CRLF
.fi
.in 3
.in 9
.ti 0
9.4.23. \%New-Audio-Channel
.in 3
This header field MAY be specified in a RECOGNIZE request and allows
the client to tell the server that, from this point on, further input
audio comes from a different audio source, channel, or speaker. If
the recognizer resource had collected any input statistics or
adaptation state, the recognizer resource MUST do what is appropriate
for the specific recognition technology, which includes but is not
limited to discarding any collected input statistics or adaptation
state before starting the RECOGNIZE request. Note that if there are
multiple resources that are sharing a media stream and are collecting
or using this data, and the client issues this header field to one of
the resources, the reset operation applies to all resources that use
the shared media stream. This helps in a number of use cases,
including where the client wishes to reuse an open recognition
session with an existing media session for multiple telephone calls.
.bp
.in 0
.nf
new-audio-channel = "New-Audio-Channel" ":" BOOLEAN
CRLF
.fi
.in 3
.in 9
.ti 0
9.4.24. \%Speech-Language
.in 3
This header field specifies the language of recognition grammar data
within a session or request, if it is not specified within the data.
The value of this header field MUST follow RFC 5646 [RFC5646] for its
values. This MAY occur in \%DEFINE-GRAMMAR, RECOGNIZE, \%SET-PARAMS, or
\%GET-PARAMS requests.
.in 0
.nf
speech-language = "Speech-Language" ":" 1*VCHAR CRLF
.fi
.in 3
.in 9
.ti 0
9.4.25. \%Ver-Buffer-Utterance
.in 3
This header field lets the client request the server to buffer the
utterance associated with this recognition request into a buffer
available to a \%co-resident verifier resource. The buffer is shared
across resources within a session and is allocated when a verifier
resource is added to this session. The client MUST NOT send this
header field unless a verifier resource is instantiated for the
session. The buffer is released when the verifier resource is
released from the session.
.in 9
.ti 0
9.4.26. \%Recognition-Mode
.in 3
This header field specifies what mode the RECOGNIZE method will
operate in. The value choices are "normal" or "hotword". If the
value is "normal", the RECOGNIZE starts matching speech and DTMF to
the grammars specified in the RECOGNIZE request. If any portion of
the speech does not match the grammar, the RECOGNIZE command
completes with a \%no-match status. Timers may be active to detect
speech in the audio (see Section\09.4.14), so the RECOGNIZE method may
complete because of a timeout waiting for speech. If the value of
this header field is "hotword", the RECOGNIZE method operates in
hotword mode, where it only looks for the particular keywords or DTMF
sequences specified in the grammar and ignores silence or other
speech in the audio stream. The default value for this header field
is "normal". This header field MAY occur on the RECOGNIZE method.
.in 0
.nf
recognition-mode = "Recognition-Mode" ":"
"normal" / "hotword" CRLF
.fi
.in 3
.bp
.in 9
.ti 0
9.4.27. \%Cancel-If-Queue
.in 3
This header field specifies what will happen if the client attempts
to invoke another RECOGNIZE method when this RECOGNIZE request is
already in progress for the resource. The value for this header
field is a Boolean. A value of "true" means the server MUST
terminate this RECOGNIZE request, with a \%Completion-Cause of
"cancelled", if the client issues another RECOGNIZE request for the
same resource. A value of "false" for this header field indicates to
the server that this RECOGNIZE request will continue to completion,
and if the client issues more RECOGNIZE requests to the same
resource, they are queued. When the currently active RECOGNIZE
request is stopped or completes with a successful match, the first
RECOGNIZE method in the queue becomes active. If the current
RECOGNIZE fails, all RECOGNIZE methods in the pending queue are
cancelled, and each generates a \%RECOGNITION-COMPLETE event with a
\%Completion-Cause of "cancelled". This header field MUST be present
in every RECOGNIZE request. There is no default value.
.in 0
.nf
cancel-if-queue = "Cancel-If-Queue" ":" BOOLEAN CRLF
.fi
.in 3
.in 9
.ti 0
9.4.28. \%Hotword-Max-Duration
.in 3
This header field MAY be sent in a hotword mode RECOGNIZE request.
It specifies the maximum length of an utterance (in seconds) that
will be considered for hotword recognition. This header field, along
with \%Hotword-Min-Duration, can be used to tune performance by
preventing the recognizer from evaluating utterances that are too
short or too long to be one of the hotwords in the grammar(s). The
value is in milliseconds. The default is implementation dependent.
If present in a RECOGNIZE request specifying a mode other than
"hotword", the header field is ignored.
.in 0
.nf
hotword-max-duration = "Hotword-Max-Duration" ":" 1*19DIGIT
CRLF
.fi
.in 3
.in 9
.ti 0
9.4.29. \%Hotword-Min-Duration
.in 3
This header field MAY be sent in a hotword mode RECOGNIZE request.
It specifies the minimum length of an utterance (in seconds) that
will be considered for hotword recognition. This header field, along
with \%Hotword-Max-Duration, can be used to tune performance by
preventing the recognizer from evaluating utterances that are too
short or too long to be one of the hotwords in the grammar(s). The
value is in milliseconds. The default value is implementation
dependent. If present in a RECOGNIZE request specifying a mode other
than "hotword", the header field is ignored.
.bp
.in 0
.nf
hotword-min-duration = "Hotword-Min-Duration" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
9.4.30. \%Interpret-Text
.in 3
The value of this header field is used to provide a pointer to the
text for which a natural language interpretation is desired. The
value is either a URI or text. If the value is a URI, it MUST be a
\%Content-ID that refers to an entity of type 'text/plain' in the body
of the message. Otherwise, the server MUST treat the value as the
text to be interpreted. This header field MUST be used when invoking
the INTERPRET method.
.in 0
.nf
interpret-text = "Interpret-Text" ":" 1*VCHAR CRLF
.fi
.in 3
.in 9
.ti 0
9.4.31. \%DTMF-Buffer-Time
.in 3
This header field MAY be specified in a \%GET-PARAMS or \%SET-PARAMS
method and is used to specify the amount of time, in milliseconds, of
the \%type-ahead buffer for the recognizer. This is the buffer that
collects DTMF digits as they are pressed even when there is no
RECOGNIZE command active. When a subsequent RECOGNIZE method is
received, it MUST look to this buffer to match the RECOGNIZE request.
If the digits in the buffer are not sufficient, then it can continue
to listen to more digits to match the grammar. The default size of
this DTMF buffer is platform specific.
.in 0
.nf
dtmf-buffer-time = "DTMF-Buffer-Time" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
9.4.32. \%Clear-DTMF-Buffer
.in 3
This header field MAY be specified in a RECOGNIZE method and is used
to tell the recognizer to clear the DTMF \%type-ahead buffer before
starting the RECOGNIZE. The default value of this header field is
"false", which does not clear the \%type-ahead buffer before starting
the RECOGNIZE method. If this header field is specified to be
"true", then the RECOGNIZE will clear the DTMF buffer before starting
recognition. This means digits pressed by the caller before the
RECOGNIZE command was issued are discarded.
.in 0
.nf
clear-dtmf-buffer = "Clear-DTMF-Buffer" ":" BOOLEAN CRLF
.fi
.in 3
.in 9
.ti 0
9.4.33. \%Early-No-Match
.in 3
This header field MAY be specified in a RECOGNIZE method and is used
to tell the recognizer that it MUST NOT wait for the end of speech
before processing the collected speech to match active grammars. A
value of "true" indicates the recognizer MUST do early matching. The
default value for this header field if not specified is "false". If
.bp
the recognizer does not support the processing of the collected audio
before the end of speech, this header field can be safely ignored.
.in 0
.nf
early-no-match = "Early-No-Match" ":" BOOLEAN CRLF
.fi
.in 3
.in 9
.ti 0
9.4.34. \%Num-Min-Consistent-Pronunciations
.in 3
This header field MAY be specified in a \%START-PHRASE-ENROLLMENT,
\%SET-PARAMS, or \%GET-PARAMS method and is used to specify the minimum
number of consistent pronunciations that must be obtained to voice
enroll a new phrase. The minimum value is 1. The default value is
implementation specific and MAY be greater than 1.
.in 0
.nf
num-min-consistent-pronunciations =
"Num-Min-Consistent-Pronunciations" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
9.4.35. \%Consistency-Threshold
.in 3
This header field MAY be sent as part of the \%START-PHRASE-ENROLLMENT,
\%SET-PARAMS, or \%GET-PARAMS method. Used during voice enrollment, this
header field specifies how similar to a previously enrolled
pronunciation of the same phrase an utterance needs to be in order to
be considered "consistent". The higher the threshold, the closer the
match between an utterance and previous pronunciations must be for
the pronunciation to be considered consistent. The range for this
threshold is a float value between 0.0 and 1.0. The default value
for this header field is implementation specific.
.in 0
.nf
consistency-threshold = "Consistency-Threshold" ":" FLOAT CRLF
.fi
.in 3
.in 9
.ti 0
9.4.36. \%Clash-Threshold
.in 3
This header field MAY be sent as part of the \%START-PHRASE-ENROLLMENT,
\%SET-PARAMS, or \%GET-PARAMS method. Used during voice enrollment, this
header field specifies how similar the pronunciations of two
different phrases can be before they are considered to be clashing.
For example, pronunciations of phrases such as "John Smith" and "Jon
Smits" may be so similar that they are difficult to distinguish
correctly. A smaller threshold reduces the number of clashes
detected. The range for this threshold is a float value between 0.0
and 1.0. The default value for this header field is implementation
specific. Clash testing can be turned off completely by setting the
\%Clash-Threshold header field value to 0.
.in 0
.nf
clash-threshold = "Clash-Threshold" ":" FLOAT CRLF
.fi
.in 3
.bp
.in 9
.ti 0
9.4.37. \%Personal-Grammar-URI
.in 3
This header field specifies the \%speaker-trained grammar to be used or
referenced during enrollment operations. Phrases are added to this
grammar during enrollment. For example, a contact list for user
"Jeff" could be stored at the \%Personal-Grammar-URI
\%"http://myserver.example.com/myenrollmentdb/jeff-list". The
generated grammar syntax MAY be implementation specific. There is no
default value for this header field. This header field MAY be sent
as part of the \%START-PHRASE-ENROLLMENT, \%SET-PARAMS, or \%GET-PARAMS
method.
.in 0
.nf
personal-grammar-uri = "Personal-Grammar-URI" ":" uri CRLF
.fi
.in 3
.in 9
.ti 0
9.4.38. \%Enroll-Utterance
.in 3
This header field MAY be specified in the RECOGNIZE method. If this
header field is set to "true" and an Enrollment is active, the
RECOGNIZE command MUST add the collected utterance to the personal
grammar that is being enrolled. The way in which this occurs is
engine specific and may be an area of future standardization. The
default value for this header field is "false".
.in 0
.nf
enroll-utterance = "Enroll-Utterance" ":" BOOLEAN CRLF
.fi
.in 3
.in 9
.ti 0
9.4.39. \%Phrase-Id
.in 3
This header field in a request identifies a phrase in an existing
personal grammar for which enrollment is desired. It is also
returned to the client in the RECOGNIZE complete event. This header
field MAY occur in \%START-PHRASE-ENROLLMENT, \%MODIFY-PHRASE, or \%DELETE-
PHRASE requests. There is no default value for this header field.
.in 0
.nf
phrase-id = "Phrase-ID" ":" 1*VCHAR CRLF
.fi
.in 3
.in 9
.ti 0
9.4.40. \%Phrase-NL
.in 3
This string specifies the interpreted text to be returned when the
phrase is recognized. This header field MAY occur in \%START-PHRASE-
ENROLLMENT and \%MODIFY-PHRASE requests. There is no default value for
this header field.
.in 0
.nf
phrase-nl = "Phrase-NL" ":" 1*UTFCHAR CRLF
.fi
.in 3
.bp
.in 9
.ti 0
9.4.41. Weight
.in 3
The value of this header field represents the occurrence likelihood
of a phrase in an enrolled grammar. When using grammar enrollment,
the system is essentially constructing a grammar segment consisting
of a list of possible match phrases. This can be thought of to be
similar to the dynamic construction of a \%<one-of> tag in the W3C
grammar specification. Each \%enrolled-phrase becomes an item in the
list that can be matched against spoken input similar to the <item>
within a \%<one-of> list. This header field allows you to assign a
weight to the phrase (i.e., <item> entry) in the \%<one-of> list that
is enrolled. Grammar weights are normalized to a sum of one at
grammar compilation time, so a weight value of 1 for each phrase in
an enrolled grammar list indicates all items in that list have the
same weight. This header field MAY occur in \%START-PHRASE-ENROLLMENT
and \%MODIFY-PHRASE requests. The default value for this header field
is implementation specific.
.in 0
.nf
weight = "Weight" ":" FLOAT CRLF
.fi
.in 3
.in 9
.ti 0
9.4.42. \%Save-Best-Waveform
.in 3
This header field allows the client to request the recognizer
resource to save the audio stream for the best repetition of the
phrase that was used during the enrollment session. The recognizer
MUST attempt to record the recognized audio and make it available to
the client in the form of a URI returned in the \%Waveform-URI header
field in the response to the \%END-PHRASE-ENROLLMENT method. If there
was an error in recording the stream or the audio data is otherwise
not available, the recognizer MUST return an empty \%Waveform-URI
header field. This header field MAY occur in the \%START-PHRASE-
ENROLLMENT, \%SET-PARAMS, and \%GET-PARAMS methods.
.in 0
.nf
save-best-waveform = "Save-Best-Waveform" ":" BOOLEAN CRLF
.fi
.in 3
.in 9
.ti 0
9.4.43. \%New-Phrase-Id
.in 3
This header field replaces the ID used to identify the phrase in a
personal grammar. The recognizer returns the new ID when using an
enrollment grammar. This header field MAY occur in \%MODIFY-PHRASE
requests.
.in 0
.nf
new-phrase-id = "New-Phrase-ID" ":" 1*VCHAR CRLF
.fi
.in 3
.bp
.in 9
.ti 0
9.4.44. \%Confusable-Phrases-URI
.in 3
This header field specifies a grammar that defines invalid phrases
for enrollment. For example, typical applications do not allow an
enrolled phrase that is also a command word. This header field MAY
occur in RECOGNIZE requests that are part of an enrollment session.
.in 0
.nf
confusable-phrases-uri = "Confusable-Phrases-URI" ":" uri CRLF
.fi
.in 3
.in 9
.ti 0
9.4.45. \%Abort-Phrase-Enrollment
.in 3
This header field MAY be specified in the \%END-PHRASE-ENROLLMENT
method to abort the phrase enrollment, rather than committing the
phrase to the personal grammar.
.in 0
.nf
abort-phrase-enrollment = "Abort-Phrase-Enrollment" ":"
BOOLEAN CRLF
.fi
.in 3
.in 6
.ti 0
9.5. Recognizer Message Body
.in 3
A recognizer message can carry additional data associated with the
request, response, or event. The client MAY provide the grammar to
be recognized in \%DEFINE-GRAMMAR or RECOGNIZE requests. When one or
more grammars are specified using the \%DEFINE-GRAMMAR method, the
server MUST attempt to fetch, compile, and optimize the grammar
before returning a response to the \%DEFINE-GRAMMAR method. A
RECOGNIZE request MUST completely specify the grammars to be active
during the recognition operation, except when the RECOGNIZE method is
being used to enroll a grammar. During grammar enrollment, such
grammars are OPTIONAL. The server resource sends the recognition
results in the \%RECOGNITION-COMPLETE event and the \%GET-RESULT
response. Grammars and recognition results are carried in the
message body of the corresponding MRCPv2 messages.
.in 8
.ti 0
9.5.1. Recognizer Grammar Data
.in 3
Recognizer grammar data from the client to the server can be provided
inline or by reference. Either way, grammar data is carried as typed
media entities in the message body of the RECOGNIZE or \%DEFINE-GRAMMAR
request. All MRCPv2 servers MUST accept grammars in the XML form
(media type 'application/srgs+xml') of the W3C's \%XML-based Speech
Grammar Markup Format (SRGS) \%[W3C.REC-speech-grammar-20040316] and
MAY accept grammars in other formats. Examples include but are not
limited to:
.in 6
.ti 3
o the ABNF form (media type 'application/srgs') of SRGS
.bp
.ti 3
o Sun's Java Speech Grammar Format (JSGF)
[refs.javaSpeechGrammarFormat]
.in 3
Additionally, MRCPv2 servers MAY support the Semantic Interpretation
for Speech Recognition (SISR)
\%[W3C.REC-semantic-interpretation-20070405] specification.
When a grammar is specified inline in the request, the client MUST
provide a \%Content-ID for that grammar as part of the content header
fields. If there is no space on the server to store the inline
grammar, the request MUST return with a \%Completion-Cause code of 016
\%"grammar-definition-failure". Otherwise, the server MUST associate
the inline grammar block with that \%Content-ID and MUST store it on
the server for the duration of the session. However, if the \%Content-
ID is redefined later in the session through a subsequent \%DEFINE-
GRAMMAR, the inline grammar previously associated with the \%Content-ID
MUST be freed. If the \%Content-ID is redefined through a subsequent
\%DEFINE-GRAMMAR with an empty message body (i.e., no grammar
definition), then in addition to freeing any grammar previously
associated with the \%Content-ID, the server MUST clear all bindings
and associations to the \%Content-ID. Unless and until subsequently
redefined, this URI MUST be interpreted by the server as one that has
never been set.
Grammars that have been associated with a \%Content-ID can be
referenced through the 'session' URI scheme (see Section\013.6). For
example:
.in 0
.nf
session:help@root-level.store
.fi
.in 3
Grammar data MAY be specified using external URI references. To do
so, the client uses a body of media type \%'text/uri-list' (see RFC
2483 [RFC2483] ) to list the one or more URIs that point to the
grammar data. The client can use a body of media type \%'text/grammar-
\%ref-list' (see Section\013.5.1) if it wants to assign weights to the
list of grammar URI. All MRCPv2 servers MUST support grammar access
using the 'http' and 'https' URI schemes.
If the grammar data the client wishes to be used on a request
consists of a mix of URI and inline grammar data, the client uses the
\&'multipart/mixed' media type to enclose the \%'text/uri-list',
\&'application/srgs', or 'application/srgs+xml' content entities. The
character set and encoding used in the grammar data are specified
using to standard media type definitions.
When more than one grammar URI or inline grammar block is specified
in a message body of the RECOGNIZE request, the server interprets
this as a list of grammar alternatives to match against.
.bp
.in 0
.nf
Content-Type:application/srgs+xml
Content-ID:<request1@form-level.store>
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0" root="request">
<!-- single language attachment to tokens -->
<rule id="yes">
<one-of>
<item xml:lang="fr-CA">oui</item>
<item xml:lang="en-US">yes</item>
</one-of>
</rule>
<!-- single language attachment to a rule expansion -->
<rule id="request">
may I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
<!-- multiple language attachment to a token -->
<rule id="people1">
<token lexicon="en-US,fr-CA"> Robert </token>
</rule>
<!-- the equivalent single-language attachment expansion -->
<rule id="people2">
<one-of>
<item xml:lang="en-US">Robert</item>
<item xml:lang="fr-CA">Robert</item>
</one-of>
</rule>
</grammar>
.fi
.in 3
.ce 1
SRGS Grammar Example
.bp
.in 0
.nf
Content-Type:text/uri-list
Content-Length:...
session:help@root-level.store
http://www.example.com/Directory-Name-List.grxml
http://www.example.com/Department-List.grxml
http://www.example.com/TAC-Contact-List.grxml
session:menu1@menu-level.store
.fi
.in 3
.ce 1
Grammar Reference Example
.in 0
.nf
Content-Type:multipart/mixed; boundary="break"
--break
Content-Type:text/uri-list
Content-Length:...
http://www.example.com/Directory-Name-List.grxml
http://www.example.com/Department-List.grxml
http://www.example.com/TAC-Contact-List.grxml
--break
Content-Type:application/srgs+xml
Content-ID:<request1@form-level.store>
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0">
<!-- single language attachment to tokens -->
<rule id="yes">
<one-of>
<item xml:lang="fr-CA">oui</item>
<item xml:lang="en-US">yes</item>
</one-of>
</rule>
<!-- single language attachment to a rule expansion -->
<rule id="request">
may I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
.bp
<!-- multiple language attachment to a token -->
<rule id="people1">
<token lexicon="en-US,fr-CA"> Robert </token>
</rule>
<!-- the equivalent single-language attachment expansion -->
<rule id="people2">
<one-of>
<item xml:lang="en-US">Robert</item>
<item xml:lang="fr-CA">Robert</item>
</one-of>
</rule>
</grammar>
--break--
.fi
.in 3
.ce 1
Mixed Grammar Reference Example
.in 8
.ti 0
9.5.2. Recognizer Result Data
.in 3
Recognition results are returned to the client in the message body of
the \%RECOGNITION-COMPLETE event or the \%GET-RESULT response message as
described in Section\06.3. Element and attribute descriptions for the
recognition portion of the NLSML format are provided in Section\09.6
with a normative definition of the schema in Section\016.1.
.in 0
.nf
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="http://www.example.com/theYesNoGrammar">
<interpretation>
<instance>
<ex:response>yes</ex:response>
</instance>
<input>OK</input>
</interpretation>
</result>
.fi
.in 3
.ce 1
Result Example
.in 8
.ti 0
9.5.3. Enrollment Result Data
.in 3
Enrollment results are returned to the client in the message body of
the \%RECOGNITION-COMPLETE event as described in Section\06.3. Element
and attribute descriptions for the enrollment portion of the NLSML
.bp
format are provided in Section\09.7 with a normative definition of the
schema in Section\016.2.
.in 8
.ti 0
9.5.4. Recognizer Context Block
.in 3
When a client changes servers while operating on the behalf of the
same incoming communication session, this header field allows the
client to collect a block of opaque data from one server and provide
it to another server. This capability is desirable if the client
needs different language support or because the server issued a
redirect. Here, the first recognizer resource may have collected
acoustic and other data during its execution of recognition methods.
After a server switch, communicating this data may allow the
recognizer resource on the new server to provide better recognition.
This block of data is implementation specific and MUST be carried as
media type 'application/octets' in the body of the message.
This block of data is communicated in the \%SET-PARAMS and \%GET-PARAMS
method/response messages. In the \%GET-PARAMS method, if an empty
\%Recognizer-Context-Block header field is present, then the recognizer
SHOULD return its \%vendor-specific context block, if any, in the
message body as an entity of media type 'application/octets' with a
specific \%Content-ID. The \%Content-ID value MUST also be specified in
the \%Recognizer-Context-Block header field in the \%GET-PARAMS response.
The \%SET-PARAMS request wishing to provide this \%vendor-specific data
MUST send it in the message body as a typed entity with the same
\%Content-ID that it received from the \%GET-PARAMS. The \%Content-ID MUST
also be sent in the \%Recognizer-Context-Block header field of the
\%SET-PARAMS message.
Each speech recognition implementation choosing to use this mechanism
to hand off recognizer context data among servers MUST distinguish
its \%implementation-specific block of data from other implementations
by choosing a \%Content-ID that is recognizable among the participating
servers and unlikely to collide with values chosen by another
implementation.
.in 6
.ti 0
9.6. Recognizer Results
.in 3
The recognizer portion of NLSML (see Section\06.3.1) represents
information automatically extracted from a user's utterances by a
semantic interpretation component, where "utterance" is to be taken
in the general sense of a meaningful user input in any modality
supported by the MRCPv2 implementation.
.bp
.in 8
.ti 0
9.6.1. Markup Functions
.in 3
MRCPv2 recognizer resources employ the Natural Language Semantics
Markup Language (NLSML) to interpret natural language speech input
and to format the interpretation for consumption by an MRCPv2 client.
The elements of the markup fall into the following general functional
categories: interpretation, side information, and \%multi-modal
integration.
.in 10
.ti 0
9.6.1.1. Interpretation
.in 3
Elements and attributes represent the semantics of a user's
utterance, including the <result>, <interpretation>, and <instance>
elements. The <result> element contains the full result of
processing one utterance. It MAY contain multiple <interpretation>
elements if the interpretation of the utterance results in multiple
alternative meanings due to uncertainty in speech recognition or
natural language understanding. There are at least two reasons for
providing multiple interpretations:
.in 7
.ti 3
1. The client application might have additional information, for
example, information from a database, that would allow it to
select a preferred interpretation from among the possible
interpretations returned from the semantic interpreter.
.ti 3
2. A \%client-based dialog manager (e.g., VoiceXML
\%[W3C.REC-voicexml20-20040316]) that was unable to select between
several competing interpretations could use this information to
go back to the user and find out what was intended. For example,
it could issue a SPEAK request to a synthesizer resource to emit
"Did you say 'Boston' or 'Austin'?"
.in 10
.ti 0
9.6.1.2. Side Information
.in 3
These are elements and attributes representing additional information
about the interpretation, over and above the interpretation itself.
Side information includes:
.in 7
.ti 3
1. Whether an interpretation was achieved (the <nomatch> element)
and the system's confidence in an interpretation (the
"confidence" attribute of <interpretation>).
.ti 3
2. Alternative interpretations (<interpretation>)
.ti 3
3. Input formats and Automatic Speech Recognition (ASR) information:
the <input> element, representing the input to the semantic
interpreter.
.bp
.in 10
.ti 0
9.6.1.3. \%Multi-Modal Integration
.in 3
When more than one modality is available for input, the
interpretation of the inputs needs to be coordinated. The "mode"
attribute of <input> supports this by indicating whether the
utterance was input by speech, DTMF, pointing, etc. The \%"timestamp-
start" and \%"timestamp-end" attributes of <input> also provide for
temporal coordination by indicating when inputs occurred.
.in 8
.ti 0
9.6.2. Overview of Recognizer Result Elements and Their Relationships
.in 3
The recognizer elements in NLSML fall into two categories:
.in 7
.ti 3
1. description of the input that was processed, and
.ti 3
2. description of the meaning which was extracted from the input.
.in 3
Next to each element are its attributes. In addition, some elements
can contain multiple instances of other elements. For example, a
<result> can contain multiple <interpretation> elements, each of
which is taken to be an alternative. Similarly, <input> can contain
multiple child <input> elements, which are taken to be cumulative.
To illustrate the basic usage of these elements, as a simple example,
consider the utterance "OK" (interpreted as "yes"). The example
illustrates how that utterance and its interpretation would be
represented in the NLSML markup.
.in 0
.nf
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="http://www.example.com/theYesNoGrammar">
<interpretation>
<instance>
<ex:response>yes</ex:response>
</instance>
<input>OK</input>
</interpretation>
</result>
.fi
.in 3
This example includes only the minimum required information. There
is an overall <result> element, which includes one interpretation and
an input element. The interpretation contains the \%application-
specific element "<response>", which is the semantically interpreted
result.
.bp
.in 8
.ti 0
9.6.3. Elements and Attributes
.in 10
.ti 0
9.6.3.1. <result> Root Element
.in 3
The root element of the markup is <result>. The <result> element
includes one or more <interpretation> elements. Multiple
interpretations can result from ambiguities in the input or in the
semantic interpretation. If the "grammar" attribute does not apply
to all of the interpretations in the result, it can be overridden for
individual interpretations at the <interpretation> level.
Attributes:
.in 7
.ti 3
1. grammar: The grammar or recognition rule matched by this result.
The format of the grammar attribute will match the rule reference
semantics defined in the grammar specification. Specifically,
the rule reference is in the external XML form for grammar rule
references. The markup interpreter needs to know the grammar
rule that is matched by the utterance because multiple rules may
be simultaneously active. The value is the grammar URI used by
the markup interpreter to specify the grammar. The grammar can
be overridden by a grammar attribute in the <interpretation>
element if the input was ambiguous as to which grammar it
matched. If all interpretation elements within the result
element contain their own grammar attributes, the attribute can
be dropped from the result element.
.in 0
.nf
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
grammar="http://www.example.com/grammar">
<interpretation>
....
</interpretation>
</result>
.fi
.in 3
.in 10
.ti 0
9.6.3.2. <interpretation> Element
.in 3
An <interpretation> element contains a single semantic
interpretation.
Attributes:
.in 7
.ti 3
1. confidence: A float value from \%0.0-1.0 indicating the semantic
analyzer's confidence in this interpretation. A value of 1.0
indicates maximum confidence. The values are implementation
dependent but are intended to align with the value interpretation
for the confidence MRCPv2 header field defined in Section\09.4.1.
This attribute is OPTIONAL.
.bp
.ti 3
2. grammar: The grammar or recognition rule matched by this
interpretation (if needed to override the grammar specification
at the <interpretation> level.) This attribute is only needed
under <interpretation> if it is necessary to override a grammar
that was defined at the <result> level. Note that the grammar
attribute for the interpretation element is optional if and only
if the grammar attribute is specified in the <result> element.
.in 3
Interpretations MUST be sorted \%best-first by some measure of
"goodness". The goodness measure is "confidence" if present;
otherwise, it is some \%implementation-specific indication of quality.
The grammar is expected to be specified most frequently at the
<result> level. However, it can be overridden at the
<interpretation> level because it is possible that different
interpretations may match different grammar rules.
The <interpretation> element includes an optional <input> element
containing the input being analyzed, and at least one <instance>
element containing the interpretation of the utterance.
.in 0
.nf
<interpretation confidence="0.75"
grammar="http://www.example.com/grammar">
...
</interpretation>
.fi
.in 3
.in 10
.ti 0
9.6.3.3. <instance> Element
.in 3
The <instance> element contains the interpretation of the utterance.
When the Semantic Interpretation for Speech Recognition format is
used, the <instance> element contains the XML serialization of the
result using the approach defined in that specification. When there
is semantic markup in the grammar that does not create semantic
objects, but instead only does a semantic translation of a portion of
the input, such as translating "coke" to \%"coca-cola", the instance
contains the whole input but with the translation applied. The NLSML
looks like the markup in Figure\02 below. If there are no semantic
objects created, nor any semantic translation, the instance value is
the same as the input value.
Attributes:
.in 7
.ti 3
1. confidence: Each element of the instance MAY have a confidence
attribute, defined in the NLSML namespace. The confidence
attribute contains a float value in the range from \%0.0-1.0
reflecting the system's confidence in the analysis of that slot.
A value of 1.0 indicates maximum confidence. The values are
implementation dependent, but are intended to align with the
.bp
value interpretation for the MRCPv2 header field \%Confidence-
Threshold defined in Section\09.4.1. This attribute is OPTIONAL.
.in 0
.nf
<instance>
<nameAddress>
<street confidence="0.75">123 Maple Street</street>
<city>Mill Valley</city>
<state>CA</state>
<zip>90952</zip>
</nameAddress>
</instance>
<input>
My address is 123 Maple Street,
Mill Valley, California, 90952
</input>
.fi
.in 3
.in 0
.nf
<instance>
I would like to buy a coca-cola
</instance>
<input>
I would like to buy a coke
</input>
.fi
.in 3
.ce 1
Figure\02: NSLML Example
.in 10
.ti 0
9.6.3.4. <input> Element
.in 3
The <input> element is the text representation of a user's input. It
includes an optional "confidence" attribute, which indicates the
recognizer's confidence in the recognition result (as opposed to the
confidence in the interpretation, which is indicated by the
"confidence" attribute of <interpretation>). Optional \%"timestamp-
start" and \%"timestamp-end" attributes indicate the start and end
times of a spoken utterance, in ISO 8601 format [ISO.8601.1988].
Attributes:
.in 7
.ti 3
1. \%timestamp-start: The time at which the input began. (optional)
.ti 3
2. \%timestamp-end: The time at which the input ended. (optional)
.ti 3
3. mode: The modality of the input, for example, speech, DTMF, etc.
(optional)
.ti 3
4. confidence: The confidence of the recognizer in the correctness
of the input in the range 0.0 to 1.0. (optional)
.bp
.in 3
Note that it may not make sense for temporally overlapping inputs to
have the same mode; however, this constraint is not expected to be
enforced by implementations.
When there is no time zone designator, ISO 8601 time representations
default to local time.
There are three possible formats for the <input> element.
.in 7
.ti 3
1. The <input> element can contain simple text:
.in 0
.nf
<input>onions</input>
.fi
.in 3
.in 7
A future possibility is for <input> to contain not only text but
additional markup that represents prosodic information that was
contained in the original utterance and extracted by the speech
recognizer. This depends on the availability of ASRs that are
capable of producing prosodic information. MRCPv2 clients MUST
be prepared to receive such markup and MAY make use of it.
.ti 3
2. An <input> tag can also contain additional <input> tags. Having
additional input elements allows the representation to support
future \%multi-modal inputs as well as \%finer-grained speech
information, such as timestamps for individual words and \%word-
level confidences.
.in 0
.nf
<input>
<input mode="speech" confidence="0.5"
timestamp-start="2000-04-03T0:00:00"
timestamp-end="2000-04-03T0:00:00.2">fried</input>
<input mode="speech" confidence="1.0"
timestamp-start="2000-04-03T0:00:00.25"
timestamp-end="2000-04-03T0:00:00.6">onions</input>
</input>
.fi
.in 3
.in 7
.ti 3
3. Finally, the <input> element can contain <nomatch> and <noinput>
elements, which describe situations in which the speech
recognizer received input that it was unable to process or did
not receive any input at all, respectively.
.in 10
.ti 0
9.6.3.5. <nomatch> Element
.in 3
The <nomatch> element under <input> is used to indicate that the
semantic interpreter was unable to successfully match any input with
confidence above the threshold. It can optionally contain the text
of the best of the (rejected) matches.
.bp
.in 0
.nf
<interpretation>
<instance/>
<input confidence="0.1">
<nomatch/>
</input>
</interpretation>
<interpretation>
<instance/>
<input mode="speech" confidence="0.1">
<nomatch>I want to go to New York</nomatch>
</input>
</interpretation>
.fi
.in 3
.in 10
.ti 0
9.6.3.6. <noinput> Element
.in 3
<noinput> indicates that there was no input \%-- a timeout occurred in
the speech recognizer due to silence.
.in 0
.nf
<interpretation>
<instance/>
<input>
<noinput/>
</input>
</interpretation>
.fi
.in 3
If there are multiple levels of inputs, the most natural place for
<nomatch> and <noinput> elements to appear is under the highest level
of <input> for <noinput>, and under the appropriate level of
<interpretation> for <nomatch>. So, <noinput> means "no input at
all" and <nomatch> means "no match in speech modality" or "no match
in DTMF modality". For example, to represent garbled speech combined
with DTMF "1 2 3 4", the markup would be:
.in 0
.nf
<input>
<input mode="speech"><nomatch/></input>
<input mode="dtmf">1 2 3 4</input>
</input>
.fi
.in 3
Note: while <noinput> could be represented as an attribute of input,
<nomatch> cannot, since it could potentially include PCDATA content
with the best match. For parallelism, <noinput> is also an element.
.in 6
.ti 0
9.7. Enrollment Results
.in 3
All enrollment elements are contained within a single
\%<enrollment-result> element under <result>. The elements are
described below and have the schema defined in Section\016.2. The
following elements are defined:
.bp
.in 7
.ti 3
1. \%num-clashes
.ti 3
2. \%num-good-repetitions
.ti 3
3. \%num-repetitions-still-needed
.ti 3
4. \%consistency-status
.ti 3
5. \%clash-phrase-ids
.ti 3
6. transcriptions
.ti 3
7. \%confusable-phrases
.in 8
.ti 0
9.7.1. \%<num-clashes> Element
.in 3
The \%<num-clashes> element contains the number of clashes that this
pronunciation has with other pronunciations in an active enrollment
session. The associated \%Clash-Threshold header field determines the
sensitivity of the clash measurement. Note that clash testing can be
turned off completely by setting the \%Clash-Threshold header field
value to 0.
.in 8
.ti 0
9.7.2. \%<num-good-repetitions> Element
.in 3
The \%<num-good-repetitions> element contains the number of consistent
pronunciations obtained so far in an active enrollment session.
.in 8
.ti 0
9.7.3. \%<num-repetitions-still-needed> Element
.in 3
The \%<num-repetitions-still-needed> element contains the number of
consistent pronunciations that must still be obtained before the new
phrase can be added to the enrollment grammar. The number of
consistent pronunciations required is specified by the client in the
request header field \%Num-Min-Consistent-Pronunciations. The returned
value must be 0 before the client can successfully commit a phrase to
the grammar by ending the enrollment session.
.in 8
.ti 0
9.7.4. \%<consistency-status> Element
.in 3
The \%<consistency-status> element is used to indicate how consistent
the repetitions are when learning a new phrase. It can have the
values of consistent, inconsistent, and undecided.
.bp
.in 8
.ti 0
9.7.5. \%<clash-phrase-ids> Element
.in 3
The \%<clash-phrase-ids> element contains the phrase IDs of clashing
pronunciation(s), if any. This element is absent if there are no
clashes.
.in 8
.ti 0
9.7.6. <transcriptions> Element
.in 3
The <transcriptions> element contains the transcriptions returned in
the last repetition of the phrase being enrolled.
.in 8
.ti 0
9.7.7. \%<confusable-phrases> Element
.in 3
The \%<confusable-phrases> element contains a list of phrases from a
command grammar that are confusable with the phrase being added to
the personal grammar. This element MAY be absent if there are no
confusable phrases.
.in 6
.ti 0
9.8. \%DEFINE-GRAMMAR
.in 3
The \%DEFINE-GRAMMAR method, from the client to the server, provides
one or more grammars and requests the server to access, fetch, and
compile the grammars as needed. The \%DEFINE-GRAMMAR method
implementation MUST do a fetch of all external URIs that are part of
that operation. If caching is implemented, this URI fetching MUST
conform to the cache control hints and parameter header fields
associated with the method in deciding whether the URIs should be
fetched from cache or from the external server. If these hints/
parameters are not specified in the method, the values set for the
session using \%SET-PARAMS/GET-PARAMS apply. If it was not set for the
session, their default values apply.
If the server resource is in the recognition state, the \%DEFINE-
GRAMMAR request MUST respond with a failure status.
If the resource is in the idle state and is able to successfully
process the supplied grammars, the server MUST return a success code
status and the \%request-state MUST be COMPLETE.
If the recognizer resource could not define the grammar for some
reason (for example, if the download failed, the grammar failed to
compile, or the grammar was in an unsupported form), the MRCPv2
response for the \%DEFINE-GRAMMAR method MUST contain a failure \%status-
code of 407 and contain a \%Completion-Cause header field describing
the failure reason.
.in 0
.nf
C->S:MRCP/2.0 ... DEFINE-GRAMMAR 543257
Channel-Identifier:32AECB23433801@speechrecog
.bp
Content-Type:application/srgs+xml
Content-ID:<request1@form-level.store>
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0">
<!-- single language attachment to tokens -->
<rule id="yes">
<one-of>
<item xml:lang="fr-CA">oui</item>
<item xml:lang="en-US">yes</item>
</one-of>
</rule>
<!-- single language attachment to a rule expansion -->
<rule id="request">
may I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
</grammar>
S->C:MRCP/2.0 ... 543257 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
C->S:MRCP/2.0 ... DEFINE-GRAMMAR 543258
Channel-Identifier:32AECB23433801@speechrecog
Content-Type:application/srgs+xml
Content-ID:<helpgrammar@root-level.store>
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0">
<rule id="request">
I need help
.bp
</rule>
S->C:MRCP/2.0 ... 543258 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
C->S:MRCP/2.0 ... DEFINE-GRAMMAR 543259
Channel-Identifier:32AECB23433801@speechrecog
Content-Type:application/srgs+xml
Content-ID:<request2@field-level.store>
Content-Length:...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE grammar PUBLIC "-//W3C//DTD GRAMMAR 1.0//EN"
"http://www.w3.org/TR/speech-grammar/grammar.dtd">
<grammar xmlns="http://www.w3.org/2001/06/grammar" xml:lang="en"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/06/grammar
http://www.w3.org/TR/speech-grammar/grammar.xsd"
version="1.0" mode="voice" root="basicCmd">
<meta name="author" content="Stephanie Williams"/>
<rule id="basicCmd" scope="public">
<example> please move the window </example>
<example> open a file </example>
<ruleref
uri="http://grammar.example.com/politeness.grxml#startPolite"/>
<ruleref uri="#command"/>
<ruleref
uri="http://grammar.example.com/politeness.grxml#endPolite"/>
</rule>
<rule id="command">
<ruleref uri="#action"/> <ruleref uri="#object"/>
</rule>
<rule id="action">
<one-of>
<item weight="10"> open <tag>open</tag> </item>
<item weight="2"> close <tag>close</tag> </item>
<item weight="1"> delete <tag>delete</tag> </item>
<item weight="1"> move <tag>move</tag> </item>
</one-of>
.bp
</rule>
<rule id="object">
<item repeat="0-1">
<one-of>
<item> the </item>
<item> a </item>
</one-of>
</item>
<one-of>
<item> window </item>
<item> file </item>
<item> menu </item>
</one-of>
</rule>
</grammar>
S->C:MRCP/2.0 ... 543259 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
C->S:MRCP/2.0 ... RECOGNIZE 543260
Channel-Identifier:32AECB23433801@speechrecog
N-Best-List-Length:2
Content-Type:text/uri-list
Content-Length:...
session:request1@form-level.store
session:request2@field-level.store
session:helpgramar@root-level.store
S->C:MRCP/2.0 ... 543260 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
S->C:MRCP/2.0 ... START-OF-INPUT 543260 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
S->C:MRCP/2.0 ... RECOGNITION-COMPLETE 543260 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
Waveform-URI:<http://web.media.com/session123/audio.wav>;
size=124535;duration=2340
Content-Type:application/x-nlsml
Content-Length:...
.bp
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="session:request1@form-level.store">
<interpretation>
<instance name="Person">
<ex:Person>
<ex:Name> Andre Roy </ex:Name>
</ex:Person>
</instance>
<input> may I speak to Andre Roy </input>
</interpretation>
</result>
.fi
.in 3
.ce 1
Define Grammar Example
.in 6
.ti 0
9.9. RECOGNIZE
.in 3
The RECOGNIZE method from the client to the server requests the
recognizer to start recognition and provides it with one or more
grammar references for grammars to match against the input media.
The RECOGNIZE method can carry header fields to control the
sensitivity, confidence level, and the level of detail in results
provided by the recognizer. These header field values override the
current values set by a previous \%SET-PARAMS method.
The RECOGNIZE method can request the recognizer resource to operate
in normal or hotword mode as specified by the \%Recognition-Mode header
field. The default value is "normal". If the resource could not
start a recognition, the server MUST respond with a failure \%status-
code of 407 and a \%Completion-Cause header field in the response
describing the cause of failure.
The RECOGNIZE request uses the message body to specify the grammars
applicable to the request. The active grammar(s) for the request can
be specified in one of three ways. If the client needs to explicitly
control grammar weights for the recognition operation, it MUST employ
method 3 below. The order of these grammars specifies the precedence
of the grammars that is used when more than one grammar in the list
matches the speech; in this case, the grammar with the higher
precedence is returned as a match. This precedence capability is
useful in applications like VoiceXML browsers to order grammars
specified at the dialog, document, and root level of a VoiceXML
application.
.in 7
.ti 3
1. The grammar MAY be placed directly in the message body as typed
content. If more than one grammar is included in the body, the
order of inclusion controls the corresponding precedence for the
.bp
grammars during recognition, with earlier grammars in the body
having a higher precedence than later ones.
.ti 3
2. The body MAY contain a list of grammar URIs specified in content
of media type \%'text/uri-list' [RFC2483]. The order of the URIs
determines the corresponding precedence for the grammars during
recognition, with highest precedence first and decreasing for
each URI thereafter.
.ti 3
3. The body MAY contain a list of grammar URIs specified in content
of media type \%'text/grammar-ref-list'. This type defines a list
of grammar URIs and allows each grammar URI to be assigned a
weight in the list. This weight has the same meaning as the
weights described in Section\02.4.1 of the Speech Grammar Markup
Format (SRGS) \%[W3C.REC-speech-grammar-20040316].
.in 3
In addition to performing recognition on the input, the recognizer
MUST also enroll the collected utterance in a personal grammar if the
\%Enroll-Utterance header field is set to true and an Enrollment is
active (via an earlier execution of the \%START-PHRASE-ENROLLMENT
method). If so, and if the RECOGNIZE request contains a \%Content-ID
header field, then the resulting grammar (which includes the personal
grammar as a \%sub-grammar) can be referenced through the 'session' URI
scheme (see Section\013.6).
If the resource was able to successfully start the recognition, the
server MUST return a success \%status-code and a \%request-state of
\%IN-PROGRESS. This means that the recognizer is active and that the
client MUST be prepared to receive further events with this \%request-
id.
If the resource was able to queue the request, the server MUST return
a success code and \%request-state of PENDING. This means that the
recognizer is currently active with another request and that this
request has been queued for processing.
If the resource could not start a recognition, the server MUST
respond with a failure \%status-code of 407 and a \%Completion-Cause
header field in the response describing the cause of failure.
For the recognizer resource, RECOGNIZE and INTERPRET are the only
requests that return a \%request-state of \%IN-PROGRESS, meaning that
recognition is in progress. When the recognition completes by
matching one of the grammar alternatives or by a timeout without a
match or for some other reason, the recognizer resource MUST send the
client a \%RECOGNITION-COMPLETE event (or \%INTERPRETATION-COMPLETE, if
INTERPRET was the request) with the result of the recognition and a
\%request-state of COMPLETE.
.bp
Large grammars can take a long time for the server to compile. For
grammars that are used repeatedly, the client can improve server
performance by issuing a \%DEFINE-GRAMMAR request with the grammar
ahead of time. In such a case, the client can issue the RECOGNIZE
request and reference the grammar through the 'session' URI scheme
(see Section\013.6). This also applies in general if the client wants
to repeat recognition with a previous inline grammar.
The RECOGNIZE method implementation MUST do a fetch of all external
URIs that are part of that operation. If caching is implemented,
this URI fetching MUST conform to the cache control hints and
parameter header fields associated with the method in deciding
whether it should be fetched from cache or from the external server.
If these hints/parameters are not specified in the method, the values
set for the session using \%SET-PARAMS/GET-PARAMS apply. If it was not
set for the session, their default values apply.
Note that since the audio and the messages are carried over separate
communication paths there may be a race condition between the start
of the flow of audio and the receipt of the RECOGNIZE method. For
example, if an audio flow is started by the client at the same time
as the RECOGNIZE method is sent, either the audio or the RECOGNIZE
can arrive at the recognizer first. As another example, the client
may choose to continuously send audio to the server and signal the
server to recognize using the RECOGNIZE method. Mechanisms to
resolve this condition are outside the scope of this specification.
The recognizer can expect the media to start flowing when it receives
the RECOGNIZE request, but it MUST NOT buffer anything it receives
beforehand in order to preserve the semantics that application
authors expect with respect to the input timers.
When a RECOGNIZE method has been received, the recognition is
initiated on the stream. The \%No-Input-Timer MUST be started at this
time if the \%Start-Input-Timers header field is specified as "true".
If this header field is set to "false", the \%No-Input-Timer MUST be
started when it receives the \%START-INPUT-TIMERS method from the
client. The \%Recognition-Timeout MUST be started when the recognition
resource detects speech or a DTMF digit in the media stream.
For recognition when not in hotword mode:
When the recognizer resource detects speech or a DTMF digit in the
media stream, it MUST send the \%START-OF-INPUT event. When enough
speech has been collected for the server to process, the recognizer
can try to match the collected speech with the active grammars. If
the speech collected at this point fully matches with any of the
active grammars, the \%Speech-Complete-Timer is started. If it matches
partially with one or more of the active grammars, with more speech
.bp
needed before a full match is achieved, then the \%Speech-Incomplete-
Timer is started.
.in 7
.ti 3
1. When the \%No-Input-Timer expires, the recognizer MUST complete
with a \%Completion-Cause code of \%"no-input-timeout".
.ti 3
2. The recognizer MUST support detecting a \%no-match condition upon
detecting end of speech. The recognizer MAY support detecting a
\%no-match condition before waiting for \%end-of-speech. If this is
supported, this capability is enabled by setting the \%Early-No-
Match header field to "true". Upon detecting a \%no-match
condition, the RECOGNIZE MUST return with \%"no-match".
.ti 3
3. When the \%Speech-Incomplete-Timer expires, the recognizer SHOULD
complete with a \%Completion-Cause code of \%"partial-match", unless
the recognizer cannot differentiate a \%partial-match, in which
case it MUST return a \%Completion-Cause code of \%"no-match". The
recognizer MAY return results for the partially matched grammar.
.ti 3
4. When the \%Speech-Complete-Timer expires, the recognizer MUST
complete with a \%Completion-Cause code of "success".
.ti 3
5. When the \%Recognition-Timeout expires, one of the following MUST
happen:
.in 10
.ti 7
5.1. If there was a \%partial-match, the recognizer SHOULD
complete with a \%Completion-Cause code of \%"partial-match-
maxtime", unless the recognizer cannot differentiate a
\%partial-match, in which case it MUST complete with a
\%Completion-Cause code of \%"no-match-maxtime". The recognizer
MAY return results for the partially matched grammar.
.ti 7
5.2. If there was a \%full-match, the recognizer MUST complete
with a \%Completion-Cause code of \%"success-maxtime".
.ti 7
5.3. If there was a no match, the recognizer MUST complete with
a \%Completion-Cause code of \%"no-match-maxtime".
.in 3
For recognition in hotword mode:
Note that for recognition in hotword mode the \%START-OF-INPUT event is
not generated when speech or a DTMF digit is detected.
.in 7
.ti 3
1. When the \%No-Input-Timer expires, the recognizer MUST complete
with a \%Completion-Cause code of \%"no-input-timeout".
.ti 3
2. If at any point a match occurs, the RECOGNIZE MUST complete with
a \%Completion-Cause code of "success".
.bp
.ti 3
3. When the \%Recognition-Timeout expires and there is not a match,
the RECOGNIZE MUST complete with a \%Completion-Cause code of
\%"hotword-maxtime".
.ti 3
4. When the \%Recognition-Timeout expires and there is a match, the
RECOGNIZE MUST complete with a \%Completion-Cause code of \%"success-
maxtime".
.ti 3
5. When the \%Recognition-Timeout is running but the detected speech/
DTMF has not resulted in a match, the \%Recognition-Timeout MUST be
stopped and reset. It MUST then be restarted when speech/DTMF is
again detected.
.in 3
Below is a complete example of using RECOGNIZE. It shows the call to
RECOGNIZE, the \%IN-PROGRESS and \%START-OF-INPUT status messages, and
the final \%RECOGNITION-COMPLETE message containing the result.
.in 0
.nf
C->S:MRCP/2.0 ... RECOGNIZE 543257
Channel-Identifier:32AECB23433801@speechrecog
Confidence-Threshold:0.9
Content-Type:application/srgs+xml
Content-ID:<request1@form-level.store>
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0" root="request">
<!-- single language attachment to tokens -->
<rule id="yes">
<one-of>
<item xml:lang="fr-CA">oui</item>
<item xml:lang="en-US">yes</item>
</one-of>
</rule>
<!-- single language attachment to a rule expansion -->
<rule id="request">
may I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
</grammar>
.bp
S->C: MRCP/2.0 ... 543257 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
S->C:MRCP/2.0 ... START-OF-INPUT 543257 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
S->C:MRCP/2.0 ... RECOGNITION-COMPLETE 543257 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
Waveform-URI:<http://web.media.com/session123/audio.wav>;
size=424252;duration=2543
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="session:request1@form-level.store">
<interpretation>
<instance name="Person">
<ex:Person>
<ex:Name> Andre Roy </ex:Name>
</ex:Person>
</instance>
<input> may I speak to Andre Roy </input>
</interpretation>
</result>
.fi
.in 3
Below is an example of calling RECOGNIZE with a different grammar.
No status or completion messages are shown in this example, although
they would of course occur in normal usage.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... RECOGNIZE 543257
Channel-Identifier:32AECB23433801@speechrecog
Confidence-Threshold:0.9
Fetch-Timeout:20
Content-Type:application/srgs+xml
Content-Length:...
<?xml version="1.0"? Version="1.0" mode="voice"
root="Basic md">
<rule id="rule_list" scope="public">
<one-of>
<item weight=10>
<ruleref uri=
"http://grammar.example.com/world-cities.grxml#canada"/>
</item>
<item weight=1.5>
<ruleref uri=
"http://grammar.example.com/world-cities.grxml#america"/>
</item>
<item weight=0.5>
<ruleref uri=
"http://grammar.example.com/world-cities.grxml#india"/>
</item>
</one-of>
</rule>
.fi
.in 3
.in 7
.ti 0
9.10. STOP
.in 3
The STOP method from the client to the server tells the resource to
stop recognition if a request is active. If a RECOGNIZE request is
active and the STOP request successfully terminated it, then the
response header section contains an \%Active-Request-Id-List header
field containing the \%request-id of the RECOGNIZE request that was
terminated. In this case, no \%RECOGNITION-COMPLETE event is sent for
the terminated request. If there was no recognition active, then the
response MUST NOT contain an \%Active-Request-Id-List header field.
Either way, the response MUST contain a \%status-code of 200 "Success".
.bp
.in 0
.nf
C->S: MRCP/2.0 ... RECOGNIZE 543257
Channel-Identifier:32AECB23433801@speechrecog
Confidence-Threshold:0.9
Content-Type:application/srgs+xml
Content-ID:<request1@form-level.store>
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0" root="request">
<!-- single language attachment to tokens -->
<rule id="yes">
<one-of>
<item xml:lang="fr-CA">oui</item>
<item xml:lang="en-US">yes</item>
</one-of>
</rule>
<!-- single language attachment to a rule expansion -->
<rule id="request">
may I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
</grammar>
S->C: MRCP/2.0 ... 543257 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
C->S: MRCP/2.0 ... STOP 543258 200
Channel-Identifier:32AECB23433801@speechrecog
S->C: MRCP/2.0 ... 543258 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Active-Request-Id-List:543257
.fi
.in 3
.in 7
.ti 0
9.11. \%GET-RESULT
.in 3
The \%GET-RESULT method from the client to the server MAY be issued
when the recognizer resource is in the recognized state. This
request allows the client to retrieve results for a completed
recognition. This is useful if the client decides it wants more
alternatives or more information. When the server receives this
.bp
request, it \%re-computes and returns the results according to the
recognition constraints provided in the \%GET-RESULT request.
The \%GET-RESULT request can specify constraints such as a different
\%confidence-threshold or \%n-best-list-length. This capability is
OPTIONAL for MRCPv2 servers and the automatic speech recognition
engine in the server MUST return a status of unsupported feature if
not supported.
.in 0
.nf
C->S: MRCP/2.0 ... GET-RESULT 543257
Channel-Identifier:32AECB23433801@speechrecog
Confidence-Threshold:0.9
S->C: MRCP/2.0 ... 543257 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="session:request1@form-level.store">
<interpretation>
<instance name="Person">
<ex:Person>
<ex:Name> Andre Roy </ex:Name>
</ex:Person>
</instance>
<input> may I speak to Andre Roy </input>
</interpretation>
</result>
.fi
.in 3
.in 7
.ti 0
9.12. \%START-OF-INPUT
.in 3
This is an event from the server to the client indicating that the
recognizer resource has detected speech or a DTMF digit in the media
stream. This event is useful in implementing \%kill-on-barge-in
scenarios when a synthesizer resource is in a different session from
the recognizer resource and hence is not aware of an incoming audio
source (see Section\08.4.2). In these cases, it is up to the client
to act as an intermediary and respond to this event by issuing a
\%BARGE-IN-OCCURRED event to the synthesizer resource. The recognizer
resource also MUST send a \%Proxy-Sync-Id header field with a unique
value for this event.
This event MUST be generated by the server, irrespective of whether
or not the synthesizer and recognizer are on the same server.
.bp
.in 7
.ti 0
9.13. \%START-INPUT-TIMERS
.in 3
This request is sent from the client to the recognizer resource when
it knows that a \%kill-on-barge-in prompt has finished playing (see
Section\08.4.2). This is useful in the scenario when the recognition
and synthesizer engines are not in the same session. When a \%kill-on-
\%barge-in prompt is being played, the client may want a RECOGNIZE
request to be simultaneously active so that it can detect and
implement \%kill-on-barge-in. But at the same time the client doesn't
want the recognizer to start the \%no-input timers until the prompt is
finished. The \%Start-Input-Timers header field in the RECOGNIZE
request allows the client to say whether or not the timers should be
started immediately. If not, the recognizer resource MUST NOT start
the timers until the client sends a \%START-INPUT-TIMERS method to the
recognizer.
.in 7
.ti 0
9.14. \%RECOGNITION-COMPLETE
.in 3
This is an event from the recognizer resource to the client
indicating that the recognition completed. The recognition result is
sent in the body of the MRCPv2 message. The \%request-state field MUST
be COMPLETE indicating that this is the last event with that \%request-
id and that the request with that \%request-id is now complete. The
server MUST maintain the recognizer context containing the results
and the audio waveform input of that recognition until the next
RECOGNIZE request is issued for that resource or the session
terminates. If the server returns a URI to the audio waveform, it
MUST do so in a \%Waveform-URI header field in the \%RECOGNITION-COMPLETE
event. The client can use this URI to retrieve or playback the
audio.
Note, if an enrollment session was active, the \%RECOGNITION-COMPLETE
event can contain either recognition or enrollment results depending
on what was spoken. The following example shows a complete exchange
with a recognition result.
.in 0
.nf
C->S: MRCP/2.0 ... RECOGNIZE 543257
Channel-Identifier:32AECB23433801@speechrecog
Confidence-Threshold:0.9
Content-Type:application/srgs+xml
Content-ID:<request1@form-level.store>
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0" root="request">
.bp
<!-- single language attachment to tokens -->
<rule id="yes">
<one-of>
<item xml:lang="fr-CA">oui</item>
<item xml:lang="en-US">yes</item>
</one-of>
</rule>
<!-- single language attachment to a rule expansion -->
<rule id="request">
may I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
</grammar>
S->C: MRCP/2.0 ... 543257 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
S->C: MRCP/2.0 ... START-OF-INPUT 543257 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
S->C: MRCP/2.0 ... RECOGNITION-COMPLETE 543257 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
Waveform-URI:<http://web.media.com/session123/audio.wav>;
size=342456;duration=25435
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="session:request1@form-level.store">
<interpretation>
<instance name="Person">
<ex:Person>
<ex:Name> Andre Roy </ex:Name>
</ex:Person>
</instance>
<input> may I speak to Andre Roy </input>
</interpretation>
</result>
.fi
.in 3
If the result were instead an enrollment result, the final message
from the server above could have been:
.bp
.in 0
.nf
S->C: MRCP/2.0 ... RECOGNITION-COMPLETE 543257 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version= "1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
grammar="Personal-Grammar-URI">
<enrollment-result>
<num-clashes> 2 </num-clashes>
<num-good-repetitions> 1 </num-good-repetitions>
<num-repetitions-still-needed>
1
</num-repetitions-still-needed>
<consistency-status> consistent </consistency-status>
<clash-phrase-ids>
<item> Jeff </item> <item> Andre </item>
</clash-phrase-ids>
<transcriptions>
<item> m ay b r ow k er </item>
<item> m ax r aa k ah </item>
</transcriptions>
<confusable-phrases>
<item>
<phrase> call </phrase>
<confusion-level> 10 </confusion-level>
</item>
</confusable-phrases>
</enrollment-result>
</result>
.fi
.in 3
.in 7
.ti 0
9.15. \%START-PHRASE-ENROLLMENT
.in 3
The \%START-PHRASE-ENROLLMENT method from the client to the server
starts a new phrase enrollment session during which the client can
call RECOGNIZE multiple times to enroll a new utterance in a grammar.
An enrollment session consists of a set of calls to RECOGNIZE in
which the caller speaks a phrase several times so the system can
"learn" it. The phrase is then added to a personal grammar \%(speaker-
trained grammar), so that the system can recognize it later.
Only one phrase enrollment session can be active at a time for a
resource. The \%Personal-Grammar-URI identifies the grammar that is
used during enrollment to store the personal list of phrases. Once
RECOGNIZE is called, the result is returned in a \%RECOGNITION-COMPLETE
event and will contain either an enrollment result OR a recognition
result for a regular recognition.
.bp
Calling \%END-PHRASE-ENROLLMENT ends the ongoing phrase enrollment
session, which is typically done after a sequence of successful calls
to RECOGNIZE. This method can be called to commit the new phrase to
the personal grammar or to abort the phrase enrollment session.
The grammar to contain the new enrolled phrase, specified by
\%Personal-Grammar-URI, is created if it does not exist. Also, the
personal grammar MUST ONLY contain phrases added via a phrase
enrollment session.
The \%Phrase-ID passed to this method is used to identify this phrase
in the grammar and will be returned as the speech input when doing a
RECOGNIZE on the grammar. The \%Phrase-NL similarly is returned in a
\%RECOGNITION-COMPLETE event in the same manner as other Natural
Language (NL) in a grammar. The \%tag-format of this NL is
implementation specific.
If the client has specified \%Save-Best-Waveform as true, then the
response after ending the phrase enrollment session MUST contain the
location/URI of a recording of the best repetition of the learned
phrase.
.in 0
.nf
C->S: MRCP/2.0 ... START-PHRASE-ENROLLMENT 543258
Channel-Identifier:32AECB23433801@speechrecog
Num-Min-Consistent-Pronunciations:2
Consistency-Threshold:30
Clash-Threshold:12
Personal-Grammar-URI:<personal grammar uri>
Phrase-Id:<phrase id>
Phrase-NL:<NL phrase>
Weight:1
Save-Best-Waveform:true
S->C: MRCP/2.0 ... 543258 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
.fi
.in 3
.in 7
.ti 0
9.16. \%ENROLLMENT-ROLLBACK
.in 3
The \%ENROLLMENT-ROLLBACK method discards the last live utterance from
the RECOGNIZE operation. The client can invoke this method when the
caller provides undesirable input such as \%non-speech noises, \%side-
speech, commands, utterance from the RECOGNIZE grammar, etc. Note
that this method does not provide a stack of rollback states.
Executing \%ENROLLMENT-ROLLBACK twice in succession without an
intervening recognition operation has no effect the second time.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... ENROLLMENT-ROLLBACK 543261
Channel-Identifier:32AECB23433801@speechrecog
S->C: MRCP/2.0 ... 543261 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
.fi
.in 3
.in 7
.ti 0
9.17. \%END-PHRASE-ENROLLMENT
.in 3
The client MAY call the \%END-PHRASE-ENROLLMENT method ONLY during an
active phrase enrollment session. It MUST NOT be called during an
ongoing RECOGNIZE operation. To commit the new phrase in the
grammar, the client MAY call this method once successive calls to
RECOGNIZE have succeeded and \%Num-Repetitions-Still-Needed has been
returned as 0 in the \%RECOGNITION-COMPLETE event. Alternatively, the
client MAY abort the phrase enrollment session by calling this method
with the \%Abort-Phrase-Enrollment header field.
If the client has specified \%Save-Best-Waveform as "true" in the
\%START-PHRASE-ENROLLMENT request, then the response MUST contain a
\%Waveform-URI header whose value is the location/URI of a recording of
the best repetition of the learned phrase.
.in 0
.nf
C->S: MRCP/2.0 ... END-PHRASE-ENROLLMENT 543262
Channel-Identifier:32AECB23433801@speechrecog
S->C: MRCP/2.0 ... 543262 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Waveform-URI:<http://mediaserver.com/recordings/file1324.wav>
;size=242453;duration=25432
.fi
.in 3
.in 7
.ti 0
9.18. \%MODIFY-PHRASE
.in 3
The \%MODIFY-PHRASE method sent from the client to the server is used
to change the phrase ID, NL phrase, and/or weight for a given phrase
in a personal grammar.
If no fields are supplied, then calling this method has no effect.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... MODIFY-PHRASE 543265
Channel-Identifier:32AECB23433801@speechrecog
Personal-Grammar-URI:<personal grammar uri>
Phrase-Id:<phrase id>
New-Phrase-Id:<new phrase id>
Phrase-NL:<NL phrase>
Weight:1
S->C: MRCP/2.0 ... 543265 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
.fi
.in 3
.in 7
.ti 0
9.19. \%DELETE-PHRASE
.in 3
The \%DELETE-PHRASE method sent from the client to the server is used
to delete a phase that is in a personal grammar and was added through
voice enrollment or text enrollment. If the specified phrase does
not exist, this method has no effect.
.in 0
.nf
C->S: MRCP/2.0 ... DELETE-PHRASE 543266
Channel-Identifier:32AECB23433801@speechrecog
Personal-Grammar-URI:<personal grammar uri>
Phrase-Id:<phrase id>
S->C: MRCP/2.0 ... 543266 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
.fi
.in 3
.in 7
.ti 0
9.20. INTERPRET
.in 3
The INTERPRET method from the client to the server takes as input an
\%Interpret-Text header field containing the text for which the
semantic interpretation is desired, and returns, via the
\%INTERPRETATION-COMPLETE event, an interpretation result that is very
similar to the one returned from a RECOGNIZE method invocation. Only
portions of the result relevant to acoustic matching are excluded
from the result. The \%Interpret-Text header field MUST be included in
the INTERPRET request.
Recognizer grammar data is treated in the same way as it is when
issuing a RECOGNIZE method call.
If a RECOGNIZE, RECORD, or another INTERPRET operation is already in
progress for the resource, the server MUST reject the request with a
response having a \%status-code of 402 "Method not valid in this
state", and a COMPLETE request state.
.in 0
.nf
C->S: MRCP/2.0 ... INTERPRET 543266
Channel-Identifier:32AECB23433801@speechrecog
Interpret-Text:may I speak to Andre Roy
.bp
Content-Type:application/srgs+xml
Content-ID:<request1@form-level.store>
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0" root="request">
<!-- single language attachment to tokens -->
<rule id="yes">
<one-of>
<item xml:lang="fr-CA">oui</item>
<item xml:lang="en-US">yes</item>
</one-of>
</rule>
<!-- single language attachment to a rule expansion -->
<rule id="request">
may I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
</grammar>
S->C: MRCP/2.0 ... 543266 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
S->C: MRCP/2.0 ... INTERPRETATION-COMPLETE 543266 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="session:request1@form-level.store">
<interpretation>
<instance name="Person">
<ex:Person>
<ex:Name> Andre Roy </ex:Name>
</ex:Person>
</instance>
<input> may I speak to Andre Roy </input>
</interpretation>
</result>
.bp
.fi
.in 3
.in 7
.ti 0
9.21. \%INTERPRETATION-COMPLETE
.in 3
This event from the recognizer resource to the client indicates that
the INTERPRET operation is complete. The interpretation result is
sent in the body of the MRCP message. The request state MUST be set
to COMPLETE.
The \%Completion-Cause header field MUST be included in this event and
MUST be set to an appropriate value from the list of cause codes.
.in 0
.nf
C->S: MRCP/2.0 ... INTERPRET 543266
Channel-Identifier:32AECB23433801@speechrecog
Interpret-Text:may I speak to Andre Roy
Content-Type:application/srgs+xml
Content-ID:<request1@form-level.store>
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0" root="request">
<!-- single language attachment to tokens -->
<rule id="yes">
<one-of>
<item xml:lang="fr-CA">oui</item>
<item xml:lang="en-US">yes</item>
</one-of>
</rule>
<!-- single language attachment to a rule expansion -->
<rule id="request">
may I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
</grammar>
S->C: MRCP/2.0 ... 543266 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
S->C: MRCP/2.0 ... INTERPRETATION-COMPLETE 543266 200 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
Content-Type:application/nlsml+xml
Content-Length:...
.bp
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="session:request1@form-level.store">
<interpretation>
<instance name="Person">
<ex:Person>
<ex:Name> Andre Roy </ex:Name>
</ex:Person>
</instance>
<input> may I speak to Andre Roy </input>
</interpretation>
</result>
.fi
.in 3
.in 7
.ti 0
9.22. DTMF Detection
.in 3
Digits received as DTMF tones are delivered to the recognition
resource in the MRCPv2 server in the RTP stream according to RFC 4733
[RFC4733]. The Automatic Speech Recognizer (ASR) MUST support RFC
4733 to recognize digits, and it MAY support recognizing DTMF tones
[Q.23] in the audio.
.in 5
.ti 0
10. Recorder Resource
.in 3
This resource captures received audio and video and stores it as
content pointed to by a URI. The main usages of recorders are
.in 7
.ti 3
1. to capture speech audio that may be submitted for recognition at
a later time, and
.ti 3
2. recording voice or video mails.
.in 3
Both these applications require functionality above and beyond those
specified by protocols such as RTSP [RFC2326]. This includes audio
endpointing (i.e., detecting speech or silence). The support for
video is OPTIONAL and is mainly capturing video mails that may
require the speech or audio processing mentioned above.
A recorder MUST provide endpointing capabilities for suppressing
silence at the beginning and end of a recording, and it MAY also
suppress silence in the middle of a recording. If such suppression
is done, the recorder MUST maintain timing metadata to indicate the
actual time stamps of the recorded media.
See the discussion on the sensitivity of saved waveforms in
Section\012.
.bp
.in 7
.ti 0
10.1. Recorder State Machine
.in 0
.nf
Idle Recording
State State
| |
|---------RECORD------->|
| |
|<------STOP------------|
| |
|<--RECORD-COMPLETE-----|
| |
| |--------|
| START-OF-INPUT |
| |------->|
| |
| |--------|
| START-INPUT-TIMERS |
| |------->|
| |
.fi
.in 3
.ce 1
Recorder State Machine
.in 7
.ti 0
10.2. Recorder Methods
.in 3
The recorder resource supports the following methods.
.in 0
.nf
recorder-method = "RECORD"
/ "STOP"
/ "START-INPUT-TIMERS"
.fi
.in 3
.in 7
.ti 0
10.3. Recorder Events
.in 3
The recorder resource can generate the following events.
.in 0
.nf
recorder-event = "START-OF-INPUT"
/ "RECORD-COMPLETE"
.fi
.in 3
.in 7
.ti 0
10.4. Recorder Header Fields
.in 3
Method invocations for the recorder resource can contain \%resource-
specific header fields containing request options and information to
augment the Method, Response, or Event message it is associated with.
.bp
.in 0
.nf
recorder-header = sensitivity-level
/ no-input-timeout
/ completion-cause
/ completion-reason
/ failed-uri
/ failed-uri-cause
/ record-uri
/ media-type
/ max-time
/ trim-length
/ final-silence
/ capture-on-speech
/ ver-buffer-utterance
/ start-input-timers
/ new-audio-channel
.fi
.in 3
.in 9
.ti 0
10.4.1. \%Sensitivity-Level
.in 3
To filter out background noise and not mistake it for speech, the
recorder can support a variable level of sound sensitivity. The
\%Sensitivity-Level header field is a float value between 0.0 and 1.0
and allows the client to set the sensitivity level for the recorder.
This header field MAY occur in RECORD, \%SET-PARAMS, or \%GET-PARAMS. A
higher value for this header field means higher sensitivity. The
default value for this header field is implementation specific.
.in 0
.nf
sensitivity-level = "Sensitivity-Level" ":" FLOAT CRLF
.fi
.in 3
.in 9
.ti 0
10.4.2. \%No-Input-Timeout
.in 3
When recording is started and there is no speech detected for a
certain period of time, the recorder can send a \%RECORD-COMPLETE event
to the client and terminate the record operation. The \%No-Input-
Timeout header field can set this timeout value. The value is in
milliseconds. This header field MAY occur in RECORD, \%SET-PARAMS, or
\%GET-PARAMS. The value for this header field ranges from 0 to an
\%implementation-specific maximum value. The default value for this
header field is implementation specific.
.in 0
.nf
no-input-timeout = "No-Input-Timeout" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
10.4.3. \%Completion-Cause
.in 3
This header field MUST be part of a \%RECORD-COMPLETE event from the
recorder resource to the client. This indicates the reason behind
the RECORD method completion. This header field MUST be sent in the
RECORD responses if they return with a failure status and a COMPLETE
state. In the ABNF below, the \%'cause-code' contains a numerical
.bp
value selected from the \%Cause-Code column of the following table.
The \%'cause-name' contains the corresponding token selected from the
\%Cause-Name column.
.in 0
.nf
completion-cause = "Completion-Cause" ":" cause-code SP
cause-name CRLF
cause-code = 3DIGIT
cause-name = *VCHAR
.fi
.in 3
.in 0
.nf
+------------+-----------------------+------------------------------+
| Cause-Code | Cause-Name | Description |
+------------+-----------------------+------------------------------+
| 000 | success-silence | RECORD completed with a |
| | | silence at the end. |
| 001 | success-maxtime | RECORD completed after |
| | | reaching maximum recording |
| | | time specified in record |
| | | method. |
| 002 | no-input-timeout | RECORD failed due to no |
| | | input. |
| 003 | uri-failure | Failure accessing the record |
| | | URI. |
| 004 | error | RECORD request terminated |
| | | prematurely due to a |
| | | recorder error. |
+------------+-----------------------+------------------------------+
.fi
.in 3
.in 9
.ti 0
10.4.4. \%Completion-Reason
.in 3
This header field MAY be present in a \%RECORD-COMPLETE event coming
from the recorder resource to the client. It contains the reason
text behind the RECORD request completion. This header field
communicates text describing the reason for the failure.
The completion reason text is provided for client use in logs and for
debugging and instrumentation purposes. Clients MUST NOT interpret
the completion reason text.
.in 0
.nf
completion-reason = "Completion-Reason" ":"
quoted-string CRLF
.fi
.in 3
.in 9
.ti 0
10.4.5. \%Failed-URI
.in 3
When a recorder method needs to post the audio to a URI and access to
the URI fails, the server MUST provide the failed URI in this header
field in the method response.
.in 0
.nf
failed-uri = "Failed-URI" ":" absoluteURI CRLF
.bp
.fi
.in 3
.in 9
.ti 0
10.4.6. \%Failed-URI-Cause
.in 3
When a recorder method needs to post the audio to a URI and access to
the URI fails, the server MAY provide the \%URI-specific or \%protocol-
specific response code through this header field in the method
response. The value encoding is \%UTF-8 (RFC 3629 [RFC3629]) to
accommodate any access protocol \%-- some access protocols might have a
response string instead of a numeric response code.
.in 0
.nf
failed-uri-cause = "Failed-URI-Cause" ":" 1*UTFCHAR
CRLF
.fi
.in 3
.in 9
.ti 0
10.4.7. \%Record-URI
.in 3
When a recorder method contains this header field, the server MUST
capture the audio and store it. If the header field is present but
specified with no value, the server MUST store the content locally
and generate a URI that points to it. This URI is then returned in
either the STOP response or the \%RECORD-COMPLETE event. If the header
field in the RECORD method specifies a URI, the server MUST attempt
to capture and store the audio at that location. If this header
field is not specified in the RECORD request, the server MUST capture
the audio, MUST encode it, and MUST send it in the STOP response or
the \%RECORD-COMPLETE event as a message body. In this case, the
response carrying the audio content MUST include a Content ID (cid)
[RFC2392] value in this header pointing to the \%Content-ID in the
message body.
The server MUST also return the size in octets and the duration in
milliseconds of the recorded audio waveform as parameters associated
with the header field.
Implementations MUST support 'http' [RFC2616], 'https' [RFC2818],
\&'file' [RFC3986], and 'cid' [RFC2392] schemes in the URI. Note that
implementations already exist that support other schemes.
.in 0
.nf
record-uri = "Record-URI" ":" ["<" uri ">"
";" "size" "=" 1*19DIGIT
";" "duration" "=" 1*19DIGIT] CRLF
.fi
.in 3
.in 9
.ti 0
10.4.8. \%Media-Type
.in 3
A RECORD method MUST contain this header field, which specifies to
the server the media type of the captured audio or video.
.in 0
.nf
media-type = "Media-Type" ":" media-type-value
CRLF
.fi
.in 3
.bp
.in 9
.ti 0
10.4.9. \%Max-Time
.in 3
When recording is started, this specifies the maximum length of the
recording in milliseconds, calculated from the time the actual
capture and store begins and is not necessarily the time the RECORD
method is received. It specifies the duration before silence
suppression, if any, has been applied by the recorder resource.
After this time, the recording stops and the server MUST return a
\%RECORD-COMPLETE event to the client having a \%request-state of
COMPLETE. This header field MAY occur in RECORD, \%SET-PARAMS, or \%GET-
PARAMS. The value for this header field ranges from 0 to an
\%implementation-specific maximum value. A value of 0 means infinity,
and hence the recording continues until one or more of the other stop
conditions are met. The default value for this header field is 0.
.in 0
.nf
max-time = "Max-Time" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 10
.ti 0
10.4.10. \%Trim-Length
.in 3
This header field MAY be sent on a STOP method and specifies the
length of audio to be trimmed from the end of the recording after the
stop. The length is interpreted to be in milliseconds. The default
value for this header field is 0.
.in 0
.nf
trim-length = "Trim-Length" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 10
.ti 0
10.4.11. \%Final-Silence
.in 3
When the recorder is started and the actual capture begins, this
header field specifies the length of silence in the audio that is to
be interpreted as the end of the recording. This header field MAY
occur in RECORD, \%SET-PARAMS, or \%GET-PARAMS. The value for this
header field ranges from 0 to an \%implementation-specific maximum
value and is interpreted to be in milliseconds. A value of 0 means
infinity, and hence the recording will continue until one of the
other stop conditions are met. The default value for this header
field is implementation specific.
.in 0
.nf
final-silence = "Final-Silence" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 10
.ti 0
10.4.12. \%Capture-On-Speech
.in 3
If "false", the recorder MUST start capturing immediately when
started. If "true", the recorder MUST wait for the endpointing
functionality to detect speech before it starts capturing. This
header field MAY occur in the RECORD, \%SET-PARAMS, or \%GET-PARAMS. The
value for this header field is a Boolean. The default value for this
header field is "false".
.bp
.in 0
.nf
capture-on-speech = "Capture-On-Speech " ":" BOOLEAN CRLF
.fi
.in 3
.in 10
.ti 0
10.4.13. \%Ver-Buffer-Utterance
.in 3
This header field is the same as the one described for the verifier
resource (see Section\011.4.14). This tells the server to buffer the
utterance associated with this recording request into the
verification buffer. Sending this header field is permitted only if
the verification buffer is for the session. This buffer is shared
across resources within a session. It gets instantiated when a
verifier resource is added to this session and is released when the
verifier resource is released from the session.
.in 10
.ti 0
10.4.14. \%Start-Input-Timers
.in 3
This header field MAY be sent as part of the RECORD request. A value
of "false" tells the recorder resource to start the operation, but
not to start the \%no-input timer until the client sends a \%START-INPUT-
TIMERS request to the recorder resource. This is useful in the
scenario when the recorder and synthesizer resources are not part of
the same session. When a \%kill-on-barge-in prompt is being played,
the client may want the RECORD request to be simultaneously active so
that it can detect and implement \%kill-on-barge-in (see
Section\08.4.2). But at the same time, the client doesn't want the
recorder resource to start the \%no-input timers until the prompt is
finished. The default value is "true".
.in 0
.nf
start-input-timers = "Start-Input-Timers" ":"
BOOLEAN CRLF
.fi
.in 3
.in 10
.ti 0
10.4.15. \%New-Audio-Channel
.in 3
This header field is the same as the one described for the recognizer
resource (see Section\09.4.23).
.in 7
.ti 0
10.5. Recorder Message Body
.in 3
If the RECORD request did not have a \%Record-URI header field, the
STOP response or the \%RECORD-COMPLETE event MUST contain a message
body carrying the captured audio. In this case, the message carrying
the audio content has a \%Record-URI header field with a Content ID
value pointing to the message body entity that contains the recorded
audio. See Section\010.4.7 for details.
.bp
.in 7
.ti 0
10.6. RECORD
.in 3
The RECORD request places the recorder resource in the recording
state. Depending on the header fields specified in the RECORD
method, the resource may start recording the audio immediately or
wait for the endpointing functionality to detect speech in the audio.
The audio is then made available to the client either in the message
body or as specified by \%Record-URI.
The server MUST support the 'https' URI scheme and MAY support other
schemes. Note that, due to the sensitive nature of voice recordings,
any protocols used for dereferencing SHOULD employ integrity and
confidentiality, unless other means, such as use of a controlled
environment (see Section\04.2), are employed.
If a RECORD operation is already in progress, invoking this method
causes the server to issue a response having a \%status-code of 402
"Method not valid in this state" and a \%request-state of COMPLETE.
If the \%Record-URI is not valid, a \%status-code of 404 "Illegal Value
for Header Field" is returned in the response. If it is impossible
for the server to create the requested stored content, a \%status-code
of 407 "Method or Operation Failed" is returned.
If the type specified in the \%Media-Type header field is not
supported, the server MUST respond with a \%status-code of 409
"Unsupported Header Field Value" with the \%Media-Type header field in
its response.
When the recording operation is initiated, the response indicates an
\%IN-PROGRESS request state. The server MAY generate a subsequent
\%START-OF-INPUT event when speech is detected. Upon completion of the
recording operation, the server generates a \%RECORD-COMPLETE event.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... RECORD 543257
Channel-Identifier:32AECB23433802@recorder
Record-URI:<file://mediaserver/recordings/myfile.wav>
Media-Type:audio/wav
Capture-On-Speech:true
Final-Silence:300
Max-Time:6000
S->C: MRCP/2.0 ... 543257 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@recorder
S->C: MRCP/2.0 ... START-OF-INPUT 543257 IN-PROGRESS
Channel-Identifier:32AECB23433802@recorder
S->C: MRCP/2.0 ... RECORD-COMPLETE 543257 COMPLETE
Channel-Identifier:32AECB23433802@recorder
Completion-Cause:000 success-silence
Record-URI:<file://mediaserver/recordings/myfile.wav>;
size=242552;duration=25645
.fi
.in 3
.ce 1
RECORD Example
.in 7
.ti 0
10.7. STOP
.in 3
The STOP method moves the recorder from the recording state back to
the idle state. If a RECORD request is active and the STOP request
successfully terminates it, then the STOP response MUST contain an
\%Active-Request-Id-List header field containing the RECORD \%request-id
that was terminated. In this case, no \%RECORD-COMPLETE event is sent
for the terminated request. If there was no recording active, then
the response MUST NOT contain an \%Active-Request-Id-List header field.
If the recording was a success, the STOP response MUST contain a
\%Record-URI header field pointing to the recorded audio content or to
a typed entity in the body of the STOP response containing the
recorded audio. The STOP method MAY have a \%Trim-Length header field,
in which case the specified length of audio is trimmed from the end
of the recording after the stop. In any case, the response MUST
contain a \%status-code of 200 "Success".
.bp
.in 0
.nf
C->S: MRCP/2.0 ... RECORD 543257
Channel-Identifier:32AECB23433802@recorder
Record-URI:<file://mediaserver/recordings/myfile.wav>
Capture-On-Speech:true
Final-Silence:300
Max-Time:6000
S->C: MRCP/2.0 ... 543257 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@recorder
S->C: MRCP/2.0 ... START-OF-INPUT 543257 IN-PROGRESS
Channel-Identifier:32AECB23433802@recorder
C->S: MRCP/2.0 ... STOP 543257
Channel-Identifier:32AECB23433802@recorder
Trim-Length:200
S->C: MRCP/2.0 ... 543257 200 COMPLETE
Channel-Identifier:32AECB23433802@recorder
Record-URI:<file://mediaserver/recordings/myfile.wav>;
size=324253;duration=24561
Active-Request-Id-List:543257
.fi
.in 3
.ce 1
STOP Example
.in 7
.ti 0
10.8. \%RECORD-COMPLETE
.in 3
If the recording completes due to no input, silence after speech, or
reaching the \%max-time, the server MUST generate the \%RECORD-COMPLETE
event to the client with a \%request-state of COMPLETE. If the
recording was a success, the \%RECORD-COMPLETE event contains a \%Record-
URI header field pointing to the recorded audio file on the server or
to a typed entity in the message body containing the recorded audio.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... RECORD 543257
Channel-Identifier:32AECB23433802@recorder
Record-URI:<file://mediaserver/recordings/myfile.wav>
Capture-On-Speech:true
Final-Silence:300
Max-Time:6000
S->C: MRCP/2.0 ... 543257 200 IN-PROGRESS
Channel-Identifier:32AECB23433802@recorder
S->C: MRCP/2.0 ... START-OF-INPUT 543257 IN-PROGRESS
Channel-Identifier:32AECB23433802@recorder
S->C: MRCP/2.0 ... RECORD-COMPLETE 543257 COMPLETE
Channel-Identifier:32AECB23433802@recorder
Completion-Cause:000 success
Record-URI:<file://mediaserver/recordings/myfile.wav>;
size=325325;duration=24652
.fi
.in 3
.ce 1
\%RECORD-COMPLETE Example
.in 7
.ti 0
10.9. \%START-INPUT-TIMERS
.in 3
This request is sent from the client to the recorder resource when it
discovers that a \%kill-on-barge-in prompt has finished playing (see
Section\08.4.2). This is useful in the scenario when the recorder and
synthesizer resources are not in the same MRCPv2 session. When a
\%kill-on-barge-in prompt is being played, the client wants the RECORD
request to be simultaneously active so that it can detect and
implement \%kill-on-barge-in. But at the same time, the client doesn't
want the recorder resource to start the \%no-input timers until the
prompt is finished. The \%Start-Input-Timers header field in the
RECORD request allows the client to say if the timers should be
started or not. In the above case, the recorder resource does not
start the timers until the client sends a \%START-INPUT-TIMERS method
to the recorder.
.in 8
.ti 0
10.10. \%START-OF-INPUT
.in 3
The \%START-OF-INPUT event is returned from the server to the client
once the server has detected speech. This event is always returned
by the recorder resource when speech has been detected. The recorder
resource also MUST send a \%Proxy-Sync-Id header field with a unique
value for this event.
.in 0
.nf
S->C: MRCP/2.0 ... START-OF-INPUT 543259 IN-PROGRESS
Channel-Identifier:32AECB23433801@recorder
Proxy-Sync-Id:987654321
.bp
.fi
.in 3
.in 5
.ti 0
11. Speaker Verification and Identification
.in 3
This section describes the methods, responses and events employed by
MRCPv2 for doing speaker verification/identification.
Speaker verification is a voice authentication methodology that can
be used to identify the speaker in order to grant the user access to
sensitive information and transactions. Because speech is a
biometric, a number of essential security considerations related to
biometric authentication technologies apply to its implementation and
usage. Implementers should carefully read Section\012 in this
document and the corresponding section of the SPEECHSC requirements
[RFC4313]. Implementers and deployers of this technology are
strongly encouraged to check the state of the art for any new risks
and solutions that might have been developed.
In speaker verification, a recorded utterance is compared to a
previously stored voiceprint, which is in turn associated with a
claimed identity for that user. Verification typically consists of
two phases: a designation phase to establish the claimed identity of
the caller and an execution phase in which a voiceprint is either
created (training) or used to authenticate the claimed identity
(verification).
Speaker identification is the process of associating an unknown
speaker with a member in a population. It does not employ a claim of
identity. When an individual claims to belong to a group (e.g., one
of the owners of a joint bank account) a group authentication is
performed. This is generally implemented as a kind of verification
involving comparison with more than one voice model. It is sometimes
called \%'multi-verification'. If the individual speaker can be
identified from the group, this may be useful for applications where
multiple users share the same access privileges to some data or
application. Speaker identification and group authentication are
also done in two phases, a designation phase and an execution phase.
Note that, from a functionality standpoint, identification can be
thought of as a special case of group authentication (if the
individual is identified) where the group is the entire population,
although the implementation of speaker identification may be
different from the way group authentication is performed. To
accommodate \%single-voiceprint verification, verification against
multiple voiceprints, group authentication, and identification, this
specification provides a single set of methods that can take a list
of identifiers, called "voiceprint identifiers", and return a list of
identifiers, with a score for each that represents how well the input
speech matched each identifier. The input and output lists of
identifiers do not have to match, allowing a \%vendor-specific group
identifier to be used as input to indicate that identification is to
.bp
be performed. In this specification, the terms "identification" and
\%"multi-verification" are used to indicate that the input represents a
group (potentially the entire population) and that results for
multiple voiceprints may be returned.
It is possible for a verifier resource to share the same session with
a recognizer resource or to operate independently. In order to share
the same session, the verifier and recognizer resources MUST be
allocated from within the same SIP dialog. Otherwise, an independent
verifier resource, running on the same physical server or a separate
one, will be set up. Note that, in addition to allowing both
resources to be allocated in the same INVITE, it is possible to
allocate one initially and the other later via a \%re-INVITE.
Some of the speaker verification methods, described below, apply only
to a specific mode of operation.
The verifier resource has a verification buffer associated with it
(see Section\011.4.14). This allows the storage of speech utterances
for the purposes of verification, identification, or training from
the buffered speech. This buffer is owned by the verifier resource,
but other input resources (such as the recognizer resource or
recorder resource) may write to it. This allows the speech received
as part of a recognition or recording operation to be later used for
verification, identification, or training. Access to the buffer is
limited to one operation at time. Hence, when the resource is doing
read, write, or delete operations, such as a RECOGNIZE with
\%ver-buffer-utterance turned on, another operation involving the
buffer fails with a \%status-code of 402. The verification buffer can
be cleared by a \%CLEAR-BUFFER request from the client and is freed
when the verifier resource is deallocated or the session with the
server terminates.
The verification buffer is different from collecting waveforms and
processing them using either the \%real-time audio stream or stored
audio, because this buffering mechanism does not simply accumulate
speech to a buffer. The verification buffer MAY contain additional
information gathered by the recognizer resource that serves to
improve verification performance.
.in 7
.ti 0
11.1. Speaker Verification State Machine
.in 3
Speaker verification may operate in a training or a verification
session. Starting one of these sessions does not change the state of
the verifier resource, i.e., it remains idle. Once a verification or
training session is started, then utterances are trained or verified
by calling the VERIFY or \%VERIFY-FROM-BUFFER method. The state of the
.bp
verifier resources goes from IDLE to VERIFYING state each time VERIFY
or \%VERIFY-FROM-BUFFER is called.
.in 0
.nf
Idle Session Opened Verifying/Training
State State State
| | |
|--START-SESSION--->| |
| | |
| |----------| |
| | START-SESSION |
| |<---------| |
| | |
|<--END-SESSION-----| |
| | |
| |---------VERIFY--------->|
| | |
| |---VERIFY-FROM-BUFFER--->|
| | |
| |----------| |
| | VERIFY-ROLLBACK |
| |<---------| |
| | |
| | |--------|
| | GET-INTERMEDIATE-RESULT |
| | |------->|
| | |
| | |--------|
| | START-INPUT-TIMERS |
| | |------->|
| | |
| | |--------|
| | START-OF-INPUT |
| | |------->|
| | |
| |<-VERIFICATION-COMPLETE--|
| | |
| |<--------STOP------------|
| | |
| |----------| |
| | STOP |
| |<---------| |
| | |
|----------| | |
| STOP | |
|<---------| | |
| |----------| |
| | CLEAR-BUFFER |
| |<---------| |
.bp
| | |
|----------| | |
| CLEAR-BUFFER | |
|<---------| | |
| | |
| |----------| |
| | QUERY-VOICEPRINT |
| |<---------| |
| | |
|----------| | |
| QUERY-VOICEPRINT | |
|<---------| | |
| | |
| |----------| |
| | DELETE-VOICEPRINT |
| |<---------| |
| | |
|----------| | |
| DELETE-VOICEPRINT | |
|<---------| | |
.fi
.in 3
.ce 1
Verifier Resource State Machine
.in 7
.ti 0
11.2. Speaker Verification Methods
.in 3
The verifier resource supports the following methods.
.in 0
.nf
verifier-method = "START-SESSION"
/ "END-SESSION"
/ "QUERY-VOICEPRINT"
/ "DELETE-VOICEPRINT"
/ "VERIFY"
/ "VERIFY-FROM-BUFFER"
/ "VERIFY-ROLLBACK"
/ "STOP"
/ "CLEAR-BUFFER"
/ "START-INPUT-TIMERS"
/ "GET-INTERMEDIATE-RESULT"
.fi
.in 3
These methods allow the client to control the mode and target of
verification or identification operations within the context of a
session. All the verification input operations that occur within a
session can be used to create, update, or validate against the
voiceprint specified during the session. At the beginning of each
session, the verifier resource is reset to the state it had prior to
any previous verification session.
.bp
Verification/identification operations can be executed against live
or buffered audio. The verifier resource provides methods for
collecting and evaluating live audio data, and methods for
controlling the verifier resource and adjusting its configured
behavior.
There are no dedicated methods for collecting buffered audio data.
This is accomplished by calling VERIFY, RECOGNIZE, or RECORD as
appropriate for the resource, with the header field
\%Ver-Buffer-Utterance. Then, when the following method is called,
verification is performed using the set of buffered audio.
.in 7
.ti 3
1. \%VERIFY-FROM-BUFFER
.in 3
The following methods are used for verification of live audio
utterances:
.in 7
.ti 3
1. VERIFY
.ti 3
2. \%START-INPUT-TIMERS
.in 3
The following methods are used for configuring the verifier resource
and for establishing resource states:
.in 7
.ti 3
1. \%START-SESSION
.ti 3
2. \%END-SESSION
.ti 3
3. \%QUERY-VOICEPRINT
.ti 3
4. \%DELETE-VOICEPRINT
.ti 3
5. \%VERIFY-ROLLBACK
.ti 3
6. STOP
.ti 3
7. \%CLEAR-BUFFER
.in 3
The following method allows the polling of a verification in progress
for intermediate results.
.in 7
.ti 3
1. \%GET-INTERMEDIATE-RESULT
.ti 0
11.3. Verification Events
.in 3
The verifier resource generates the following events.
.bp
.in 0
.nf
verifier-event = "VERIFICATION-COMPLETE"
/ "START-OF-INPUT"
.fi
.in 3
.in 7
.ti 0
11.4. Verification Header Fields
.in 3
A verifier resource message can contain header fields containing
request options and information to augment the Request, Response, or
Event message it is associated with.
.in 0
.nf
verification-header = repository-uri
/ voiceprint-identifier
/ verification-mode
/ adapt-model
/ abort-model
/ min-verification-score
/ num-min-verification-phrases
/ num-max-verification-phrases
/ no-input-timeout
/ save-waveform
/ media-type
/ waveform-uri
/ voiceprint-exists
/ ver-buffer-utterance
/ input-waveform-uri
/ completion-cause
/ completion-reason
/ speech-complete-timeout
/ new-audio-channel
/ abort-verification
/ start-input-timers
.fi
.in 3
.in 9
.ti 0
11.4.1. \%Repository-URI
.in 3
This header field specifies the voiceprint repository to be used or
referenced during speaker verification or identification operations.
This header field is required in the \%START-SESSION, \%QUERY-VOICEPRINT,
and \%DELETE-VOICEPRINT methods.
.in 0
.nf
repository-uri = "Repository-URI" ":" uri CRLF
.fi
.in 3
.in 9
.ti 0
11.4.2. \%Voiceprint-Identifier
.in 3
This header field specifies the claimed identity for verification
applications. The claimed identity MAY be used to specify an
existing voiceprint or to establish a new voiceprint. This header
field MUST be present in the \%QUERY-VOICEPRINT and \%DELETE-VOICEPRINT
methods. The \%Voiceprint-Identifier MUST be present in the \%START-
SESSION method for verification operations. For identification or
.bp
\%multi-verification operations, this header field MAY contain a list
of voiceprint identifiers separated by semicolons. For
identification operations, the client MAY also specify a voiceprint
group identifier instead of a list of voiceprint identifiers.
.in 0
.nf
voiceprint-identifier = "Voiceprint-Identifier" ":"
vid *[";" vid] CRLF
vid = 1*VCHAR ["." 1*VCHAR]
.fi
.in 3
.in 9
.ti 0
11.4.3. \%Verification-Mode
.in 3
This header field specifies the mode of the verifier resource and is
set by the \%START-SESSION method. Acceptable values indicate whether
the verification session will train a voiceprint ("train") or verify/
identify using an existing voiceprint ("verify").
Training and verification sessions both require the voiceprint
\%Repository-URI to be specified in the \%START-SESSION. In many usage
scenarios, however, the system does not know the speaker's claimed
identity until a recognition operation has, for example, recognized
an account number to which the user desires access. In order to
allow the first few utterances of a dialog to be both recognized and
verified, the verifier resource on the MRCPv2 server retains a
buffer. In this buffer, the MRCPv2 server accumulates recognized
utterances. The client can later execute a verification method and
apply the buffered utterances to the current verification session.
Some voice user interfaces may require additional user input that
should not be subject to verification. For example, the user's input
may have been recognized with low confidence and thus require a
confirmation cycle. In such cases, the client SHOULD NOT execute the
VERIFY or \%VERIFY-FROM-BUFFER methods to collect and analyze the
caller's input. A separate recognizer resource can analyze the
caller's response without any participation by the verifier resource.
Once the following conditions have been met:
.in 7
.ti 3
1. the voiceprint identity has been successfully established through
the \%Voiceprint-Identifier header fields of the \%START-SESSION
method, and
.ti 3
2. the verification mode has been set to one of "train" or "verify",
.in 3
the verifier resource can begin providing verification information
during verification operations. If the verifier resource does not
reach one of the two major states ("train" or "verify") , it MUST
report an error condition in the MRCPv2 status code to indicate why
the verifier resource is not ready for the corresponding usage.
.bp
The value of \%verification-mode is persistent within a verification
session. If the client attempts to change the mode during a
verification session, the verifier resource reports an error and the
mode retains its current value.
.in 0
.nf
verification-mode = "Verification-Mode" ":"
verification-mode-string
verification-mode-string = "train"
/ "verify"
.fi
.in 3
.in 9
.ti 0
11.4.4. \%Adapt-Model
.in 3
This header field indicates the desired behavior of the verifier
resource after a successful verification operation. If the value of
this header field is "true", the server SHOULD use audio collected
during the verification session to update the voiceprint to account
for ongoing changes in a speaker's incoming speech characteristics,
unless local policy prohibits updating the voiceprint. If the value
is "false" (the default), the server MUST NOT update the voiceprint.
This header field MAY occur in the \%START-SESSION method.
.in 0
.nf
adapt-model = "Adapt-Model" ":" BOOLEAN CRLF
.fi
.in 3
.in 9
.ti 0
11.4.5. \%Abort-Model
.in 3
The \%Abort-Model header field indicates the desired behavior of the
verifier resource upon session termination. If the value of this
header field is "true", the server MUST discard any pending changes
to a voiceprint due to verification training or verification
adaptation. If the value is "false" (the default), the server MUST
commit any pending changes for a training session or a successful
verification session to the voiceprint repository. A value of "true"
for \%Abort-Model overrides a value of "true" for the \%Adapt-Model
header field. This header field MAY occur in the \%END-SESSION method.
.in 0
.nf
abort-model = "Abort-Model" ":" BOOLEAN CRLF
.fi
.in 3
.in 9
.ti 0
11.4.6. \%Min-Verification-Score
.in 3
The \%Min-Verification-Score header field, when used with a verifier
resource through a \%SET-PARAMS, \%GET-PARAMS, or \%START-SESSION method,
determines the minimum verification score for which a verification
decision of "accepted" may be declared by the server. This is a
float value between \%-1.0 and 1.0. The default value for this header
field is implementation specific.
.bp
.in 0
.nf
min-verification-score = "Min-Verification-Score" ":"
[ %x2D ] FLOAT CRLF
.fi
.in 3
.in 9
.ti 0
11.4.7. \%Num-Min-Verification-Phrases
.in 3
The \%Num-Min-Verification-Phrases header field is used to specify the
minimum number of valid utterances before a positive decision is
given for verification. The value for this header field is an
integer and the default value is 1. The verifier resource MUST NOT
declare a verification 'accepted' unless \%Num-Min-Verification-Phrases
valid utterances have been received. The minimum value is 1. This
header field MAY occur in \%START-SESSION, \%SET-PARAMS, or \%GET-PARAMS.
.in 0
.nf
num-min-verification-phrases = "Num-Min-Verification-Phrases" ":"
1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
11.4.8. \%Num-Max-Verification-Phrases
.in 3
The \%Num-Max-Verification-Phrases header field is used to specify the
number of valid utterances required before a decision is forced for
verification. The verifier resource MUST NOT return a decision of
\&'undecided' once \%Num-Max-Verification-Phrases have been collected and
used to determine a verification score. The value for this header
field is an integer and the minimum value is 1. The default value is
implementation specific. This header field MAY occur in \%START-
SESSION, \%SET-PARAMS, or \%GET-PARAMS.
.in 0
.nf
num-max-verification-phrases = "Num-Max-Verification-Phrases" ":"
1*19DIGIT CRLF
.fi
.in 3
.in 9
.ti 0
11.4.9. \%No-Input-Timeout
.in 3
The \%No-Input-Timeout header field sets the length of time from the
start of the verification timers (see \%START-INPUT-TIMERS) until the
\%VERIFICATION-COMPLETE server event message declares that no input has
been received (i.e., has a \%Completion-Cause of \%no-input-timeout).
The value is in milliseconds. This header field MAY occur in VERIFY,
\%SET-PARAMS, or \%GET-PARAMS. The value for this header field ranges
from 0 to an \%implementation-specific maximum value. The default
value for this header field is implementation specific.
.in 0
.nf
no-input-timeout = "No-Input-Timeout" ":" 1*19DIGIT CRLF
.fi
.in 3
.in 10
.ti 0
11.4.10. \%Save-Waveform
.in 3
This header field allows the client to request that the verifier
resource save the audio stream that was used for verification/
identification. The verifier resource MUST attempt to record the
.bp
audio and make it available to the client in the form of a URI
returned in the \%Waveform-URI header field in the \%VERIFICATION-
COMPLETE event. If there was an error in recording the stream, or
the audio content is otherwise not available, the verifier resource
MUST return an empty \%Waveform-URI header field. The default value
for this header field is "false". This header field MAY appear in
the VERIFY method. Note that this header field does not appear in
the \%VERIFY-FROM-BUFFER method since it only controls whether or not
to save the waveform for live verification/identification operations.
.in 0
.nf
save-waveform = "Save-Waveform" ":" BOOLEAN CRLF
.fi
.in 3
.in 10
.ti 0
11.4.11. \%Media-Type
.in 3
This header field MAY be specified in the \%SET-PARAMS, \%GET-PARAMS, or
the VERIFY methods and tells the server resource the media type of
the captured audio or video such as the one captured and returned by
the \%Waveform-URI header field.
.in 0
.nf
media-type = "Media-Type" ":" media-type-value
CRLF
.fi
.in 3
.in 10
.ti 0
11.4.12. \%Waveform-URI
.in 3
If the \%Save-Waveform header field is set to "true", the verifier
resource MUST attempt to record the incoming audio stream of the
verification into a file and provide a URI for the client to access
it. This header field MUST be present in the \%VERIFICATION-COMPLETE
event if the \%Save-Waveform header field was set to true by the
client. The value of the header field MUST be empty if there was
some error condition preventing the server from recording.
Otherwise, the URI generated by the server MUST be globally unique
across the server and all its verification sessions. The content
MUST be available via the URI until the verification session ends.
Since the \%Save-Waveform header field applies only to live
verification/identification operations, the server can return the
\%Waveform-URI only in the \%VERIFICATION-COMPLETE event for live
verification/identification operations.
The server MUST also return the size in octets and the duration in
milliseconds of the recorded audio waveform as parameters associated
with the header field.
.in 0
.nf
waveform-uri = "Waveform-URI" ":" ["<" uri ">"
";" "size" "=" 1*19DIGIT
";" "duration" "=" 1*19DIGIT] CRLF
.fi
.in 3
.bp
.in 10
.ti 0
11.4.13. \%Voiceprint-Exists
.in 3
This header field MUST be returned in \%QUERY-VOICEPRINT and \%DELETE-
VOICEPRINT responses. This is the status of the voiceprint specified
in the \%QUERY-VOICEPRINT method. For the \%DELETE-VOICEPRINT method,
this header field indicates the status of the voiceprint at the
moment the method execution started.
.in 0
.nf
voiceprint-exists = "Voiceprint-Exists" ":" BOOLEAN CRLF
.fi
.in 3
.in 10
.ti 0
11.4.14. \%Ver-Buffer-Utterance
.in 3
This header field is used to indicate that this utterance could be
later considered for speaker verification. This way, a client can
request the server to buffer utterances while doing regular
recognition or verification activities, and speaker verification can
later be requested on the buffered utterances. This header field is
optional in the RECOGNIZE, VERIFY, and RECORD methods. The default
value for this header field is "false".
.in 0
.nf
ver-buffer-utterance = "Ver-Buffer-Utterance" ":" BOOLEAN
CRLF
.fi
.in 3
.in 10
.ti 0
11.4.15. \%Input-Waveform-URI
.in 3
This header field specifies stored audio content that the client
requests the server to fetch and process according to the current
verification mode, either to train the voiceprint or verify a claimed
identity. This header field enables the client to implement the
buffering use case where the recognizer and verifier resources are in
different sessions and the verification buffer technique cannot be
used. It MAY be specified on the VERIFY request.
.in 0
.nf
input-waveform-uri = "Input-Waveform-URI" ":" uri CRLF
.fi
.in 3
.in 10
.ti 0
11.4.16. \%Completion-Cause
.in 3
This header field MUST be part of a \%VERIFICATION-COMPLETE event from
the verifier resource to the client. This indicates the cause of
VERIFY or \%VERIFY-FROM-BUFFER method completion. This header field
MUST be sent in the VERIFY, \%VERIFY-FROM-BUFFER, and \%QUERY-VOICEPRINT
responses, if they return with a failure status and a COMPLETE state.
In the ABNF below, the \%'cause-code' contains a numerical value
selected from the \%Cause-Code column of the following table. The
\%\&'cause-name' contains the corresponding token selected from the
\%Cause-Name column.
.bp
.in 0
.nf
completion-cause = "Completion-Cause" ":" cause-code SP
cause-name CRLF
cause-code = 3DIGIT
cause-name = *VCHAR
.fi
.in 3
.bp
.in 0
.nf
+------------+--------------------------+---------------------------+
| Cause-Code | Cause-Name | Description |
+------------+--------------------------+---------------------------+
| 000 | success | VERIFY or VERIFY-FROM- |
| | | BUFFER request completed |
| | | successfully. The verify |
| | | decision can be |
| | | "accepted", "rejected", |
| | | or "undecided". |
| 001 | error | VERIFY or VERIFY-FROM- |
| | | BUFFER request terminated |
| | | prematurely due to a |
| | | verifier resource or |
| | | system error. |
| 002 | no-input-timeout | VERIFY request completed |
| | | with no result due to a |
| | | no-input-timeout. |
| 003 | too-much-speech-timeout | VERIFY request completed |
| | | with no result due to too |
| | | much speech. |
| 004 | speech-too-early | VERIFY request completed |
| | | with no result due to |
| | | speech too soon. |
| 005 | buffer-empty | VERIFY-FROM-BUFFER |
| | | request completed with no |
| | | result due to empty |
| | | buffer. |
| 006 | out-of-sequence | Verification operation |
| | | failed due to out-of- |
| | | sequence method |
| | | invocations, for example, |
| | | calling VERIFY before |
| | | QUERY-VOICEPRINT. |
| 007 | repository-uri-failure | Failure accessing |
| | | Repository URI. |
| 008 | repository-uri-missing | Repository-URI is not |
| | | specified. |
| 009 | voiceprint-id-missing | Voiceprint-Identifier is |
| | | not specified. |
| 010 | voiceprint-id-not-exist | Voiceprint-Identifier |
| | | does not exist in the |
| | | voiceprint repository. |
| 011 | speech-not-usable | VERIFY request completed |
| | | with no result because |
| | | the speech was not usable |
| | | (too noisy, too short, |
| | | etc.) |
+------------+--------------------------+---------------------------+
.bp
.fi
.in 3
.in 10
.ti 0
11.4.17. \%Completion-Reason
.in 3
This header field MAY be specified in a \%VERIFICATION-COMPLETE event
coming from the verifier resource to the client. It contains the
reason text behind the VERIFY request completion. This header field
communicates text describing the reason for the failure.
The completion reason text is provided for client use in logs and for
debugging and instrumentation purposes. Clients MUST NOT interpret
the completion reason text.
.in 0
.nf
completion-reason = "Completion-Reason" ":"
quoted-string CRLF
.fi
.in 3
.in 10
.ti 0
11.4.18. \%Speech-Complete-Timeout
.in 3
This header field is the same as the one described for the Recognizer
resource. See Section\09.4.15. This header field MAY occur in
VERIFY, \%SET-PARAMS, or \%GET-PARAMS.
.in 10
.ti 0
11.4.19. \%New-Audio-Channel
.in 3
This header field is the same as the one described for the Recognizer
resource. See Section\09.4.23. This header field MAY be specified in
a VERIFY request.
.in 10
.ti 0
11.4.20. \%Abort-Verification
.in 3
This header field MUST be sent in a STOP request to indicate whether
or not to abort a VERIFY method in progress. A value of "true"
requests the server to discard the results. A value of "false"
requests the server to return in the STOP response the verification
results obtained up to the point it received the STOP request.
.in 0
.nf
abort-verification = "Abort-Verification " ":" BOOLEAN CRLF
.fi
.in 3
.in 10
.ti 0
11.4.21. \%Start-Input-Timers
.in 3
This header field MAY be sent as part of a VERIFY request. A value
of "false" tells the verifier resource to start the VERIFY operation
but not to start the \%no-input timer yet. The verifier resource MUST
NOT start the timers until the client sends a \%START-INPUT-TIMERS
request to the resource. This is useful in the scenario when the
verifier and synthesizer resources are not part of the same session.
In this scenario, when a \%kill-on-barge-in prompt is being played, the
client may want the VERIFY request to be simultaneously active so
that it can detect and implement \%kill-on-barge-in (see
Section\08.4.2). But at the same time, the client doesn't want the
.bp
verifier resource to start the \%no-input timers until the prompt is
finished. The default value is "true".
.in 0
.nf
start-input-timers = "Start-Input-Timers" ":"
BOOLEAN CRLF
.fi
.in 3
.in 7
.ti 0
11.5. Verification Message Body
.in 3
A verification response or event message can carry additional data as
described in the following subsection.
.in 9
.ti 0
11.5.1. Verification Result Data
.in 3
Verification results are returned to the client in the message body
of the \%VERIFICATION-COMPLETE event or the \%GET-INTERMEDIATE-RESULT
response message as described in Section\06.3. Element and attribute
descriptions for the verification portion of the NLSML format are
provided in Section\011.5.2 with a normative definition of the schema
in Section\016.3.
.in 9
.ti 0
11.5.2. Verification Result Elements
.in 3
All verification elements are contained within a single
\%<verification-result> element under <result>. The elements are
described below and have the schema defined in Section\016.2. The
following elements are defined:
.in 8
.ti 3
1. <voiceprint>
.ti 3
2. <incremental>
.ti 3
3. <cumulative>
.ti 3
4. <decision>
.ti 3
5. \%<utterance-length>
.ti 3
6. <device>
.ti 3
7. <gender>
.ti 3
8. <adapted>
.ti 3
9. \%<verification-score>
.ti 3
10. \%<vendor-specific-results>
.bp
.in 11
.ti 0
11.5.2.1. <voiceprint> Element
.in 3
This element in the verification results provides information on how
the speech data matched a single voiceprint. The result data
returned MAY have more than one such entity in the case of
identification or \%multi-verification. Each <voiceprint> element and
the XML data within the element describe verification result
information for how well the speech data matched that particular
voiceprint. The list of <voiceprint> element data are ordered
according to their cumulative verification match scores, with the
highest score first.
.in 11
.ti 0
11.5.2.2. <cumulative> Element
.in 3
Within each <voiceprint> element there MUST be a <cumulative> element
with the cumulative scores of how well multiple utterances matched
the voiceprint.
.in 11
.ti 0
11.5.2.3. <incremental> Element
.in 3
The first <voiceprint> element MAY contain an <incremental> element
with the incremental scores of how well the last utterance matched
the voiceprint.
.in 11
.ti 0
11.5.2.4. <Decision> Element
.in 3
This element is found within the <incremental> or <cumulative>
element within the verification results. Its value indicates the
verification decision. It can have the values of "accepted",
"rejected", or "undecided".
.in 11
.ti 0
11.5.2.5. \%<utterance-length> Element
.in 3
This element MAY occur within either the <incremental> or
<cumulative> elements within the first <voiceprint> element. Its
value indicates the size in milliseconds, respectively, of the last
utterance or the cumulated set of utterances.
.in 11
.ti 0
11.5.2.6. <device> Element
.in 3
This element is found within the <incremental> or <cumulative>
element within the verification results. Its value indicates the
apparent type of device used by the caller as determined by the
verifier resource. It can have the values of \%"cellular-phone",
\%"electret-phone", \%"carbon-button-phone", or "unknown".
.bp
.in 11
.ti 0
11.5.2.7. <gender> Element
.in 3
This element is found within the <incremental> or <cumulative>
element within the verification results. Its value indicates the
apparent gender of the speaker as determined by the verifier
resource. It can have the values of "male", "female", or "unknown".
.in 11
.ti 0
11.5.2.8. <adapted> Element
.in 3
This element is found within the first <voiceprint> element within
the verification results. When verification is trying to confirm the
voiceprint, this indicates if the voiceprint has been adapted as a
consequence of analyzing the source utterances. It is not returned
during verification training. The value can be "true" or "false".
.in 11
.ti 0
11.5.2.9. \%<verification-score> Element
.in 3
This element is found within the <incremental> or <cumulative>
element within the verification results. Its value indicates the
score of the last utterance as determined by verification.
During verification, the higher the score, the more likely it is that
the speaker is the same one as the one who spoke the voiceprint
utterances. During training, the higher the score, the more likely
the speaker is to have spoken all of the analyzed utterances. The
value is a floating point between \%-1.0 and 1.0. If there are no such
utterances, the score is \%-1. Note that the verification score is not
a probability value.
.in 12
.ti 0
11.5.2.10. \%<vendor-specific-results> Element
.in 3
MRCPv2 servers MAY send verification results that contain
\%implementation-specific data that augment the information provided by
the \%MRCPv2-defined elements. Such data might be useful to clients
who have private knowledge of how to interpret these schema
extensions. \%Implementation-specific additions to the verification
results schema MUST belong to the vendor's own namespace. In the
result structure, either they MUST be indicated by a namespace prefix
declared within the result, or they MUST be children of an element
identified as belonging to the respective namespace.
The following example shows the results of three voiceprints. Note
that the first one has crossed the verification score threshold, and
the speaker has been accepted. The voiceprint was also adapted with
the most recent utterance.
.bp
.in 0
.nf
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
grammar="What-Grammar-URI">
<verification-result>
<voiceprint id="johnsmith">
<adapted> true </adapted>
<incremental>
<utterance-length> 500 </utterance-length>
<device> cellular-phone </device>
<gender> male </gender>
<decision> accepted </decision>
<verification-score> 0.98514 </verification-score>
</incremental>
<cumulative>
<utterance-length> 10000 </utterance-length>
<device> cellular-phone </device>
<gender> male </gender>
<decision> accepted </decision>
<verification-score> 0.96725</verification-score>
</cumulative>
</voiceprint>
<voiceprint id="marysmith">
<cumulative>
<verification-score> 0.93410 </verification-score>
</cumulative>
</voiceprint>
<voiceprint uri="juniorsmith">
<cumulative>
<verification-score> 0.74209 </verification-score>
</cumulative>
</voiceprint>
</verification-result>
</result>
.fi
.in 3
.ce 1
Verification Results Example 1
In this next example, the verifier has enough information to decide
to reject the speaker.
.bp
.in 0
.nf
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:xmpl="http://www.example.org/2003/12/mrcpv2"
grammar="What-Grammar-URI">
<verification-result>
<voiceprint id="johnsmith">
<incremental>
<utterance-length> 500 </utterance-length>
<device> cellular-phone </device>
<gender> male </gender>
<verification-score> 0.88514 </verification-score>
<xmpl:raspiness> high </xmpl:raspiness>
<xmpl:emotion> sadness </xmpl:emotion>
</incremental>
<cumulative>
<utterance-length> 10000 </utterance-length>
<device> cellular-phone </device>
<gender> male </gender>
<decision> rejected </decision>
<verification-score> 0.9345 </verification-score>
</cumulative>
</voiceprint>
</verification-result>
</result>
.fi
.in 3
.ce 1
Verification Results Example 2
.in 7
.ti 0
11.6. \%START-SESSION
.in 3
The \%START-SESSION method starts a speaker verification or speaker
identification session. Execution of this method places the verifier
resource into its initial state. If this method is called during an
ongoing verification session, the previous session is implicitly
aborted. If this method is invoked when VERIFY or \%VERIFY-FROM-BUFFER
is active, the method fails and the server returns a \%status-code of
402.
Upon completion of the \%START-SESSION method, the verifier resource
MUST have terminated any ongoing verification session and cleared any
voiceprint designation.
A verification session is associated with the voiceprint repository
to be used during the session. This is specified through the
\%Repository-URI header field (see Section\011.4.1).
The \%START-SESSION method also establishes, through the \%Voiceprint-
Identifier header field, which voiceprints are to be matched or
trained during the verification session. If this is an
.bp
Identification session or if the client wants to do \%Multi-
Verification, the \%Voiceprint-Identifier header field contains a list
of \%semicolon-separated voiceprint identifiers.
The \%Adapt-Model header field MAY also be present in the \%START-SESSION
request to indicate whether or not to adapt a voiceprint based on
data collected during the session (if the voiceprint verification
phase succeeds). By default, the voiceprint model MUST NOT be
adapted with data from a verification session.
The \%START-SESSION also determines whether the session is for a train
or verify of a voiceprint. Hence, the \%Verification-Mode header field
MUST be sent in every \%START-SESSION request. The value of the
\%Verification-Mode header field MUST be one of either "train" or
"verify".
Before a verification/identification session is started, the client
may only request that \%VERIFY-ROLLBACK and generic \%SET-PARAMS and
\%GET-PARAMS operations be performed on the verifier resource. The
server MUST return \%status-code 402 "Method not valid in this state"
for all other verification operations.
A verifier resource MUST NOT have more than a single session active
at one time.
.in 0
.nf
C->S: MRCP/2.0 ... START-SESSION 314161
Channel-Identifier:32AECB23433801@speakverify
Repository-URI:http://www.example.com/voiceprintdbase/
Voiceprint-Mode:verify
Voiceprint-Identifier:johnsmith.voiceprint
Adapt-Model:true
S->C: MRCP/2.0 ... 314161 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
.fi
.in 3
.in 7
.ti 0
11.7. \%END-SESSION
.in 3
The \%END-SESSION method terminates an ongoing verification session and
releases the verification voiceprint resources. The session may
terminate in one of three ways:
.in 7
.ti 3
1. abort \%- the voiceprint adaptation or creation may be aborted so
that the voiceprint remains unchanged (or is not created).
.ti 3
2. commit \%- when terminating a voiceprint training session, the new
voiceprint is committed to the repository.
.bp
.ti 3
3. adapt \%- an existing voiceprint is modified using a successful
verification.
.in 3
The \%Abort-Model header field MAY be included in the \%END-SESSION to
control whether or not to abort any pending changes to the
voiceprint. The default behavior is to commit (not abort) any
pending changes to the designated voiceprint.
The \%END-SESSION method may be safely executed multiple times without
first executing the \%START-SESSION method. Any additional executions
of this method without an intervening use of the \%START-SESSION method
have no effect on the verifier resource.
The following example assumes there is either a training session or a
verification session in progress.
.in 0
.nf
C->S: MRCP/2.0 ... END-SESSION 314174
Channel-Identifier:32AECB23433801@speakverify
Abort-Model:true
S->C: MRCP/2.0 ... 314174 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
.fi
.in 3
.in 7
.ti 0
11.8. \%QUERY-VOICEPRINT
.in 3
The \%QUERY-VOICEPRINT method is used to get status information on a
particular voiceprint and can be used by the client to ascertain if a
voiceprint or repository exists and if it contains trained
voiceprints.
The response to the \%QUERY-VOICEPRINT request contains an indication
of the status of the designated voiceprint in the \%Voiceprint-Exists
header field, allowing the client to determine whether to use the
current voiceprint for verification, train a new voiceprint, or
choose a different voiceprint.
A voiceprint is completely specified by providing a repository
location and a voiceprint identifier. The particular voiceprint or
identity within the repository is specified by a string identifier
that is unique within the repository. The \%Voiceprint-Identifier
header field carries this unique voiceprint identifier within a given
repository.
The following example assumes a verification session is in progress
and the voiceprint exists in the voiceprint repository.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... QUERY-VOICEPRINT 314168
Channel-Identifier:32AECB23433801@speakverify
Repository-URI:http://www.example.com/voiceprints/
Voiceprint-Identifier:johnsmith.voiceprint
S->C: MRCP/2.0 ... 314168 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
Repository-URI:http://www.example.com/voiceprints/
Voiceprint-Identifier:johnsmith.voiceprint
Voiceprint-Exists:true
.fi
.in 3
The following example assumes that the URI provided in the
\%Repository-URI header field is a bad URI.
.in 0
.nf
C->S: MRCP/2.0 ... QUERY-VOICEPRINT 314168
Channel-Identifier:32AECB23433801@speakverify
Repository-URI:http://www.example.com/bad-uri/
Voiceprint-Identifier:johnsmith.voiceprint
S->C: MRCP/2.0 ... 314168 405 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
Repository-URI:http://www.example.com/bad-uri/
Voiceprint-Identifier:johnsmith.voiceprint
Completion-Cause:007 repository-uri-failure
.fi
.in 3
.in 7
.ti 0
11.9. \%DELETE-VOICEPRINT
.in 3
The \%DELETE-VOICEPRINT method removes a voiceprint from a repository.
This method MUST carry the \%Repository-URI and \%Voiceprint-Identifier
header fields.
An MRCPv2 server MUST reject a \%DELETE-VOICEPRINT request with a 401
status code unless the MRCPv2 client has been authenticated and
authorized. Note that MRCPv2 does not have a standard mechanism for
this. See Section\012.8.
If the corresponding voiceprint does not exist, the \%DELETE-VOICEPRINT
method MUST return a 200 status code.
The following example demonstrates a \%DELETE-VOICEPRINT operation to
remove a specific voiceprint.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... DELETE-VOICEPRINT 314168
Channel-Identifier:32AECB23433801@speakverify
Repository-URI:http://www.example.com/bad-uri/
Voiceprint-Identifier:johnsmith.voiceprint
S->C: MRCP/2.0 ... 314168 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
.fi
.in 3
.in 8
.ti 0
11.10. VERIFY
.in 3
The VERIFY method is used to request that the verifier resource
either train/adapt the voiceprint or verify/identify a claimed
identity. If the voiceprint is new or was deleted by a previous
\%DELETE-VOICEPRINT method, the VERIFY method trains the voiceprint.
If the voiceprint already exists, it is adapted and not retrained by
the VERIFY command.
.in 0
.nf
C->S: MRCP/2.0 ... VERIFY 543260
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... 543260 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speakverify
.fi
.in 3
When the VERIFY request completes, the MRCPv2 server MUST send a
\%VERIFICATION-COMPLETE event to the client.
.in 8
.ti 0
11.11. \%VERIFY-FROM-BUFFER
.in 3
The \%VERIFY-FROM-BUFFER method directs the verifier resource to verify
buffered audio against a voiceprint. Only one VERIFY or \%VERIFY-FROM-
BUFFER method may be active for a verifier resource at a time.
The buffered audio is not consumed by this method and thus \%VERIFY-
\%FROM-BUFFER may be invoked multiple times by the client to attempt
verification against different voiceprints.
For the \%VERIFY-FROM-BUFFER method, the server MAY optionally return
an \%IN-PROGRESS response before the \%VERIFICATION-COMPLETE event.
When the \%VERIFY-FROM-BUFFER method is invoked and the verification
buffer is in use by another resource sharing it, the server MUST
return an \%IN-PROGRESS response and wait until the buffer is available
to it. The verification buffer is owned by the verifier resource but
is shared with write access from other input resources on the same
session. Hence, it is considered to be in use if there is a read or
write operation such as a RECORD or RECOGNIZE with the
\%Ver-Buffer-Utterance header field set to "true" on a resource that
shares this buffer. Note that if a RECORD or RECOGNIZE method
.bp
returns with a failure cause code, the \%VERIFY-FROM-BUFFER request
waiting to process that buffer MUST also fail with a \%Completion-Cause
of 005 \%(buffer-empty).
The following example illustrates the usage of some buffering
methods. In this scenario, the client first performed a live
verification, but the utterance had been rejected. In the meantime,
the utterance is also saved to the audio buffer. Then, another
voiceprint is used to do verification against the audio buffer and
the utterance is accepted. For the example, we assume both
\%Num-Min-Verification-Phrases and \%Num-Max-Verification-Phrases are 1.
.in 0
.nf
C->S: MRCP/2.0 ... START-SESSION 314161
Channel-Identifier:32AECB23433801@speakverify
Verification-Mode:verify
Adapt-Model:true
Repository-URI:http://www.example.com/voiceprints
Voiceprint-Identifier:johnsmith.voiceprint
S->C: MRCP/2.0 ... 314161 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
C->S: MRCP/2.0 ... VERIFY 314162
Channel-Identifier:32AECB23433801@speakverify
Ver-buffer-utterance:true
S->C: MRCP/2.0 ... 314162 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... VERIFICATION-COMPLETE 314162 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
Completion-Cause:000 success
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
grammar="What-Grammar-URI">
<verification-result>
<voiceprint id="johnsmith">
<incremental>
<utterance-length> 500 </utterance-length>
<device> cellular-phone </device>
<gender> female </gender>
<decision> rejected </decision>
<verification-score> 0.05465 </verification-score>
</incremental>
<cumulative>
.bp
<utterance-length> 500 </utterance-length>
<device> cellular-phone </device>
<gender> female </gender>
<decision> rejected </decision>
<verification-score> 0.05465 </verification-score>
</cumulative>
</voiceprint>
</verification-result>
</result>
C->S: MRCP/2.0 ... QUERY-VOICEPRINT 314163
Channel-Identifier:32AECB23433801@speakverify
Repository-URI:http://www.example.com/voiceprints/
Voiceprint-Identifier:johnsmith
S->C: MRCP/2.0 ... 314163 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
Repository-URI:http://www.example.com/voiceprints/
Voiceprint-Identifier:johnsmith.voiceprint
Voiceprint-Exists:true
C->S: MRCP/2.0 ... START-SESSION 314164
Channel-Identifier:32AECB23433801@speakverify
Verification-Mode:verify
Adapt-Model:true
Repository-URI:http://www.example.com/voiceprints
Voiceprint-Identifier:marysmith.voiceprint
S->C: MRCP/2.0 ... 314164 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
C->S: MRCP/2.0 ... VERIFY-FROM-BUFFER 314165
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... 314165 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... VERIFICATION-COMPLETE 314165 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
Completion-Cause:000 success
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
grammar="What-Grammar-URI">
<verification-result>
<voiceprint id="marysmith">
.bp
<incremental>
<utterance-length> 1000 </utterance-length>
<device> cellular-phone </device>
<gender> female </gender>
<decision> accepted </decision>
<verification-score> 0.98 </verification-score>
</incremental>
<cumulative>
<utterance-length> 1000 </utterance-length>
<device> cellular-phone </device>
<gender> female </gender>
<decision> accepted </decision>
<verification-score> 0.98 </verification-score>
</cumulative>
</voiceprint>
</verification-result>
</result>
C->S: MRCP/2.0 ... END-SESSION 314166
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... 314166 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
.fi
.in 3
.ce 1
\%VERIFY-FROM-BUFFER Example
.in 8
.ti 0
11.12. \%VERIFY-ROLLBACK
.in 3
The \%VERIFY-ROLLBACK method discards the last buffered utterance or
discards the last live utterances (when the mode is "train" or
"verify"). The client will likely want to invoke this method when
the user provides undesirable input such as \%non-speech noises, \%side-
speech, \%out-of-grammar utterances, commands, etc. Note that this
method does not provide a stack of rollback states. Executing
\%VERIFY-ROLLBACK twice in succession without an intervening
recognition operation has no effect on the second attempt.
.in 0
.nf
C->S: MRCP/2.0 ... VERIFY-ROLLBACK 314165
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... 314165 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
.fi
.in 3
.ce 1
\%VERIFY-ROLLBACK Example
.bp
.in 8
.ti 0
11.13. STOP
.in 3
The STOP method from the client to the server tells the verifier
resource to stop the VERIFY or \%VERIFY-FROM-BUFFER request if one is
active. If such a request is active and the STOP request
successfully terminated it, then the response header section contains
an \%Active-Request-Id-List header field containing the \%request-id of
the VERIFY or \%VERIFY-FROM-BUFFER request that was terminated. In
this case, no \%VERIFICATION-COMPLETE event is sent for the terminated
request. If there was no verify request active, then the response
MUST NOT contain an \%Active-Request-Id-List header field. Either way,
the response MUST contain a \%status-code of 200 "Success".
The STOP method can carry an \%Abort-Verification header field, which
specifies if the verification result until that point should be
discarded or returned. If this header field is not present or if the
value is "true", the verification result is discarded and the STOP
response does not contain any result data. If the header field is
present and its value is "false", the STOP response MUST contain a
\%Completion-Cause header field and carry the Verification result data
in its body.
An aborted VERIFY request does an automatic rollback and hence does
not affect the cumulative score. A VERIFY request that was stopped
with no \%Abort-Verification header field or with the \%Abort-
Verification header field set to "false" does affect cumulative
scores and would need to be explicitly rolled back if the client does
not want the verification result considered in the cumulative scores.
The following example assumes a voiceprint identity has already been
established.
.in 0
.nf
C->S: MRCP/2.0 ... VERIFY 314177
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... 314177 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speakverify
C->S: MRCP/2.0 ... STOP 314178
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... 314178 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
Active-Request-Id-List:314177
.fi
.in 3
.ce 1
STOP Verification Example
.bp
.in 8
.ti 0
11.14. \%START-INPUT-TIMERS
.in 3
This request is sent from the client to the verifier resource to
start the \%no-input timer, usually once the client has ascertained
that any audio prompts to the user have played to completion.
.in 0
.nf
C->S: MRCP/2.0 ... START-INPUT-TIMERS 543260
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... 543260 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
.fi
.in 3
.in 8
.ti 0
11.15. \%VERIFICATION-COMPLETE
.in 3
The \%VERIFICATION-COMPLETE event follows a call to VERIFY or \%VERIFY-
\%FROM-BUFFER and is used to communicate the verification results to
the client. The event message body contains only verification
results.
.in 0
.nf
S->C: MRCP/2.0 ... VERIFICATION-COMPLETE 543259 COMPLETE
Completion-Cause:000 success
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
grammar="What-Grammar-URI">
<verification-result>
<voiceprint id="johnsmith">
<incremental>
<utterance-length> 500 </utterance-length>
<device> cellular-phone </device>
<gender> male </gender>
<decision> accepted </decision>
<verification-score> 0.85 </verification-score>
</incremental>
<cumulative>
<utterance-length> 1500 </utterance-length>
<device> cellular-phone </device>
<gender> male </gender>
<decision> accepted </decision>
<verification-score> 0.75 </verification-score>
</cumulative>
</voiceprint>
</verification-result>
</result>
.fi
.in 3
.bp
.in 8
.ti 0
11.16. \%START-OF-INPUT
.in 3
The \%START-OF-INPUT event is returned from the server to the client
once the server has detected speech. This event is always returned
by the verifier resource when speech has been detected, irrespective
of whether or not the recognizer and verifier resources share the
same session.
.in 0
.nf
S->C: MRCP/2.0 ... START-OF-INPUT 543259 IN-PROGRESS
Channel-Identifier:32AECB23433801@speakverify
.fi
.in 3
.in 8
.ti 0
11.17. \%CLEAR-BUFFER
.in 3
The \%CLEAR-BUFFER method can be used to clear the verification buffer.
This buffer is used to buffer speech during recognition, record, or
verification operations that may later be used by \%VERIFY-FROM-BUFFER.
As noted before, the buffer associated with the verifier resource is
shared by other input resources like recognizers and recorders.
Hence, a \%CLEAR-BUFFER request fails if the verification buffer is in
use. This can happen when any one of the input resources that share
this buffer has an active read or write operation such as RECORD,
RECOGNIZE, or VERIFY with the \%Ver-Buffer-Utterance header field set
to "true".
.in 0
.nf
C->S: MRCP/2.0 ... CLEAR-BUFFER 543260
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... 543260 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
.fi
.in 3
.in 8
.ti 0
11.18. \%GET-INTERMEDIATE-RESULT
.in 3
A client can use the \%GET-INTERMEDIATE-RESULT method to poll for
intermediate results of a verification request that is in progress.
Invoking this method does not change the state of the resource. The
verifier resource collects the accumulated verification results and
returns the information in the method response. The message body in
the response to a \%GET-INTERMEDIATE-RESULT REQUEST contains only
verification results. The method response MUST NOT contain a
\%Completion-Cause header field as the request is not yet complete. If
the resource does not have a verification in progress, the response
has a 402 failure \%status-code and no result in the body.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... GET-INTERMEDIATE-RESULT 543260
Channel-Identifier:32AECB23433801@speakverify
S->C: MRCP/2.0 ... 543260 200 COMPLETE
Channel-Identifier:32AECB23433801@speakverify
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
grammar="What-Grammar-URI">
<verification-result>
<voiceprint id="marysmith">
<incremental>
<utterance-length> 50 </utterance-length>
<device> cellular-phone </device>
<gender> female </gender>
<decision> undecided </decision>
<verification-score> 0.85 </verification-score>
</incremental>
<cumulative>
<utterance-length> 150 </utterance-length>
<device> cellular-phone </device>
<gender> female </gender>
<decision> undecided </decision>
<verification-score> 0.65 </verification-score>
</cumulative>
</voiceprint>
</verification-result>
</result>
.fi
.in 3
.in 5
.ti 0
12. Security Considerations
.in 3
MRCPv2 is designed to comply with the \%security-related requirements
documented in the SPEECHSC requirements [RFC4313]. Implementers and
users of MRCPv2 are strongly encouraged to read the Security
Considerations section of [RFC4313], because that document contains
discussion of a number of important security issues associated with
the utilization of speech as biometric authentication technology, and
on the threats against systems which store recorded speech, contain
large corpora of voiceprints, and send and receive sensitive
information based on voice input to a recognizer or speech output
from a synthesizer. Specific security measures employed by MRCPv2
are summarized in the following subsections. See the corresponding
sections of this specification for how the \%security-related machinery
is invoked by individual protocol operations.
.bp
.in 7
.ti 0
12.1. Rendezvous and Session Establishment
.in 3
MRCPv2 control sessions are established as media sessions described
by SDP within the context of a SIP dialog. In order to ensure secure
rendezvous between MRCPv2 clients and servers, the following are
required:
.in 7
.ti 3
1. The SIP implementation in MRCPv2 clients and servers MUST support
SIP digest authentication [RFC3261] and SHOULD employ it.
.ti 3
2. The SIP implementation in MRCPv2 clients and servers MUST support
\&'sips' URIs and SHOULD employ 'sips' URIs; this includes that
clients and servers SHOULD set up TLS [RFC5246] connections.
.ti 3
3. If media stream cryptographic keying is done through SDP (e.g.
using [RFC4568]), the MRCPv2 clients and servers MUST employ the
\&'sips' URI.
.ti 3
4. When TLS is used for SIP, the client MUST verify the identity of
the server to which it connects, following the rules and
guidelines defined in [RFC5922].
.ti 0
12.2. Control Channel Protection
.in 3
Sensitive data is carried over the MRCPv2 control channel. This
includes things like the output of speech recognition operations,
speaker verification results, input to \%text-to-speech conversion,
personally identifying grammars, etc. For this reason, MRCPv2
servers must be properly authenticated, and the control channel must
permit the use of both confidentiality and integrity for the data.
To ensure control channel protection, MRCPv2 clients and servers MUST
support TLS and SHOULD utilize it by default unless alternative
control channel protection is used. When TLS is used, the client
MUST verify the identity of the server to which it connects,
following the rules and guidelines defined in [RFC4572]. If there
are multiple \%TLS-protected channels between the client and the
server, the server MUST NOT send a response to the client over a
channel for which the TLS identities of the server or client differ
from the channel over which the server received the corresponding
request. Alternative \%control-channel protection MAY be used if
desired (e.g., Security Architecture for the Internet Protocol
(IPsec) [RFC4301]).
.in 7
.ti 0
12.3. Media Session Protection
.in 3
Sensitive data is also carried on media sessions terminating on
MRCPv2 servers (the other end of a media channel may or may not be on
the MRCPv2 client). This data includes the user's spoken utterances
.bp
and the output of \%text-to-speech operations. MRCPv2 servers MUST
support a security mechanism for protection of audio media sessions.
MRCPv2 clients that originate or consume audio similarly MUST support
a security mechanism for protection of the audio. One such mechanism
is the Secure \%Real-time Transport Protocol (SRTP) [RFC3711].
.in 7
.ti 0
12.4. Indirect Content Access
.in 3
MCRPv2 employs content indirection extensively. Content may be
fetched and/or stored based on URI addressing on systems other than
the MRCPv2 client or server. Not all of the stored content is
necessarily sensitive (e.g., XML schemas), but the majority generally
needs protection, and some indirect content, such as voice recordings
and voiceprints, is extremely sensitive and must always be protected.
MRCPv2 clients and servers MUST implement HTTPS for indirect content
access and SHOULD employ secure access for all sensitive indirect
content. Other secure URI schemes such as Secure FTP (FTPS)
[RFC4217] MAY also be used. See Section\06.2.15 for the header fields
used to transfer cookie information between the MRCPv2 client and
server if needed for authentication.
Access to URIs provided by servers introduces risks that need to be
considered. Although RFC 6454 [RFC6454] discusses and focuses on a
\%same-origin policy, which MRCPv2 does not restrict URIs to, it still
provides an excellent description of the pitfalls of blindly
following \%server-provided URIs in Section\03 of the RFC. Servers also
need to be aware that clients could provide URIs to sites designed to
tie up the server in long or otherwise problematic document fetches.
MRCPv2 servers, and the services they access, MUST always be prepared
for the possibility of such a \%denial-of-service attack.
MRCPv2 makes no inherent assumptions about the lifetime and access
controls associated with a URI. For example, if neither
authentication nor \%scheme-specific access controls are used, a leak
of the URI is equivalent to a leak of the content. Moreover, MRCPv2
makes no specific demands on the lifetime of a URI. If a server
offers a URI and the client takes a long, long time to access that
URI, the server may have removed the resource in the interim time
period. MRCPv2 deals with this case by using the URI access scheme's
\&'resource not found' error, such as 404 for HTTPS. How long a server
should keep a dynamic resource available is highly application and
context dependent. However, the server SHOULD keep the resource
available for a reasonable amount of time to make it likely the
client will have the resource available when the client needs the
resource. Conversely, to mitigate state exhaustion attacks, MRCPv2
servers are not obligated to keep resources and resource state in
perpetuity. The server SHOULD delete dynamically generated resources
associated with an MRCPv2 session when the session ends.
.bp
One method to avoid resource leakage is for the server to use
\%difficult-to-guess, \%one-time resource URIs. In this instance, there
can be only a single access to the underlying resource using the
given URI. A downside to this approach is if an attacker uses the
URI before the client uses the URI, then the client is denied the
resource. Other methods would be to adopt a mechanism similar to the
URLAUTH IMAP extension [RFC4467], where the server sets cryptographic
checks on URI usage, as well as capabilities for expiration,
revocation, and so on. Specifying such a mechanism is beyond the
scope of this document.
.in 7
.ti 0
12.5. Protection of Stored Media
.in 3
MRCPv2 applications often require the use of stored media. Voice
recordings are both stored (e.g., for diagnosis and system tuning),
and fetched (for replaying utterances into multiple MRCPv2
resources). Voiceprints are fundamental to the speaker
identification and verification functions. This data can be
extremely sensitive and can present substantial privacy and
impersonation risks if stolen. Systems employing MRCPv2 SHOULD be
deployed in ways that minimize these risks. The SPEECHSC
requirements RFC [RFC4313] contains a more extensive discussion of
these risks and ways they may be mitigated.
.in 7
.ti 0
12.6. DTMF and Recognition Buffers
.in 3
DTMF buffers and recognition buffers may grow large enough to exceed
the capabilities of a server, and the server MUST be prepared to
gracefully handle resource consumption. A server MAY respond with
the appropriate recognition incomplete if the server is in danger of
running out of resources.
.in 7
.ti 0
12.7. \%Client-Set Server Parameters
.in 3
In MRCPv2, there are some tasks, such as URI resource fetches, that
the server does on behalf of the client. To control this behavior,
MRCPv2 has a number of server parameters that a client can configure.
With one such parameter, \%Fetch-Timeout (Section\06.2.12), a malicious
client could set a very large value and then request the server to
fetch a \%non-existent document. It is RECOMMENDED that servers be
cautious about accepting long timeout values or abnormally large
values for other \%client-set parameters.
.in 7
.ti 0
12.8. \%DELETE-VOICEPRINT and Authorization
.in 3
Since this specification does not mandate a specific mechanism for
authentication and authorization when requesting \%DELETE-VOICEPRINT
(Section\011.9), there is a risk that an MRCPv2 server may not do such
.bp
a check for authentication and authorization. In practice, each
provider of voice biometric solutions does insist on its own
authentication and authorization mechanism, outside of this
specification, so this is not likely to be a major problem. If in
the future voice biometric providers standardize on such a mechanism,
then a future version of MRCP can mandate it.
.in 5
.ti 0
13. IANA Considerations
.in 7
.ti 0
13.1. New Registries
.in 3
This section describes the name spaces (registries) for MRCPv2 that
IANA has created and now maintains. Assignment/registration policies
are described in RFC 5226 [RFC5226].
.in 9
.ti 0
13.1.1. MRCPv2 Resource Types
.in 3
IANA has created a new name space of "MRCPv2 Resource Types". All
maintenance within and additions to the contents of this name space
MUST be according to the "Standards Action" registration policy. The
initial contents of the registry, defined in Section\04.2, are given
below:
.in 0
.nf
Resource type Resource description Reference
------------- -------------------- ---------
speechrecog Speech Recognizer [RFC6787]
dtmfrecog DTMF Recognizer [RFC6787]
speechsynth Speech Synthesizer [RFC6787]
basicsynth Basic Synthesizer [RFC6787]
speakverify Speaker Verifier [RFC6787]
recorder Speech Recorder [RFC6787]
.fi
.in 3
.in 9
.ti 0
13.1.2. MRCPv2 Methods and Events
.in 3
IANA has created a new name space of "MRCPv2 Methods and Events".
All maintenance within and additions to the contents of this name
space MUST be according to the "Standards Action" registration
policy. The initial contents of the registry, defined by the
\%"method-name" and \%"event-name" BNF in Section\015 and explained in
Sections 5.2 and 5.5, are given below.
.bp
.in 0
.nf
Name Resource type Method/Event Reference
---- ------------- ------------ ---------
SET-PARAMS Generic Method [RFC6787]
GET-PARAMS Generic Method [RFC6787]
SPEAK Synthesizer Method [RFC6787]
STOP Synthesizer Method [RFC6787]
PAUSE Synthesizer Method [RFC6787]
RESUME Synthesizer Method [RFC6787]
BARGE-IN-OCCURRED Synthesizer Method [RFC6787]
CONTROL Synthesizer Method [RFC6787]
DEFINE-LEXICON Synthesizer Method [RFC6787]
DEFINE-GRAMMAR Recognizer Method [RFC6787]
RECOGNIZE Recognizer Method [RFC6787]
INTERPRET Recognizer Method [RFC6787]
GET-RESULT Recognizer Method [RFC6787]
START-INPUT-TIMERS Recognizer Method [RFC6787]
STOP Recognizer Method [RFC6787]
START-PHRASE-ENROLLMENT Recognizer Method [RFC6787]
ENROLLMENT-ROLLBACK Recognizer Method [RFC6787]
END-PHRASE-ENROLLMENT Recognizer Method [RFC6787]
MODIFY-PHRASE Recognizer Method [RFC6787]
DELETE-PHRASE Recognizer Method [RFC6787]
RECORD Recorder Method [RFC6787]
STOP Recorder Method [RFC6787]
START-INPUT-TIMERS Recorder Method [RFC6787]
START-SESSION Verifier Method [RFC6787]
END-SESSION Verifier Method [RFC6787]
QUERY-VOICEPRINT Verifier Method [RFC6787]
DELETE-VOICEPRINT Verifier Method [RFC6787]
VERIFY Verifier Method [RFC6787]
VERIFY-FROM-BUFFER Verifier Method [RFC6787]
VERIFY-ROLLBACK Verifier Method [RFC6787]
STOP Verifier Method [RFC6787]
START-INPUT-TIMERS Verifier Method [RFC6787]
GET-INTERMEDIATE-RESULT Verifier Method [RFC6787]
SPEECH-MARKER Synthesizer Event [RFC6787]
SPEAK-COMPLETE Synthesizer Event [RFC6787]
START-OF-INPUT Recognizer Event [RFC6787]
RECOGNITION-COMPLETE Recognizer Event [RFC6787]
INTERPRETATION-COMPLETE Recognizer Event [RFC6787]
START-OF-INPUT Recorder Event [RFC6787]
RECORD-COMPLETE Recorder Event [RFC6787]
VERIFICATION-COMPLETE Verifier Event [RFC6787]
START-OF-INPUT Verifier Event [RFC6787]
.fi
.in 3
.bp
.in 9
.ti 0
13.1.3. MRCPv2 Header Fields
.in 3
IANA has created a new name space of "MRCPv2 Header Fields". All
maintenance within and additions to the contents of this name space
MUST be according to the "Standards Action" registration policy. The
initial contents of the registry, defined by the \%"message-header" BNF
in Section\015 and explained in Section\05.1, are given below. Note
that the values permitted for the \%"Vendor-Specific-Parameters"
parameter are managed according to a different policy. See
Section\013.1.6.
.in 0
.nf
Name Resource type Reference
---- ------------- ---------
Channel-Identifier Generic [RFC6787]
Accept Generic [RFC2616]
Active-Request-Id-List Generic [RFC6787]
Proxy-Sync-Id Generic [RFC6787]
Accept-Charset Generic [RFC2616]
Content-Type Generic [RFC6787]
Content-ID Generic
[RFC2392], [RFC2046], and [RFC5322]
Content-Base Generic [RFC6787]
Content-Encoding Generic [RFC6787]
Content-Location Generic [RFC6787]
Content-Length Generic [RFC6787]
Fetch-Timeout Generic [RFC6787]
Cache-Control Generic [RFC6787]
Logging-Tag Generic [RFC6787]
Set-Cookie Generic [RFC6787]
Vendor-Specific Generic [RFC6787]
Jump-Size Synthesizer [RFC6787]
Kill-On-Barge-In Synthesizer [RFC6787]
Speaker-Profile Synthesizer [RFC6787]
Completion-Cause Synthesizer [RFC6787]
Completion-Reason Synthesizer [RFC6787]
Voice-Parameter Synthesizer [RFC6787]
Prosody-Parameter Synthesizer [RFC6787]
Speech-Marker Synthesizer [RFC6787]
Speech-Language Synthesizer [RFC6787]
Fetch-Hint Synthesizer [RFC6787]
Audio-Fetch-Hint Synthesizer [RFC6787]
Failed-URI Synthesizer [RFC6787]
Failed-URI-Cause Synthesizer [RFC6787]
Speak-Restart Synthesizer [RFC6787]
Speak-Length Synthesizer [RFC6787]
Load-Lexicon Synthesizer [RFC6787]
Lexicon-Search-Order Synthesizer [RFC6787]
Confidence-Threshold Recognizer [RFC6787]
.bp
Sensitivity-Level Recognizer [RFC6787]
Speed-Vs-Accuracy Recognizer [RFC6787]
N-Best-List-Length Recognizer [RFC6787]
Input-Type Recognizer [RFC6787]
No-Input-Timeout Recognizer [RFC6787]
Recognition-Timeout Recognizer [RFC6787]
Waveform-URI Recognizer [RFC6787]
Input-Waveform-URI Recognizer [RFC6787]
Completion-Cause Recognizer [RFC6787]
Completion-Reason Recognizer [RFC6787]
Recognizer-Context-Block Recognizer [RFC6787]
Start-Input-Timers Recognizer [RFC6787]
Speech-Complete-Timeout Recognizer [RFC6787]
Speech-Incomplete-Timeout Recognizer [RFC6787]
Dtmf-Interdigit-Timeout Recognizer [RFC6787]
Dtmf-Term-Timeout Recognizer [RFC6787]
Dtmf-Term-Char Recognizer [RFC6787]
Failed-URI Recognizer [RFC6787]
Failed-URI-Cause Recognizer [RFC6787]
Save-Waveform Recognizer [RFC6787]
Media-Type Recognizer [RFC6787]
New-Audio-Channel Recognizer [RFC6787]
Speech-Language Recognizer [RFC6787]
Ver-Buffer-Utterance Recognizer [RFC6787]
Recognition-Mode Recognizer [RFC6787]
Cancel-If-Queue Recognizer [RFC6787]
Hotword-Max-Duration Recognizer [RFC6787]
Hotword-Min-Duration Recognizer [RFC6787]
Interpret-Text Recognizer [RFC6787]
Dtmf-Buffer-Time Recognizer [RFC6787]
Clear-Dtmf-Buffer Recognizer [RFC6787]
Early-No-Match Recognizer [RFC6787]
Num-Min-Consistent-Pronunciations Recognizer [RFC6787]
Consistency-Threshold Recognizer [RFC6787]
Clash-Threshold Recognizer [RFC6787]
Personal-Grammar-URI Recognizer [RFC6787]
Enroll-Utterance Recognizer [RFC6787]
Phrase-ID Recognizer [RFC6787]
Phrase-NL Recognizer [RFC6787]
Weight Recognizer [RFC6787]
Save-Best-Waveform Recognizer [RFC6787]
New-Phrase-ID Recognizer [RFC6787]
Confusable-Phrases-URI Recognizer [RFC6787]
Abort-Phrase-Enrollment Recognizer [RFC6787]
Sensitivity-Level Recorder [RFC6787]
No-Input-Timeout Recorder [RFC6787]
Completion-Cause Recorder [RFC6787]
Completion-Reason Recorder [RFC6787]
.bp
Failed-URI Recorder [RFC6787]
Failed-URI-Cause Recorder [RFC6787]
Record-URI Recorder [RFC6787]
Media-Type Recorder [RFC6787]
Max-Time Recorder [RFC6787]
Trim-Length Recorder [RFC6787]
Final-Silence Recorder [RFC6787]
Capture-On-Speech Recorder [RFC6787]
Ver-Buffer-Utterance Recorder [RFC6787]
Start-Input-Timers Recorder [RFC6787]
New-Audio-Channel Recorder [RFC6787]
Repository-URI Verifier [RFC6787]
Voiceprint-Identifier Verifier [RFC6787]
Verification-Mode Verifier [RFC6787]
Adapt-Model Verifier [RFC6787]
Abort-Model Verifier [RFC6787]
Min-Verification-Score Verifier [RFC6787]
Num-Min-Verification-Phrases Verifier [RFC6787]
Num-Max-Verification-Phrases Verifier [RFC6787]
No-Input-Timeout Verifier [RFC6787]
Save-Waveform Verifier [RFC6787]
Media-Type Verifier [RFC6787]
Waveform-URI Verifier [RFC6787]
Voiceprint-Exists Verifier [RFC6787]
Ver-Buffer-Utterance Verifier [RFC6787]
Input-Waveform-URI Verifier [RFC6787]
Completion-Cause Verifier [RFC6787]
Completion-Reason Verifier [RFC6787]
Speech-Complete-Timeout Verifier [RFC6787]
New-Audio-Channel Verifier [RFC6787]
Abort-Verification Verifier [RFC6787]
Start-Input-Timers Verifier [RFC6787]
Input-Type Verifier [RFC6787]
.fi
.in 3
.in 9
.ti 0
13.1.4. MRCPv2 Status Codes
.in 3
IANA has created a new name space of "MRCPv2 Status Codes" with the
initial values that are defined in Section\05.4. All maintenance
within and additions to the contents of this name space MUST be
according to the "Specification Required with Expert Review"
registration policy.
.in 9
.ti 0
13.1.5. Grammar Reference List Parameters
.in 3
IANA has created a new name space of "Grammar Reference List
Parameters". All maintenance within and additions to the contents of
this name space MUST be according to the "Specification Required with
.bp
Expert Review" registration policy. There is only one initial
parameter as shown below.
.in 0
.nf
Name Reference
---- -------------
weight [RFC6787]
.fi
.in 3
.in 9
.ti 0
13.1.6. MRCPv2 \%Vendor-Specific Parameters
.in 3
IANA has created a new name space of "MRCPv2 \%Vendor-Specific
Parameters". All maintenance within and additions to the contents of
this name space MUST be according to the "Hierarchical Allocation"
registration policy as follows. Each name (corresponding to the
\%"vendor-av-pair-name" ABNF production) MUST satisfy the syntax
requirements of Internet Domain Names as described in Section\02.3.1
of RFC 1035 [RFC1035] (and as updated or obsoleted by successive
RFCs), with one exception, the order of the domain names is reversed.
For example, a \%vendor-specific parameter "foo" by example.com would
have the form "com.example.foo". The first, or \%top-level domain, is
restricted to exactly the set of \%Top-Level Internet Domains defined
by IANA and will be updated by IANA when and only when that set
changes. The \%second-level and all subdomains within the parameter
name MUST be allocated according to the "First Come First Served"
policy. It is RECOMMENDED that assignment requests adhere to the
existing allocations of Internet domain names to organizations,
institutions, corporations, etc.
The registry contains a list of \%vendor-registered parameters, where
each defined parameter is associated with a contact person and
includes an optional reference to the definition of the parameter,
preferably an RFC. The registry is initially empty.
.in 7
.ti 0
13.2. \%NLSML-Related Registrations
.in 9
.ti 0
13.2.1. 'application/nlsml+xml' Media Type Registration
.in 3
IANA has registered the following media type according to the process
defined in RFC 4288 [RFC4288].
.in 6
.ti 3
To: \%ietf-types@iana.org
.ti 3
Subject: Registration of media type application/nlsml+xml
.ti 3
MIME media type name: application
.ti 3
MIME subtype name: nlsml+xml
.ti 3
Required parameters: none
.bp
.ti 3
Optional parameters:
.in 9
.ti 6
charset: All of the considerations described in RFC 3023
[RFC3023] also apply to the application/nlsml+xml media type.
.in 6
.ti 3
Encoding considerations: All of the considerations described in RFC
3023 also apply to the 'application/nlsml+xml' media type.
.ti 3
Security considerations: As with HTML, NLSML documents contain links
to other data stores (grammars, verifier resources, etc.). Unlike
HTML, however, the data stores are not treated as media to be
rendered. Nevertheless, linked files may themselves have security
considerations, which would be those of the individual registered
types. Additionally, this media type has all of the security
considerations described in RFC 3023.
.ti 3
Interoperability considerations: Although an NLSML document is
itself a complete XML document, for a fuller interpretation of the
content a receiver of an NLSML document may wish to access
resources linked to by the document. The inability of an NLSML
processor to access or process such linked resources could result
in different behavior by the ultimate consumer of the data.
.ti 3
Published specification: RFC 6787
.ti 3
Applications that use this media type: MRCPv2 clients and servers
.ti 3
Additional information: none
.ti 3
Magic number(s): There is no single initial octet sequence that is
always present for NLSML files.
.in 63
.ti 3
Person & email address to contact for further information:
.sp 0
.in 6
Sarvi\0Shanmugham, sarvi@cisco.com
.ti 3
Intended usage: This media type is expected to be used only in
conjunction with MRCPv2.
.in 7
.ti 0
13.3. NLSML XML Schema Registration
.in 3
IANA has registered and now maintains the following XML Schema.
Information provided follows the template in RFC 3688 [RFC3688].
.in 6
.ti 3
XML element type: schema
.ti 3
URI: urn:ietf:params:xml:schema:nlsml
.ti 3
Registrant Contact: IESG
.bp
.ti 3
XML: See Section\016.1.
.in 7
.ti 0
13.4. MRCPv2 XML Namespace Registration
.in 3
IANA has registered and now maintains the following XML Name space.
Information provided follows the template in RFC 3688 [RFC3688].
.in 6
.ti 3
XML element type: ns
.ti 3
URI: urn:ietf:params:xml:ns:mrcpv2
.ti 3
Registrant Contact: IESG
.ti 3
XML: RFC 6787
.in 7
.ti 0
13.5. Text Media Type Registrations
.in 3
IANA has registered the following text media type according to the
process defined in RFC 4288 [RFC4288].
.in 9
.ti 0
13.5.1. \%text/grammar-ref-list
.in 6
.ti 3
To: \%ietf-types@iana.org
.ti 3
Subject: Registration of media type \%text/grammar-ref-list
.ti 3
MIME media type name: text
.ti 3
MIME subtype name: \%text/grammar-ref-list
.ti 3
Required parameters: none
.ti 3
Optional parameters: none
.ti 3
Encoding considerations: Depending on the transfer protocol, a
transfer encoding may be necessary to deal with very long lines.
.ti 3
Security considerations: This media type contains URIs that may
represent references to external resources. As these resources
are assumed to be speech recognition grammars, similar
considerations as for the media types 'application/srgs' and
\&'application/srgs+xml' apply.
.ti 3
Interoperability considerations: '>' must be percent encoded in URIs
according to RFC 3986 [RFC3986].
.ti 3
Published specification: The RECOGNIZE method of the MRCP protocol
performs a recognition operation that matches input against a set
.bp
of grammars. When matching against more than one grammar, it is
sometimes necessary to use different weights for the individual
grammars. These weights are not a property of the grammar
resource itself but qualify the reference to that grammar for the
particular recognition operation initiated by the RECOGNIZE
method. The format of the proposed \%'text/grammar-ref-list' media
type is as follows:
.in 0
.nf
body = *reference
reference = "<" uri ">" [parameters] CRLF
parameters = ";" parameter *(";" parameter)
parameter = attribute "=" value
.fi
.in 3
.in 6
This specification currently only defines a 'weight' parameter,
but new parameters MAY be added through the "Grammar Reference
List Parameters" IANA registry established through this
specification. Example:
.in 0
.nf
<http://example.com/grammars/field1.gram>
<http://example.com/grammars/field2.gram>;weight="0.85"
<session:field3@form-level.store>;weight="0.9"
<http://example.com/grammars/universals.gram>;weight="0.75"
.fi
.in 3
.in 6
.ti 3
Applications that use this media type: MRCPv2 clients and servers
.ti 3
Additional information: none
.ti 3
Magic number(s): none
.in 63
.ti 3
Person & email address to contact for further information:
.sp 0
.in 6
Sarvi\0Shanmugham, sarvi@cisco.com
.ti 3
Intended usage: This media type is expected to be used only in
conjunction with MRCPv2.
.in 7
.ti 0
13.6. 'session' URI Scheme Registration
.in 3
IANA has registered the following new URI scheme. The information
below follows the template given in RFC 4395 [RFC4395].
.in 6
.ti 3
URI scheme name: session
.ti 3
Status: Permanent
.ti 3
URI scheme syntax: The syntax of this scheme is identical to that
defined for the "cid" scheme in Section\02 of RFC 2392 [RFC2392].
.bp
.ti 3
URI scheme semantics: The URI is intended to identify a data
resource previously given to the network computing resource. The
purpose of this scheme is to permit access to the specific
resource for the lifetime of the session with the entity storing
the resource. The media type of the resource CAN vary. There is
no explicit mechanism for communication of the media type. This
scheme is currently widely used internally by existing
implementations, and the registration is intended to provide
information in the rare (and unfortunate) case that the scheme is
used elsewhere. The scheme SHOULD NOT be used for open Internet
protocols.
.ti 3
Encoding considerations: There are no other encoding considerations
for the 'session' URIs not described in RFC 3986 [RFC3986]
.ti 3
Applications/protocols that use this URI scheme name: This scheme
name is used by MRCPv2 clients and servers.
.ti 3
Interoperability considerations: Note that none of the resources are
accessible after the MCRPv2 session ends, hence the name of the
scheme. For clients who establish one MRCPv2 session only for the
entire speech application being implemented, this is sufficient,
but clients who create, terminate, and recreate MRCP sessions for
performance or scalability reasons will lose access to resources
established in the earlier session(s).
.ti 3
Security considerations: Generic security considerations for URIs
described in RFC 3986 [RFC3986] apply to this scheme as well. The
URIs defined here provide an identification mechanism only. Given
that the communication channel between client and server is
secure, that the server correctly accesses the resource associated
with the URI, and that the server ensures \%session-only lifetime
and access for each URI, the only additional security issues are
those of the types of media referred to by the URI.
.ti 3
Contact: Sarvi Shanmugham, sarvi@cisco.com
.ti 3
Author/Change controller: IESG, iesg@ietf.org
.ti 3
References: This specification, particularly Sections 6.2.7, 8.5.2,
9.5.1, and 9.9.
.in 7
.ti 0
13.7. SDP Parameter Registrations
.in 3
IANA has registered the following SDP parameter values. The
information for each follows the template given in RFC 4566
[RFC4566], Appendix\0B.
.bp
.in 9
.ti 0
13.7.1. \%Sub-Registry "proto"
.in 3
"TCP/MRCPv2" value of the "proto" parameter
.in 6
.ti 3
Contact name, email address, and telephone number: Sarvi Shanmugham,
sarvi@cisco.com, +1.408.902.3875
.ti 3
Name being registered (as it will appear in SDP): TCP/MRCPv2
.ti 3
\%Long-form name in English: MCRPv2 over TCP
.ti 3
Type of name: proto
.ti 3
Explanation of name: This name represents the MCRPv2 protocol
carried over TCP.
.ti 3
Reference to specification of name: RFC 6787
.in 3
"TCP/TLS/MRCPv2" value of the "proto" parameter
.in 6
.ti 3
Contact name, email address, and telephone number: Sarvi Shanmugham,
sarvi@cisco.com, +1.408.902.3875
.ti 3
Name being registered (as it will appear in SDP): TCP/TLS/MRCPv2
.ti 3
\%Long-form name in English: MCRPv2 over TLS over TCP
.ti 3
Type of name: proto
.ti 3
Explanation of name: This name represents the MCRPv2 protocol
carried over TLS over TCP.
.ti 3
Reference to specification of name: RFC 6787
.in 9
.ti 0
13.7.2. \%Sub-Registry \%"att-field \%(media-level)"
.in 3
"resource" value of the \%"att-field" parameter
.in 6
.ti 3
Contact name, email address, and telephone number: Sarvi Shanmugham,
sarvi@cisco.com, +1.408.902.3875
.ti 3
Attribute name (as it will appear in SDP): resource
.ti 3
\%Long-form attribute name in English: MRCPv2 resource type
.ti 3
Type of attribute: \%media-level
.ti 3
Subject to charset attribute? no
.bp
.ti 3
Explanation of attribute: See Section\04.2 of RFC 6787 for
description and examples.
.ti 3
Specification of appropriate attribute values: See section
Section\013.1.1 of RFC 6787.
.in 3
"channel" value of the \%"att-field" parameter
.in 6
.ti 3
Contact name, email address, and telephone number: Sarvi Shanmugham,
sarvi@cisco.com, +1.408.902.3875
.ti 3
Attribute name (as it will appear in SDP): channel
.ti 3
\%Long-form attribute name in English: MRCPv2 resource channel
identifier
.ti 3
Type of attribute: \%media-level
.ti 3
Subject to charset attribute? no
.ti 3
Explanation of attribute: See Section\04.2 of RFC 6787 for
description and examples.
.ti 3
Specification of appropriate attribute values: See Section\04.2 and
the \%"channel-id" ABNF production rules of RFC 6787.
.in 3
"cmid" value of the \%"att-field" parameter
.in 6
.ti 3
Contact name, email address, and telephone number: Sarvi Shanmugham,
sarvi@cisco.com, +1.408.902.3875
.ti 3
Attribute name (as it will appear in SDP): cmid
.ti 3
\%Long-form attribute name in English: MRCPv2 resource channel media
identifier
.ti 3
Type of attribute: \%media-level
.ti 3
Subject to charset attribute? no
.ti 3
Explanation of attribute: See Section\04.4 of RFC 6787 for
description and examples.
.ti 3
Specification of appropriate attribute values: See Section\04.4 and
the \%"cmid-attribute" ABNF production rules of RFC 6787.
.bp
.in 5
.ti 0
14. Examples
.in 7
.ti 0
14.1. Message Flow
.in 3
The following is an example of a typical MRCPv2 session of speech
synthesis and recognition between a client and a server. Although
the SDP "s=" attribute in these examples has a text description value
to assist in understanding the examples, please keep in mind that RFC
3264 [RFC3264] recommends that messages actually put on the wire use
a space or a dash.
The figure below illustrates opening a session to the MRCPv2 server.
This exchange does not allocate a resource or setup media. It simply
establishes a SIP session with the MRCPv2 server.
.in 0
.nf
C->S:
INVITE sip:mresources@example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg1
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:323123 INVITE
Contact:<sip:sarvi@client.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=sarvi 2614933546 2614933546 IN IP4 192.0.2.12
s=Set up MRCPv2 control and audio
i=Initial contact
c=IN IP4 192.0.2.12
S->C:
SIP/2.0 200 OK
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg1;received=192.0.32.10
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:323123 INVITE
Contact:<sip:mresources@server.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
.bp
o=- 3000000001 3000000001 IN IP4 192.0.2.11
s=Set up MRCPv2 control and audio
i=Initial contact
c=IN IP4 192.0.2.11
C->S:
ACK sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg2
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:Sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:323123 ACK
Content-Length:0
.fi
.in 3
The client requests the server to create a synthesizer resource
control channel to do speech synthesis. This also adds a media
stream to send the generated speech. Note that, in this example, the
client requests a new MRCPv2 TCP stream between the client and the
server. In the following requests, the client will ask to use the
existing connection.
.in 0
.nf
C->S:
INVITE sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg3
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:323124 INVITE
Contact:<sip:sarvi@client.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=sarvi 2614933546 2614933547 IN IP4 192.0.2.12
s=Set up MRCPv2 control and audio
i=Add TCP channel, synthesizer and one-way audio
c=IN IP4 192.0.2.12
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechsynth
a=cmid:1
.bp
m=audio 49170 RTP/AVP 0 96
a=rtpmap:0 pcmu/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=recvonly
a=mid:1
S->C:
SIP/2.0 200 OK
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg3;received=192.0.32.10
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:323124 INVITE
Contact:<sip:mresources@server.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=- 3000000001 3000000002 IN IP4 192.0.2.11
s=Set up MRCPv2 control and audio
i=Add TCP channel, synthesizer and one-way audio
c=IN IP4 192.0.2.11
t=0 0
m=application 32416 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:32AECB23433801@speechsynth
a=cmid:1
m=audio 48260 RTP/AVP 0
a=rtpmap:0 pcmu/8000
a=sendonly
a=mid:1
C->S:
ACK sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg4
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:Sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:323124 ACK
Content-Length:0
.fi
.in 3
.bp
This exchange allocates an additional resource control channel for a
recognizer. Since a recognizer would need to receive an audio stream
for recognition, this interaction also updates the audio stream to
sendrecv, making it a \%two-way audio stream.
.in 0
.nf
C->S:
INVITE sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg5
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:323125 INVITE
Contact:<sip:sarvi@client.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=sarvi 2614933546 2614933548 IN IP4 192.0.2.12
s=Set up MRCPv2 control and audio
i=Add recognizer and duplex the audio
c=IN IP4 192.0.2.12
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:existing
a=resource:speechsynth
a=cmid:1
m=audio 49170 RTP/AVP 0 96
a=rtpmap:0 pcmu/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=recvonly
a=mid:1
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:existing
a=resource:speechrecog
a=cmid:2
m=audio 49180 RTP/AVP 0 96
a=rtpmap:0 pcmu/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=sendonly
a=mid:2
.bp
S->C:
SIP/2.0 200 OK
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg5;received=192.0.32.10
To:MediaServer <sip:mresources@example.com>;tag=62784
From:sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:323125 INVITE
Contact:<sip:mresources@server.example.com>
Content-Type:application/sdp
Content-Length:...
v=0
o=- 3000000001 3000000003 IN IP4 192.0.2.11
s=Set up MRCPv2 control and audio
i=Add recognizer and duplex the audio
c=IN IP4 192.0.2.11
t=0 0
m=application 32416 TCP/MRCPv2 1
a=channel:32AECB23433801@speechsynth
a=cmid:1
m=audio 48260 RTP/AVP 0
a=rtpmap:0 pcmu/8000
a=sendonly
a=mid:1
m=application 32416 TCP/MRCPv2 1
a=channel:32AECB23433801@speechrecog
a=cmid:2
m=audio 48260 RTP/AVP 0
a=rtpmap:0 pcmu/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=recvonly
a=mid:2
C->S:
ACK sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg6
Max-Forwards:6
To:MediaServer <sip:mresources@example.com>;tag=62784
From:Sarvi <sip:sarvi@example.com>;tag=1928301774
Call-ID:a84b4c76e66710
CSeq:323125 ACK
Content-Length:0
.fi
.in 3
A MRCPv2 SPEAK request initiates speech.
.bp
.in 0
.nf
C->S:
MRCP/2.0 ... SPEAK 543257
Channel-Identifier:32AECB23433801@speechsynth
Kill-On-Barge-In:false
Voice-gender:neutral
Voice-age:25
Prosody-volume:medium
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams
<mark name="Stephanie"/>
and arrived at <break/>
<say-as interpret-as="vxml:time">0345p</say-as>.</s>
<s>The subject is <prosody
rate="-20%">ski trip</prosody></s>
</p>
</speak>
S->C:
MRCP/2.0 ... 543257 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechsynth
Speech-Marker:timestamp=857205015059
.fi
.in 3
The synthesizer hits the special marker in the message to be spoken
and faithfully informs the client of the event.
.in 0
.nf
S->C: MRCP/2.0 ... SPEECH-MARKER 543257 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechsynth
Speech-Marker:timestamp=857206027059;Stephanie
.fi
.in 3
The synthesizer finishes with the SPEAK request.
.in 0
.nf
S->C: MRCP/2.0 ... SPEAK-COMPLETE 543257 COMPLETE
Channel-Identifier:32AECB23433801@speechsynth
Speech-Marker:timestamp=857207685213;Stephanie
.fi
.in 3
.bp
The recognizer is issued a request to listen for the customer
choices.
.in 0
.nf
C->S: MRCP/2.0 ... RECOGNIZE 543258
Channel-Identifier:32AECB23433801@speechrecog
Content-Type:application/srgs+xml
Content-Length:...
<?xml version="1.0"?>
<!-- the default grammar language is US English -->
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" version="1.0" root="request">
<!-- single language attachment to a rule expansion -->
<rule id="request">
Can I speak to
<one-of xml:lang="fr-CA">
<item>Michel Tremblay</item>
<item>Andre Roy</item>
</one-of>
</rule>
</grammar>
S->C: MRCP/2.0 ... 543258 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
.fi
.in 3
The client issues the next MRCPv2 SPEAK method.
.bp
.in 0
.nf
C->S: MRCP/2.0 ... SPEAK 543259
Channel-Identifier:32AECB23433801@speechsynth
Kill-On-Barge-In:true
Content-Type:application/ssml+xml
Content-Length:...
<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>Welcome to ABC corporation.</s>
<s>Who would you like to talk to?</s>
</p>
</speak>
S->C: MRCP/2.0 ... 543259 200 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechsynth
Speech-Marker:timestamp=857207696314
.fi
.in 3
This next section of this ongoing example demonstrates how \%kill-on-
\%barge-in support works. Since this last SPEAK request had \%Kill-On-
\%Barge-In set to "true", when the recognizer (the server) generated
the \%START-OF-INPUT event while a SPEAK was active, the client
immediately issued a \%BARGE-IN-OCCURRED method to the synthesizer
resource. The speech synthesizer then terminated playback and
notified the client. The \%completion-cause code provided the
indication that this was a \%kill-on-barge-in interruption rather than
a normal completion.
Note that, since the recognition and synthesizer resources are in the
same session on the same server, to obtain a faster response the
server might have internally relayed the \%start-of-input condition to
the synthesizer directly, before receiving the expected \%BARGE-IN-
OCCURRED event. However, any such communication is outside the scope
of MRCPv2.
.bp
.in 0
.nf
S->C: MRCP/2.0 ... START-OF-INPUT 543258 IN-PROGRESS
Channel-Identifier:32AECB23433801@speechrecog
Proxy-Sync-Id:987654321
C->S: MRCP/2.0 ... BARGE-IN-OCCURRED 543259
Channel-Identifier:32AECB23433801@speechsynth
Proxy-Sync-Id:987654321
S->C: MRCP/2.0 ... 543259 200 COMPLETE
Channel-Identifier:32AECB23433801@speechsynth
Active-Request-Id-List:543258
Speech-Marker:timestamp=857206096314
S->C: MRCP/2.0 ... SPEAK-COMPLETE 543259 COMPLETE
Channel-Identifier:32AECB23433801@speechsynth
Completion-Cause:001 barge-in
Speech-Marker:timestamp=857207685213
.fi
.in 3
The recognizer resource matched the spoken stream to a grammar and
generated results. The result of the recognition is returned by the
server as part of the \%RECOGNITION-COMPLETE event.
.in 0
.nf
S->C: MRCP/2.0 ... RECOGNITION-COMPLETE 543258 COMPLETE
Channel-Identifier:32AECB23433801@speechrecog
Completion-Cause:000 success
Waveform-URI:<http://web.media.com/session123/audio.wav>;
size=423523;duration=25432
Content-Type:application/nlsml+xml
Content-Length:...
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="session:request1@form-level.store">
<interpretation>
<instance name="Person">
<ex:Person>
<ex:Name> Andre Roy </ex:Name>
</ex:Person>
</instance>
<input> may I speak to Andre Roy </input>
</interpretation>
</result>
.fi
.in 3
.bp
Since the client was now finished with the session, including all
resources, it issued a SIP BYE request to close the SIP session.
This caused all control channels and resources allocated under the
session to be deallocated.
.in 0
.nf
C->S: BYE sip:mresources@server.example.com SIP/2.0
Via:SIP/2.0/TCP client.atlanta.example.com:5060;
branch=z9hG4bK74bg7
Max-Forwards:6
From:Sarvi <sip:sarvi@example.com>;tag=1928301774
To:MediaServer <sip:mresources@example.com>;tag=62784
Call-ID:a84b4c76e66710
CSeq:323126 BYE
Content-Length:0
.fi
.in 3
.in 7
.ti 0
14.2. Recognition Result Examples
.in 9
.ti 0
14.2.1. Simple ASR Ambiguity
.in 0
.nf
System: To which city will you be traveling?
User: I want to go to Pittsburgh.
<?xml version="1.0"?>
<result xmlns="urn:ietf:params:xml:ns:mrcpv2"
xmlns:ex="http://www.example.com/example"
grammar="http://www.example.com/flight">
<interpretation confidence="0.6">
<instance>
<ex:airline>
<ex:to_city>Pittsburgh</ex:to_city>
<ex:airline>
<instance>
<input mode="speech">
I want to go to Pittsburgh
</input>
</interpretation>
<interpretation confidence="0.4"
<instance>
<ex:airline>
<ex:to_city>Stockholm</ex:to_city>
</ex:airline>
</instance>
<input>I want to go to Stockholm</input>
</interpretation>
</result>
.fi
.in 3
.bp
.in 9
.ti 0
14.2.2. Mixed Initiative
.in 0
.nf
System: What would you like?
User: I would like 2 pizzas, one with pepperoni and cheese,
one with sausage and a bottle of coke, to go.
.fi
.in 3
This example includes an order object which in turn contains objects
named "food_item", "drink_item", and "delivery_method". The
representation assumes there are no ambiguities in the speech or
natural language processing. Note that this representation also
assumes some level of \%intra-sentential anaphora resolution, i.e., to
resolve the two "one"s as "pizza".
.in 0
.nf
<?xml version="1.0"?>
<nl:result xmlns:nl="urn:ietf:params:xml:ns:mrcpv2"
xmlns="http://www.example.com/example"
grammar="http://www.example.com/foodorder">
<nl:interpretation confidence="1.0" >
<nl:instance>
<order>
<food_item confidence="1.0">
<pizza>
<ingredients confidence="1.0">
pepperoni
</ingredients>
<ingredients confidence="1.0">
cheese
</ingredients>
</pizza>
<pizza>
<ingredients>sausage</ingredients>
</pizza>
</food_item>
<drink_item confidence="1.0">
<size>2-liter</size>
</drink_item>
<delivery_method>to go</delivery_method>
</order>
</nl:instance>
<nl:input mode="speech">I would like 2 pizzas,
one with pepperoni and cheese, one with sausage
and a bottle of coke, to go.
</nl:input>
</nl:interpretation>
</nl:result>
.fi
.in 3
.bp
.in 9
.ti 0
14.2.3. DTMF Input
.in 3
A combination of DTMF input and speech is represented using nested
input elements. For example:
.in 0
.nf
User: My pin is (dtmf 1 2 3 4)
.fi
.in 3
.in 0
.nf
<input>
<input mode="speech" confidence ="1.0"
timestamp-start="2000-04-03T0:00:00"
timestamp-end="2000-04-03T0:00:01.5">My pin is
</input>
<input mode="dtmf" confidence ="1.0"
timestamp-start="2000-04-03T0:00:01.5"
timestamp-end="2000-04-03T0:00:02.0">1 2 3 4
</input>
</input>
.fi
.in 3
Note that grammars that recognize mixtures of speech and DTMF are not
currently possible in SRGS; however, this representation might be
needed for other applications of NLSML, and this mixture capability
might be introduced in future versions of SRGS.
.in 9
.ti 0
14.2.4. Interpreting \%Meta-Dialog and \%Meta-Task Utterances
.in 3
Natural language communication makes use of \%meta-dialog and \%meta-task
utterances. This specification is flexible enough so that \%meta-
utterances can be represented on an \%application-specific basis
without requiring other standard markup.
Here are two examples of how \%meta-task and \%meta-dialog utterances
might be represented.
.bp
.in 0
.nf
System: What toppings do you want on your pizza?
User: What toppings do you have?
<interpretation grammar="http://www.example.com/toppings">
<instance>
<question>
<questioned_item>toppings<questioned_item>
<questioned_property>
availability
</questioned_property>
</question>
</instance>
<input mode="speech">
what toppings do you have?
</input>
</interpretation>
User: slow down.
<interpretation
grammar="http://www.example.com/generalCommandsGrammar">
<instance>
<command>
<action>reduce speech rate</action>
<doer>system</doer>
</command>
</instance>
<input mode="speech">slow down</input>
</interpretation>
.fi
.in 3
.in 9
.ti 0
14.2.5. Anaphora and Deixis
.in 3
This specification can be used on an \%application-specific basis to
represent utterances that contain unresolved anaphoric and deictic
references. Anaphoric references, which include pronouns and
definite noun phrases that refer to something that was mentioned in
the preceding linguistic context, and deictic references, which refer
to something that is present in the \%non-linguistic context, present
similar problems in that there may not be sufficient unambiguous
linguistic context to determine what their exact role in the
interpretation should be. In order to represent unresolved anaphora
and deixis using this specification, one strategy would be for the
developer to define a more \%surface-oriented representation that
leaves the specific details of the interpretation of the reference
open. (This assumes that a later component is responsible for
actually resolving the reference).
.bp
.in 0
.nf
Example: (ignoring the issue of representing the input from the
pointing gesture.)
System: What do you want to drink?
User: I want this. (clicks on picture of large root beer.)
<?xml version="1.0"?>
<nl:result xmlns:nl="urn:ietf:params:xml:ns:mrcpv2"
xmlns="http://www.example.com/example"
grammar="http://www.example.com/beverages.grxml">
<nl:interpretation>
<nl:instance>
<doer>I</doer>
<action>want</action>
<object>this</object>
</nl:instance>
<nl:input mode="speech">I want this</nl:input>
</nl:interpretation>
</nl:result>
.fi
.in 3
.in 9
.ti 0
14.2.6. Distinguishing Individual Items from Sets with One Member
.in 3
For programming convenience, it is useful to be able to distinguish
between individual items and sets containing one item in the XML
representation of semantic results. For example, a pizza order might
consist of exactly one pizza, but a pizza might contain zero or more
toppings. Since there is no standard way of marking this distinction
directly in XML, in the current framework, the developer is free to
adopt any conventions that would convey this information in the XML
markup. One strategy would be for the developer to wrap the set of
items in a grouping element, as in the following example.
.in 0
.nf
<order>
<pizza>
<topping-group>
<topping>mushrooms</topping>
</topping-group>
</pizza>
<drink>coke</drink>
</order>
.fi
.in 3
In this example, the programmer can assume that there is supposed to
be exactly one pizza and one drink in the order, but the fact that
there is only one topping is an accident of this particular pizza
order.
Note that the client controls both the grammar and the semantics to
be returned upon grammar matches, so the user of MRCPv2 is fully
.bp
empowered to cause results to be returned in NLSML in such a way that
the interpretation is clear to that user.
.in 9
.ti 0
14.2.7. Extensibility
.in 3
Extensibility in NLSML is provided via result content flexibility, as
described in the discussions of \%meta-utterances and anaphora. NLSML
can easily be used in sophisticated systems to convey \%application-
specific information that more basic systems would not make use of,
for example, defining speech acts.
.in 5
.ti 0
15. ABNF Normative Definition
.in 3
The following productions make use of the core rules defined in
Section\0B.1 of RFC 5234 [RFC5234].
.in 0
.nf
LWS = [*WSP CRLF] 1*WSP ; linear whitespace
SWS = [LWS] ; sep whitespace
UTF8-NONASCII = %xC0-DF 1UTF8-CONT
/ %xE0-EF 2UTF8-CONT
/ %xF0-F7 3UTF8-CONT
/ %xF8-FB 4UTF8-CONT
/ %xFC-FD 5UTF8-CONT
UTF8-CONT = %x80-BF
UTFCHAR = %x21-7E
/ UTF8-NONASCII
param = *pchar
quoted-string = SWS DQUOTE *(qdtext / quoted-pair )
DQUOTE
qdtext = LWS / %x21 / %x23-5B / %x5D-7E
/ UTF8-NONASCII
quoted-pair = "\\" (%x00-09 / %x0B-0C / %x0E-7F)
token = 1*(alphanum / "-" / "." / "!" / "%" / "*"
/ "_" / "+" / "`" / "'" / "~" )
reserved = ";" / "/" / "?" / ":" / "@" / "&" / "="
/ "+" / "$" / ","
mark = "-" / "_" / "." / "!" / "~" / "*" / "'"
/ "(" / ")"
.bp
unreserved = alphanum / mark
pchar = unreserved / escaped
/ ":" / "@" / "&" / "=" / "+" / "$" / ","
alphanum = ALPHA / DIGIT
BOOLEAN = "true" / "false"
FLOAT = *DIGIT ["." *DIGIT]
escaped = "%" HEXDIG HEXDIG
fragment = *uric
uri = [ absoluteURI / relativeURI ]
[ "#" fragment ]
absoluteURI = scheme ":" ( hier-part / opaque-part )
relativeURI = ( net-path / abs-path / rel-path )
[ "?" query ]
hier-part = ( net-path / abs-path ) [ "?" query ]
net-path = "//" authority [ abs-path ]
abs-path = "/" path-segments
rel-path = rel-segment [ abs-path ]
rel-segment = 1*( unreserved / escaped / ";" / "@"
/ "&" / "=" / "+" / "$" / "," )
opaque-part = uric-no-slash *uric
uric = reserved / unreserved / escaped
uric-no-slash = unreserved / escaped / ";" / "?" / ":"
/ "@" / "&" / "=" / "+" / "$" / ","
path-segments = segment *( "/" segment )
segment = *pchar *( ";" param )
scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
authority = srvr / reg-name
.bp
srvr = [ [ userinfo "@" ] hostport ]
reg-name = 1*( unreserved / escaped / "$" / ","
/ ";" / ":" / "@" / "&" / "=" / "+" )
query = *uric
userinfo = ( user ) [ ":" password ] "@"
user = 1*( unreserved / escaped
/ user-unreserved )
user-unreserved = "&" / "=" / "+" / "$" / "," / ";"
/ "?" / "/"
password = *( unreserved / escaped
/ "&" / "=" / "+" / "$" / "," )
hostport = host [ ":" port ]
host = hostname / IPv4address / IPv6reference
hostname = *( domainlabel "." ) toplabel [ "." ]
domainlabel = alphanum / alphanum *( alphanum / "-" )
alphanum
toplabel = ALPHA / ALPHA *( alphanum / "-" )
alphanum
IPv4address = 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT "."
1*3DIGIT
IPv6reference = "[" IPv6address "]"
IPv6address = hexpart [ ":" IPv4address ]
hexpart = hexseq / hexseq "::" [ hexseq ] / "::"
[ hexseq ]
hexseq = hex4 *( ":" hex4)
hex4 = 1*4HEXDIG
port = 1*19DIGIT
; generic-message is the top-level rule
.bp
generic-message = start-line message-header CRLF
[ message-body ]
message-body = *OCTET
start-line = request-line / response-line / event-line
request-line = mrcp-version SP message-length SP method-name
SP request-id CRLF
response-line = mrcp-version SP message-length SP request-id
SP status-code SP request-state CRLF
event-line = mrcp-version SP message-length SP event-name
SP request-id SP request-state CRLF
method-name = generic-method
/ synthesizer-method
/ recognizer-method
/ recorder-method
/ verifier-method
generic-method = "SET-PARAMS"
/ "GET-PARAMS"
request-state = "COMPLETE"
/ "IN-PROGRESS"
/ "PENDING"
event-name = synthesizer-event
/ recognizer-event
/ recorder-event
/ verifier-event
message-header = 1*(generic-header / resource-header /
generic-field)
generic-field = field-name ":" [ field-value ]
field-name = token
field-value = *LWS field-content *( CRLF 1*LWS field-content)
field-content = <the OCTETs making up the field-value
and consisting of either *TEXT or combinations
of token, separators, and quoted-string>
resource-header = synthesizer-header
/ recognizer-header
/ recorder-header
/ verifier-header
.bp
generic-header = channel-identifier
/ accept
/ active-request-id-list
/ proxy-sync-id
/ accept-charset
/ content-type
/ content-id
/ content-base
/ content-encoding
/ content-location
/ content-length
/ fetch-timeout
/ cache-control
/ logging-tag
/ set-cookie
/ vendor-specific
; -- content-id is as defined in RFC 2392, RFC 2046 and RFC 5322
; -- accept and accept-charset are as defined in RFC 2616
mrcp-version = "MRCP" "/" 1*2DIGIT "." 1*2DIGIT
message-length = 1*19DIGIT
request-id = 1*10DIGIT
status-code = 3DIGIT
channel-identifier = "Channel-Identifier" ":"
channel-id CRLF
channel-id = 1*alphanum "@" 1*alphanum
active-request-id-list = "Active-Request-Id-List" ":"
request-id *("," request-id) CRLF
proxy-sync-id = "Proxy-Sync-Id" ":" 1*VCHAR CRLF
content-base = "Content-Base" ":" absoluteURI CRLF
content-length = "Content-Length" ":" 1*19DIGIT CRLF
content-type = "Content-Type" ":" media-type-value CRLF
media-type-value = type "/" subtype *( ";" parameter )
type = token
.bp
subtype = token
parameter = attribute "=" value
attribute = token
value = token / quoted-string
content-encoding = "Content-Encoding" ":"
*WSP content-coding
*(*WSP "," *WSP content-coding *WSP )
CRLF
content-coding = token
content-location = "Content-Location" ":"
( absoluteURI / relativeURI ) CRLF
cache-control = "Cache-Control" ":"
[*WSP cache-directive
*( *WSP "," *WSP cache-directive *WSP )]
CRLF
fetch-timeout = "Fetch-Timeout" ":" 1*19DIGIT CRLF
cache-directive = "max-age" "=" delta-seconds
/ "max-stale" ["=" delta-seconds ]
/ "min-fresh" "=" delta-seconds
delta-seconds = 1*19DIGIT
logging-tag = "Logging-Tag" ":" 1*UTFCHAR CRLF
vendor-specific = "Vendor-Specific-Parameters" ":"
[vendor-specific-av-pair
*(";" vendor-specific-av-pair)] CRLF
vendor-specific-av-pair = vendor-av-pair-name "="
value
vendor-av-pair-name = 1*UTFCHAR
set-cookie = "Set-Cookie:" SP set-cookie-string
set-cookie-string = cookie-pair *( ";" SP cookie-av )
cookie-pair = cookie-name "=" cookie-value
cookie-name = token
cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
.bp
cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
token = <token, defined in [RFC2616], Section 2.2>
cookie-av = expires-av / max-age-av / domain-av /
path-av / secure-av / httponly-av /
extension-av / age-av
expires-av = "Expires=" sane-cookie-date
sane-cookie-date = <rfc1123-date, from [RFC2616], Section 3.3.1>
max-age-av = "Max-Age=" non-zero-digit *DIGIT
non-zero-digit = %x31-39
domain-av = "Domain=" domain-value
domain-value = <subdomain>
path-av = "Path=" path-value
path-value = <any CHAR except CTLs or ";">
secure-av = "Secure"
httponly-av = "HttpOnly"
extension-av = <any CHAR except CTLs or ";">
age-av = "Age=" delta-seconds
; Synthesizer ABNF
synthesizer-method = "SPEAK"
/ "STOP"
/ "PAUSE"
/ "RESUME"
/ "BARGE-IN-OCCURRED"
/ "CONTROL"
/ "DEFINE-LEXICON"
synthesizer-event = "SPEECH-MARKER"
/ "SPEAK-COMPLETE"
synthesizer-header = jump-size
/ kill-on-barge-in
/ speaker-profile
/ completion-cause
/ completion-reason
/ voice-parameter
/ prosody-parameter
/ speech-marker
/ speech-language
/ fetch-hint
/ audio-fetch-hint
/ failed-uri
/ failed-uri-cause
/ speak-restart
/ speak-length
/ load-lexicon
.bp
/ lexicon-search-order
jump-size = "Jump-Size" ":" speech-length-value CRLF
speech-length-value = numeric-speech-length
/ text-speech-length
text-speech-length = 1*UTFCHAR SP "Tag"
numeric-speech-length = ("+" / "-") positive-speech-length
positive-speech-length = 1*19DIGIT SP numeric-speech-unit
numeric-speech-unit = "Second"
/ "Word"
/ "Sentence"
/ "Paragraph"
kill-on-barge-in = "Kill-On-Barge-In" ":" BOOLEAN
CRLF
speaker-profile = "Speaker-Profile" ":" uri CRLF
completion-cause = "Completion-Cause" ":" cause-code SP
cause-name CRLF
cause-code = 3DIGIT
cause-name = *VCHAR
completion-reason = "Completion-Reason" ":"
quoted-string CRLF
voice-parameter = voice-gender
/ voice-age
/ voice-variant
/ voice-name
voice-gender = "Voice-Gender:" voice-gender-value CRLF
voice-gender-value = "male"
/ "female"
/ "neutral"
voice-age = "Voice-Age:" 1*3DIGIT CRLF
voice-variant = "Voice-Variant:" 1*19DIGIT CRLF
voice-name = "Voice-Name:"
.bp
1*UTFCHAR *(1*WSP 1*UTFCHAR) CRLF
prosody-parameter = "Prosody-" prosody-param-name ":"
prosody-param-value CRLF
prosody-param-name = 1*VCHAR
prosody-param-value = 1*VCHAR
timestamp = "timestamp" "=" time-stamp-value
time-stamp-value = 1*20DIGIT
speech-marker = "Speech-Marker" ":"
timestamp
[";" 1*(UTFCHAR / %x20)] CRLF
speech-language = "Speech-Language" ":"
1*VCHAR CRLF
fetch-hint = "Fetch-Hint" ":"
("prefetch" / "safe") CRLF
audio-fetch-hint = "Audio-Fetch-Hint" ":"
("prefetch" / "safe" / "stream") CRLF
failed-uri = "Failed-URI" ":" absoluteURI CRLF
failed-uri-cause = "Failed-URI-Cause" ":" 1*UTFCHAR CRLF
speak-restart = "Speak-Restart" ":" BOOLEAN CRLF
speak-length = "Speak-Length" ":" positive-length-value
CRLF
positive-length-value = positive-speech-length
/ text-speech-length
load-lexicon = "Load-Lexicon" ":" BOOLEAN CRLF
lexicon-search-order = "Lexicon-Search-Order" ":"
"<" absoluteURI ">" *(" " "<" absoluteURI ">") CRLF
; Recognizer ABNF
recognizer-method = recog-only-method
/ enrollment-method
.bp
recog-only-method = "DEFINE-GRAMMAR"
/ "RECOGNIZE"
/ "INTERPRET"
/ "GET-RESULT"
/ "START-INPUT-TIMERS"
/ "STOP"
enrollment-method = "START-PHRASE-ENROLLMENT"
/ "ENROLLMENT-ROLLBACK"
/ "END-PHRASE-ENROLLMENT"
/ "MODIFY-PHRASE"
/ "DELETE-PHRASE"
recognizer-event = "START-OF-INPUT"
/ "RECOGNITION-COMPLETE"
/ "INTERPRETATION-COMPLETE"
recognizer-header = recog-only-header
/ enrollment-header
recog-only-header = confidence-threshold
/ sensitivity-level
/ speed-vs-accuracy
/ n-best-list-length
/ input-type
/ no-input-timeout
/ recognition-timeout
/ waveform-uri
/ input-waveform-uri
/ completion-cause
/ completion-reason
/ recognizer-context-block
/ start-input-timers
/ speech-complete-timeout
/ speech-incomplete-timeout
/ dtmf-interdigit-timeout
/ dtmf-term-timeout
/ dtmf-term-char
/ failed-uri
/ failed-uri-cause
/ save-waveform
/ media-type
/ new-audio-channel
/ speech-language
/ ver-buffer-utterance
/ recognition-mode
/ cancel-if-queue
.bp
/ hotword-max-duration
/ hotword-min-duration
/ interpret-text
/ dtmf-buffer-time
/ clear-dtmf-buffer
/ early-no-match
enrollment-header = num-min-consistent-pronunciations
/ consistency-threshold
/ clash-threshold
/ personal-grammar-uri
/ enroll-utterance
/ phrase-id
/ phrase-nl
/ weight
/ save-best-waveform
/ new-phrase-id
/ confusable-phrases-uri
/ abort-phrase-enrollment
confidence-threshold = "Confidence-Threshold" ":"
FLOAT CRLF
sensitivity-level = "Sensitivity-Level" ":" FLOAT
CRLF
speed-vs-accuracy = "Speed-Vs-Accuracy" ":" FLOAT
CRLF
n-best-list-length = "N-Best-List-Length" ":" 1*19DIGIT
CRLF
input-type = "Input-Type" ":" inputs CRLF
inputs = "speech" / "dtmf"
no-input-timeout = "No-Input-Timeout" ":" 1*19DIGIT
CRLF
recognition-timeout = "Recognition-Timeout" ":" 1*19DIGIT
CRLF
waveform-uri = "Waveform-URI" ":" ["<" uri ">"
";" "size" "=" 1*19DIGIT
";" "duration" "=" 1*19DIGIT] CRLF
recognizer-context-block = "Recognizer-Context-Block" ":"
[1*VCHAR] CRLF
.bp
start-input-timers = "Start-Input-Timers" ":"
BOOLEAN CRLF
speech-complete-timeout = "Speech-Complete-Timeout" ":"
1*19DIGIT CRLF
speech-incomplete-timeout = "Speech-Incomplete-Timeout" ":"
1*19DIGIT CRLF
dtmf-interdigit-timeout = "DTMF-Interdigit-Timeout" ":"
1*19DIGIT CRLF
dtmf-term-timeout = "DTMF-Term-Timeout" ":" 1*19DIGIT
CRLF
dtmf-term-char = "DTMF-Term-Char" ":" VCHAR CRLF
save-waveform = "Save-Waveform" ":" BOOLEAN CRLF
new-audio-channel = "New-Audio-Channel" ":"
BOOLEAN CRLF
recognition-mode = "Recognition-Mode" ":"
"normal" / "hotword" CRLF
cancel-if-queue = "Cancel-If-Queue" ":" BOOLEAN CRLF
hotword-max-duration = "Hotword-Max-Duration" ":"
1*19DIGIT CRLF
hotword-min-duration = "Hotword-Min-Duration" ":"
1*19DIGIT CRLF
interpret-text = "Interpret-Text" ":" 1*VCHAR CRLF
dtmf-buffer-time = "DTMF-Buffer-Time" ":" 1*19DIGIT CRLF
clear-dtmf-buffer = "Clear-DTMF-Buffer" ":" BOOLEAN CRLF
early-no-match = "Early-No-Match" ":" BOOLEAN CRLF
num-min-consistent-pronunciations =
"Num-Min-Consistent-Pronunciations" ":" 1*19DIGIT CRLF
consistency-threshold = "Consistency-Threshold" ":" FLOAT
CRLF
.bp
clash-threshold = "Clash-Threshold" ":" FLOAT CRLF
personal-grammar-uri = "Personal-Grammar-URI" ":" uri CRLF
enroll-utterance = "Enroll-Utterance" ":" BOOLEAN CRLF
phrase-id = "Phrase-ID" ":" 1*VCHAR CRLF
phrase-nl = "Phrase-NL" ":" 1*UTFCHAR CRLF
weight = "Weight" ":" FLOAT CRLF
save-best-waveform = "Save-Best-Waveform" ":"
BOOLEAN CRLF
new-phrase-id = "New-Phrase-ID" ":" 1*VCHAR CRLF
confusable-phrases-uri = "Confusable-Phrases-URI" ":"
uri CRLF
abort-phrase-enrollment = "Abort-Phrase-Enrollment" ":"
BOOLEAN CRLF
; Recorder ABNF
recorder-method = "RECORD"
/ "STOP"
/ "START-INPUT-TIMERS"
recorder-event = "START-OF-INPUT"
/ "RECORD-COMPLETE"
recorder-header = sensitivity-level
/ no-input-timeout
/ completion-cause
/ completion-reason
/ failed-uri
/ failed-uri-cause
/ record-uri
/ media-type
/ max-time
/ trim-length
/ final-silence
/ capture-on-speech
/ ver-buffer-utterance
/ start-input-timers
/ new-audio-channel
.bp
record-uri = "Record-URI" ":" [ "<" uri ">"
";" "size" "=" 1*19DIGIT
";" "duration" "=" 1*19DIGIT] CRLF
media-type = "Media-Type" ":" media-type-value CRLF
max-time = "Max-Time" ":" 1*19DIGIT CRLF
trim-length = "Trim-Length" ":" 1*19DIGIT CRLF
final-silence = "Final-Silence" ":" 1*19DIGIT CRLF
capture-on-speech = "Capture-On-Speech " ":"
BOOLEAN CRLF
; Verifier ABNF
verifier-method = "START-SESSION"
/ "END-SESSION"
/ "QUERY-VOICEPRINT"
/ "DELETE-VOICEPRINT"
/ "VERIFY"
/ "VERIFY-FROM-BUFFER"
/ "VERIFY-ROLLBACK"
/ "STOP"
/ "CLEAR-BUFFER"
/ "START-INPUT-TIMERS"
/ "GET-INTERMEDIATE-RESULT"
verifier-event = "VERIFICATION-COMPLETE"
/ "START-OF-INPUT"
verifier-header = repository-uri
/ voiceprint-identifier
/ verification-mode
/ adapt-model
/ abort-model
/ min-verification-score
/ num-min-verification-phrases
/ num-max-verification-phrases
/ no-input-timeout
/ save-waveform
/ media-type
/ waveform-uri
/ voiceprint-exists
.bp
/ ver-buffer-utterance
/ input-waveform-uri
/ completion-cause
/ completion-reason
/ speech-complete-timeout
/ new-audio-channel
/ abort-verification
/ start-input-timers
/ input-type
repository-uri = "Repository-URI" ":" uri CRLF
voiceprint-identifier = "Voiceprint-Identifier" ":"
vid *[";" vid] CRLF
vid = 1*VCHAR ["." 1*VCHAR]
verification-mode = "Verification-Mode" ":"
verification-mode-string
verification-mode-string = "train" / "verify"
adapt-model = "Adapt-Model" ":" BOOLEAN CRLF
abort-model = "Abort-Model" ":" BOOLEAN CRLF
min-verification-score = "Min-Verification-Score" ":"
[ %x2D ] FLOAT CRLF
num-min-verification-phrases = "Num-Min-Verification-Phrases"
":" 1*19DIGIT CRLF
num-max-verification-phrases = "Num-Max-Verification-Phrases"
":" 1*19DIGIT CRLF
voiceprint-exists = "Voiceprint-Exists" ":"
BOOLEAN CRLF
ver-buffer-utterance = "Ver-Buffer-Utterance" ":"
BOOLEAN CRLF
input-waveform-uri = "Input-Waveform-URI" ":" uri CRLF
abort-verification = "Abort-Verification " ":"
BOOLEAN CRLF
.fi
.in 3
.bp
The following productions add a new SDP \%session-level attribute. See
Section\013.7.2,\0Paragraph\05.
.in 0
.nf
cmid-attribute = "a=cmid:" identification-tag
identification-tag = token
.fi
.in 3
.in 5
.ti 0
16. XML Schemas
.in 7
.ti 0
16.1. NLSML Schema Definition
.in 0
.nf
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:ietf:params:xml:ns:mrcpv2"
xmlns="urn:ietf:params:xml:ns:mrcpv2"
elementFormDefault="qualified"
attributeFormDefault="unqualified" >
<xs:annotation>
<xs:documentation> Natural Language Semantic Markup Schema
</xs:documentation>
</xs:annotation>
<xs:include schemaLocation="enrollment-schema.rng"/>
<xs:include schemaLocation="verification-schema.rng"/>
<xs:element name="result">
<xs:complexType>
<xs:sequence>
<xs:element name="interpretation" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="instance">
<xs:complexType mixed="true">
<xs:sequence minOccurs="0">
<xs:any namespace="##other"
processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="input" minOccurs="0">
<xs:complexType mixed="true">
<xs:choice>
<xs:element name="noinput" minOccurs="0"/>
<xs:element name="nomatch" minOccurs="0"/>
<xs:element name="input" minOccurs="0"/>
</xs:choice>
<xs:attribute name="mode"
type="xs:string"
default="speech"/>
<xs:attribute name="confidence"
.bp
type="confidenceinfo"
default="1.0"/>
<xs:attribute name="timestamp-start"
type="xs:string"/>
<xs:attribute name="timestamp-end"
type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="confidence" type="confidenceinfo"
default="1.0"/>
<xs:attribute name="grammar" type="xs:anyURI"
use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="enrollment-result"
type="enrollment-contents"/>
<xs:element name="verification-result"
type="verification-contents"/>
</xs:sequence>
<xs:attribute name="grammar" type="xs:anyURI"
use="optional"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="confidenceinfo">
<xs:restriction base="xs:float">
<xs:minInclusive value="0.0"/>
<xs:maxInclusive value="1.0"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
.fi
.in 3
.in 7
.ti 0
16.2. Enrollment Results Schema Definition
.in 0
.nf
<?xml version="1.0" encoding="UTF-8"?>
<!-- MRCP Enrollment Schema
(See http://www.oasis-open.org/committees/relax-ng/spec.html)
-->
<grammar datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="urn:ietf:params:xml:ns:mrcpv2"
xmlns="http://relaxng.org/ns/structure/1.0">
<start>
<element name="enrollment-result">
<ref name="enrollment-content"/>
.bp
</element>
</start>
<define name="enrollment-content">
<interleave>
<element name="num-clashes">
<data type="nonNegativeInteger"/>
</element>
<element name="num-good-repetitions">
<data type="nonNegativeInteger"/>
</element>
<element name="num-repetitions-still-needed">
<data type="nonNegativeInteger"/>
</element>
<element name="consistency-status">
<choice>
<value>consistent</value>
<value>inconsistent</value>
<value>undecided</value>
</choice>
</element>
<optional>
<element name="clash-phrase-ids">
<oneOrMore>
<element name="item">
<data type="token"/>
</element>
</oneOrMore>
</element>
</optional>
<optional>
<element name="transcriptions">
<oneOrMore>
<element name="item">
<text/>
</element>
</oneOrMore>
</element>
</optional>
<optional>
<element name="confusable-phrases">
<oneOrMore>
<element name="item">
<text/>
</element>
</oneOrMore>
</element>
</optional>
.bp
</interleave>
</define>
</grammar>
.fi
.in 3
.in 7
.ti 0
16.3. Verification Results Schema Definition
.in 0
.nf
<?xml version="1.0" encoding="UTF-8"?>
<!-- MRCP Verification Results Schema
(See http://www.oasis-open.org/committees/relax-ng/spec.html)
-->
<grammar datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="urn:ietf:params:xml:ns:mrcpv2"
xmlns="http://relaxng.org/ns/structure/1.0">
<start>
<element name="verification-result">
<ref name="verification-contents"/>
</element>
</start>
<define name="verification-contents">
<element name="voiceprint">
<ref name="firstVoiceprintContent"/>
</element>
<zeroOrMore>
<element name="voiceprint">
<ref name="restVoiceprintContent"/>
</element>
</zeroOrMore>
</define>
<define name="firstVoiceprintContent">
<attribute name="id">
<data type="string"/>
</attribute>
<interleave>
<optional>
<element name="adapted">
<data type="boolean"/>
</element>
</optional>
<optional>
<element name="needmoredata">
<ref name="needmoredataContent"/>
</element>
.bp
</optional>
<optional>
<element name="incremental">
<ref name="firstCommonContent"/>
</element>
</optional>
<element name="cumulative">
<ref name="firstCommonContent"/>
</element>
</interleave>
</define>
<define name="restVoiceprintContent">
<attribute name="id">
<data type="string"/>
</attribute>
<element name="cumulative">
<ref name="restCommonContent"/>
</element>
</define>
<define name="firstCommonContent">
<interleave>
<element name="decision">
<ref name="decisionContent"/>
</element>
<optional>
<element name="utterance-length">
<ref name="utterance-lengthContent"/>
</element>
</optional>
<optional>
<element name="device">
<ref name="deviceContent"/>
</element>
</optional>
<optional>
<element name="gender">
<ref name="genderContent"/>
</element>
</optional>
<zeroOrMore>
<element name="verification-score">
<ref name="verification-scoreContent"/>
</element>
</zeroOrMore>
</interleave>
</define>
.bp
<define name="restCommonContent">
<interleave>
<optional>
<element name="decision">
<ref name="decisionContent"/>
</element>
</optional>
<optional>
<element name="device">
<ref name="deviceContent"/>
</element>
</optional>
<optional>
<element name="gender">
<ref name="genderContent"/>
</element>
</optional>
<zeroOrMore>
<element name="verification-score">
<ref name="verification-scoreContent"/>
</element>
</zeroOrMore>
</interleave>
</define>
<define name="decisionContent">
<choice>
<value>accepted</value>
<value>rejected</value>
<value>undecided</value>
</choice>
</define>
<define name="needmoredataContent">
<data type="boolean"/>
</define>
<define name="utterance-lengthContent">
<data type="nonNegativeInteger"/>
</define>
<define name="deviceContent">
<choice>
<value>cellular-phone</value>
<value>electret-phone</value>
<value>carbon-button-phone</value>
<value>unknown</value>
</choice>
.bp
</define>
<define name="genderContent">
<choice>
<value>male</value>
<value>female</value>
<value>unknown</value>
</choice>
</define>
<define name="verification-scoreContent">
<data type="float">
<param name="minInclusive">-1</param>
<param name="maxInclusive">1</param>
</data>
</define>
</grammar>
.fi
.in 3
.in 5
.ti 0
17. References
.in 7
.ti 0
17.1. Normative References
.in 3
\%[ISO.8859-1.1987]
.in 14
International Organization for Standardization,
"Information technology \%- \%8-bit single byte coded graphic
\%- character sets \%- Part 1: Latin alphabet No. 1, JTC1/
SC2", ISO Standard \%8859-1, 1987.
.ti 3
[RFC0793] Postel, J., "Transmission Control Protocol", STD 7, RFC
793, September 1981.
.ti 3
[RFC1035] Mockapetris, P., "Domain names \%- implementation and
specification", STD 13, RFC 1035, November 1987.
.ti 3
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, March 1997.
.ti 3
[RFC2326] Schulzrinne, H., Rao, A., and R. Lanphier, "Real Time
Streaming Protocol (RTSP)", RFC 2326, April 1998.
.ti 3
[RFC2392] Levinson, E., \%"Content-ID and \%Message-ID Uniform Resource
Locators", RFC 2392, August 1998.
.ti 3
[RFC2483] Mealling, M. and R. Daniel, "URI Resolution Services
Necessary for URN Resolution", RFC 2483, January 1999.
.bp
.ti 3
[RFC2616] Fielding, R., Gettys, J., Mogul, J., Frystyk, H.,
Masinter, L., Leach, P., and T. \%Berners-Lee, "Hypertext
Transfer Protocol \%-- HTTP/1.1", RFC 2616, June 1999.
.ti 3
[RFC3023] Murata, M., St. Laurent, S., and D. Kohn, "XML Media
Types", RFC 3023, January 2001.
.ti 3
[RFC3261] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston,
A., Peterson, J., Sparks, R., Handley, M., and E.
Schooler, "SIP: Session Initiation Protocol", RFC 3261,
June 2002.
.ti 3
[RFC3264] Rosenberg, J. and H. Schulzrinne, "An Offer/Answer Model
with Session Description Protocol (SDP)", RFC 3264, June
2002.
.ti 3
[RFC3550] Schulzrinne, H., Casner, S., Frederick, R., and V.
Jacobson, "RTP: A Transport Protocol for \%Real-Time
Applications", STD 64, RFC 3550, July 2003.
.ti 3
[RFC3629] Yergeau, F., \%"UTF-8, a transformation format of ISO
10646", STD 63, RFC 3629, November 2003.
.ti 3
[RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688,
January 2004.
.ti 3
[RFC3711] Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K.
Norrman, "The Secure \%Real-time Transport Protocol (SRTP)",
RFC 3711, March 2004.
.ti 3
[RFC3986] \%Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifier (URI): Generic Syntax", STD 66, RFC
3986, January 2005.
.ti 3
[RFC4145] Yon, D. and G. Camarillo, \%"TCP-Based Media Transport in
the Session Description Protocol (SDP)", RFC 4145,
September 2005.
.ti 3
[RFC4288] Freed, N. and J. Klensin, "Media Type Specifications and
Registration Procedures", BCP 13, RFC 4288, December 2005.
.ti 3
[RFC4566] Handley, M., Jacobson, V., and C. Perkins, "SDP: Session
Description Protocol", RFC 4566, July 2006.
.ti 3
[RFC4568] Andreasen, F., Baugher, M., and D. Wing, "Session
Description Protocol (SDP) Security Descriptions for Media
Streams", RFC 4568, July 2006.
.bp
.ti 3
[RFC4572] Lennox, J., \%"Connection-Oriented Media Transport over the
Transport Layer Security (TLS) Protocol in the Session
Description Protocol (SDP)", RFC 4572, July 2006.
.ti 3
[RFC5226] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section\0in RFCs", BCP 26, RFC 5226,
May 2008.
.ti 3
[RFC5234] Crocker, D. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", STD 68, RFC 5234, January 2008.
.ti 3
[RFC5246] Dierks, T. and E. Rescorla, "The Transport Layer Security
(TLS) Protocol Version 1.2", RFC 5246, August 2008.
.ti 3
[RFC5322] Resnick, P., Ed., "Internet Message Format", RFC 5322,
October 2008.
.ti 3
[RFC5646] Phillips, A. and M. Davis, "Tags for Identifying
Languages", BCP 47, RFC 5646, September 2009.
.ti 3
[RFC5888] Camarillo, G. and H. Schulzrinne, "The Session Description
Protocol (SDP) Grouping Framework", RFC 5888, June 2010.
.ti 3
[RFC5905] Mills, D., Martin, J., Burbank, J., and W. Kasch, "Network
Time Protocol Version 4: Protocol and Algorithms
Specification", RFC 5905, June 2010.
.ti 3
[RFC5922] Gurbani, V., Lawrence, S., and A. Jeffrey, "Domain
Certificates in the Session Initiation Protocol (SIP)",
RFC 5922, June 2010.
.ti 3
[RFC6265] Barth, A., "HTTP State Management Mechanism", RFC 6265,
April 2011.
.in 3
\%[W3C.REC-semantic-interpretation-20070405]
.in 14
Tichelen, L. and D. Burke, "Semantic Interpretation for
Speech Recognition (SISR) Version 1.0", World Wide Web
Consortium REC \%REC-semantic-interpretation-20070405, April
2007, <http://www.w3.org/TR/2007/
\%REC-semantic-interpretation-20070405>.
.in 3
\%[W3C.REC-speech-grammar-20040316]
.in 14
McGlashan, S. and A. Hunt, "Speech Recognition Grammar
Specification Version 1.0", World Wide Web Consortium
Recommendation \%REC-speech-grammar-20040316, March 2004,
\%<http://www.w3.org/TR/2004/REC-speech-grammar-20040316>.
.bp
.in 3
\%[W3C.REC-speech-synthesis-20040907]
.in 14
Walker, M., Burnett, D., and A. Hunt, "Speech Synthesis
Markup Language (SSML) Version 1.0", World Wide Web
Consortium Recommendation \%REC-speech-synthesis-20040907,
September 2004,
\%<http://www.w3.org/TR/2004/REC-speech-synthesis-20040907>.
.in 3
\%[W3C.REC-xml-names11-20040204]
.in 14
Layman, A., Bray, T., Hollander, D., and R. Tobin,
"Namespaces in XML 1.1", World Wide Web Consortium First
Edition \%REC-xml-names11-20040204, February 2004,
\%<http://www.w3.org/TR/2004/REC-xml-names11-20040204>.
.in 7
.ti 0
17.2. Informative References
.in 3
[ISO.8601.1988]
.in 14
International Organization for Standardization, "Data
elements and interchange formats \%- Information interchange
\%- Representation of dates and times", ISO Standard 8601,
June 1988.
.ti 3
[Q.23] International Telecommunications Union, "Technical
Features of \%Push-Button Telephone Sets", \%ITU-T Q.23, 1993.
.ti 3
[RFC2046] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part Two: Media Types", RFC 2046,
November 1996.
.ti 3
[RFC2818] Rescorla, E., "HTTP Over TLS", RFC 2818, May 2000.
.ti 3
[RFC4217] \%Ford-Hutchinson, P., "Securing FTP with TLS", RFC 4217,
October 2005.
.ti 3
[RFC4267] Froumentin, M., "The W3C Speech Interface Framework Media
Types: application/voicexml+xml, application/ssml+xml,
application/srgs, application/srgs+xml, application/
ccxml+xml, and application/pls+xml", RFC 4267, November
2005.
.ti 3
[RFC4301] Kent, S. and K. Seo, "Security Architecture for the
Internet Protocol", RFC 4301, December 2005.
.ti 3
[RFC4313] Oran, D., "Requirements for Distributed Control of
Automatic Speech Recognition (ASR), Speaker
Identification/Speaker Verification (SI/SV), and \%Text-to-
Speech (TTS) Resources", RFC 4313, December 2005.
.bp
.ti 3
[RFC4395] Hansen, T., Hardie, T., and L. Masinter, "Guidelines and
Registration Procedures for New URI Schemes", BCP 35, RFC
4395, February 2006.
.ti 3
[RFC4463] Shanmugham, S., Monaco, P., and B. Eberman, "A Media
Resource Control Protocol (MRCP) Developed by Cisco,
Nuance, and Speechworks", RFC 4463, April 2006.
.ti 3
[RFC4467] Crispin, M., "Internet Message Access Protocol (IMAP) \%-
URLAUTH Extension", RFC 4467, May 2006.
.ti 3
[RFC4733] Schulzrinne, H. and T. Taylor, "RTP Payload for DTMF
Digits, Telephony Tones, and Telephony Signals", RFC 4733,
December 2006.
.ti 3
[RFC4960] Stewart, R., "Stream Control Transmission Protocol", RFC
4960, September 2007.
.ti 3
[RFC6454] Barth, A., "The Web Origin Concept", RFC 6454, December
2011.
.in 3
\%[W3C.REC-emma-20090210]
.in 14
Johnston, M., Baggia, P., Burnett, D., Carter, J., Dahl,
D., McCobb, G., and D. Raggett, "EMMA: Extensible
MultiModal Annotation markup language", World Wide Web
Consortium Recommendation \%REC-emma-20090210, February
2009, \%<http://www.w3.org/TR/2009/REC-emma-20090210>.
.in 3
\%[W3C.REC-pronunciation-lexicon-20081014]
.in 14
Baggia, P., Bagshaw, P., Burnett, D., Carter, J., and F.
Scahill, "Pronunciation Lexicon Specification (PLS)",
World Wide Web Consortium Recommendation \%REC-
\%pronunciation-lexicon-20081014, October 2008,
<http://www.w3.org/TR/2008/
\%REC-pronunciation-lexicon-20081014>.
.in 3
\%[W3C.REC-voicexml20-20040316]
.in 14
Rehor, K., Ferrans, J., Tryphonas, S., Burnett, D.,
Carter, J., McGlashan, S., Porter, B., Hunt, A.,
Danielsen, P., and B. Lucas, "Voice Extensible Markup
Language (VoiceXML) Version 2.0", World Wide Web
Consortium Recommendation \%REC-voicexml20-20040316, March
2004, \%<http://www.w3.org/TR/2004/REC-voicexml20-20040316>.
.in 3
[refs.javaSpeechGrammarFormat]
.in 14
Sun Microsystems, "Java Speech Grammar Format Version
1.0", October 1998.
.bp
.in 13
.ti 0
Appendix\0A. Contributors
.in 0
.nf
Pierre Forgues
Nuance Communications Ltd.
1500 University Street
Suite 935
Montreal, Quebec
Canada H3A 3S7
EMail: forgues@nuance.com
Charles Galles
Intervoice, Inc.
17811 Waterview Parkway
Dallas, Texas 75252
USA
EMail: charles.galles@intervoice.com
Klaus Reifenrath
Scansoft, Inc
Guldensporenpark 32
Building D
9820 Merelbeke
Belgium
EMail: klaus.reifenrath@scansoft.com
.fi
.in 3
.in 13
.ti 0
Appendix\0B. Acknowledgements
.bp
.in 0
.nf
Andre Gillet (Nuance Communications)
Andrew Hunt (ScanSoft)
Andrew Wahbe (Genesys)
Aaron Kneiss (ScanSoft)
Brian Eberman (ScanSoft)
Corey Stohs (Cisco Systems, Inc.)
Dave Burke (VoxPilot)
Jeff Kusnitz (IBM Corp)
Ganesh N. Ramaswamy (IBM Corp)
Klaus Reifenrath (ScanSoft)
Kristian Finlator (ScanSoft)
Magnus Westerlund (Ericsson)
Martin Dragomirecky (Cisco Systems, Inc.)
Paolo Baggia (Loquendo)
Peter Monaco (Nuance Communications)
Pierre Forgues (Nuance Communications)
Ran Zilca (IBM Corp)
Suresh Kaliannan (Cisco Systems, Inc.)
Skip Cave (Intervoice, Inc.)
Thomas Gal (LumenVox)
.fi
.in 3
The chairs of the SPEECHSC work group are Eric Burger (Georgetown
University) and Dave Oran (Cisco Systems, Inc.).
Many thanks go in particular to Robert Sparks, Alex Agranovsky, and
Henry Phan, who were there at the end to dot all the i's and cross
all the t's.
.in 0
Authors' Addresses
.nf
Daniel C. Burnett
Voxeo
189 South Orange Avenue #1000
Orlando, FL 32801
USA
EMail: dburnett@voxeo.com
.fi
.in 3
.in 0
.nf
Saravanan Shanmugham
Cisco Systems, Inc.
170 W. Tasman Dr.
San Jose, CA 95134
USA
EMail: sarvi@cisco.com
.fi
.in 3
|