2
0

umcscenarios.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. UniMRCP Client Scenarios.
  4. There are predefined, named scenarios, which you can customize and use.
  5. Currently available scenarios are
  6. 1. class="Synthesizer"
  7. 2. class="Recognizer"
  8. 3. class="Recorder"
  9. 4. class="DtmfRecognizer"
  10. 5. class="Params"
  11. 6. class="Verifier"
  12. More than one scenario of the same type (class) can be defined.
  13. The name (not class) of the scenario is used to run it from console.
  14. For instance,
  15. > run synth
  16. -->
  17. <umcscenarios>
  18. <scenario name="synth" class="Synthesizer" profile="uni2">
  19. <resource-discovery enable="0"/>
  20. <speak enable="1" content-type="application/synthesis+ssml" content-location="speak.xml"/>
  21. <!-- <speak enable="1" content-type="text/plain" content-location="speak.txt"/> -->
  22. <termination enable="1">
  23. <capabilities>
  24. <codec name="LPCM" rates="8000 16000"/>
  25. <!-- <codec name="PCMU" rates="8000 16000"/> -->
  26. </capabilities>
  27. </termination>
  28. <!--
  29. <rtp-termination enable="1" ip="127.0.0.1" port="5678">
  30. <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
  31. </rtp-termination>
  32. -->
  33. </scenario>
  34. <scenario name="recog" class="Recognizer" profile="uni2">
  35. <resource-discovery enable="0"/>
  36. <define-grammar enable="1" content-type="application/srgs+xml" content-location="grammar.xml"/>
  37. <!-- <define-grammar enable="1" content-type="application/grammar+xml" content-location="grammar.xml"/> -->
  38. <!-- <define-grammar enable="1" content-type="application/x-jsgf" content-location="grammar.jsgf"/> -->
  39. <recognize enable="1"/>
  40. <!-- <recognize enable="1" audio-source="one-8kHz.pcm"/> -->
  41. <!-- <recognize enable="1" content-type="application/srgs+xml" content-location="grammar.xml"/> -->
  42. <termination enable="1">
  43. <capabilities>
  44. <codec name="LPCM" rates="8000 16000"/>
  45. <!-- <codec name="PCMU" rates="8000 16000"/> -->
  46. </capabilities>
  47. </termination>
  48. <!--
  49. <rtp-termination enable="1" ip="127.0.0.1" port="5678">
  50. <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
  51. </rtp-termination>
  52. -->
  53. </scenario>
  54. <scenario name="rec" class="Recorder" profile="uni2">
  55. <resource-discovery enable="0"/>
  56. <record enable="1"/>
  57. <termination enable="1">
  58. <capabilities>
  59. <codec name="LPCM" rates="8000 16000"/>
  60. <!-- <codec name="PCMU" rates="8000 16000"/> -->
  61. </capabilities>
  62. </termination>
  63. <!--
  64. <rtp-termination enable="1" ip="127.0.0.1" port="5678">
  65. <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
  66. </rtp-termination>
  67. -->
  68. </scenario>
  69. <scenario name="dtmf" class="DtmfRecognizer" profile="uni2">
  70. <resource-discovery enable="0"/>
  71. <recognize enable="1" content-type="text/uri-list" grammar="builtin:dtmf/digits" digits="1234"/> -->
  72. <termination enable="1">
  73. <capabilities>
  74. <codec name="LPCM" rates="8000 16000"/>
  75. <!-- <codec name="PCMU" rates="8000 16000"/> -->
  76. </capabilities>
  77. </termination>
  78. <!--
  79. <rtp-termination enable="1" ip="127.0.0.1" port="5678">
  80. <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
  81. </rtp-termination>
  82. -->
  83. </scenario>
  84. <scenario name="params" class="Params" profile="uni2"/>
  85. <scenario name="verify" class="Verifier" profile="uni2">
  86. <resource-discovery enable="0"/>
  87. <verify repository-uri="http://www.example.com/voiceprintdbase/" verification-mode="verify" voiceprint-identifier="johnsmith"/>
  88. <termination enable="1">
  89. <capabilities>
  90. <codec name="LPCM" rates="8000 16000"/>
  91. <!-- <codec name="PCMU" rates="8000 16000"/> -->
  92. </capabilities>
  93. </termination>
  94. <!--
  95. <rtp-termination enable="1" ip="127.0.0.1" port="5678">
  96. <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
  97. </rtp-termination>
  98. -->
  99. </scenario>
  100. <!-- It'd be great to have scriptable custom scenarios as well.
  101. <scenario name="custom" class="UmcXml">
  102. </scenario>
  103. -->
  104. </umcscenarios>