123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- UniMRCP Client Scenarios.
- There are predefined, named scenarios, which you can customize and use.
- Currently available scenarios are
- 1. class="Synthesizer"
- 2. class="Recognizer"
- 3. class="Recorder"
- 4. class="DtmfRecognizer"
- 5. class="Params"
- 6. class="Verifier"
- More than one scenario of the same type (class) can be defined.
- The name (not class) of the scenario is used to run it from console.
- For instance,
- > run synth
- -->
- <umcscenarios>
- <scenario name="synth" class="Synthesizer" profile="uni2">
- <resource-discovery enable="0"/>
- <speak enable="1" content-type="application/synthesis+ssml" content-location="speak.xml"/>
- <!-- <speak enable="1" content-type="text/plain" content-location="speak.txt"/> -->
- <termination enable="1">
- <capabilities>
- <codec name="LPCM" rates="8000 16000"/>
- <!-- <codec name="PCMU" rates="8000 16000"/> -->
- </capabilities>
- </termination>
- <!--
- <rtp-termination enable="1" ip="127.0.0.1" port="5678">
- <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
- </rtp-termination>
- -->
- </scenario>
- <scenario name="recog" class="Recognizer" profile="uni2">
- <resource-discovery enable="0"/>
- <define-grammar enable="1" content-type="application/srgs+xml" content-location="grammar.xml"/>
- <!-- <define-grammar enable="1" content-type="application/grammar+xml" content-location="grammar.xml"/> -->
- <!-- <define-grammar enable="1" content-type="application/x-jsgf" content-location="grammar.jsgf"/> -->
- <recognize enable="1"/>
- <!-- <recognize enable="1" audio-source="one-8kHz.pcm"/> -->
- <!-- <recognize enable="1" content-type="application/srgs+xml" content-location="grammar.xml"/> -->
- <termination enable="1">
- <capabilities>
- <codec name="LPCM" rates="8000 16000"/>
- <!-- <codec name="PCMU" rates="8000 16000"/> -->
- </capabilities>
- </termination>
- <!--
- <rtp-termination enable="1" ip="127.0.0.1" port="5678">
- <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
- </rtp-termination>
- -->
- </scenario>
- <scenario name="rec" class="Recorder" profile="uni2">
- <resource-discovery enable="0"/>
- <record enable="1"/>
- <termination enable="1">
- <capabilities>
- <codec name="LPCM" rates="8000 16000"/>
- <!-- <codec name="PCMU" rates="8000 16000"/> -->
- </capabilities>
- </termination>
- <!--
- <rtp-termination enable="1" ip="127.0.0.1" port="5678">
- <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
- </rtp-termination>
- -->
- </scenario>
- <scenario name="dtmf" class="DtmfRecognizer" profile="uni2">
- <resource-discovery enable="0"/>
- <recognize enable="1" content-type="text/uri-list" grammar="builtin:dtmf/digits" digits="1234"/> -->
- <termination enable="1">
- <capabilities>
- <codec name="LPCM" rates="8000 16000"/>
- <!-- <codec name="PCMU" rates="8000 16000"/> -->
- </capabilities>
- </termination>
- <!--
- <rtp-termination enable="1" ip="127.0.0.1" port="5678">
- <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
- </rtp-termination>
- -->
- </scenario>
- <scenario name="params" class="Params" profile="uni2"/>
- <scenario name="verify" class="Verifier" profile="uni2">
- <resource-discovery enable="0"/>
- <verify repository-uri="http://www.example.com/voiceprintdbase/" verification-mode="verify" voiceprint-identifier="johnsmith"/>
- <termination enable="1">
- <capabilities>
- <codec name="LPCM" rates="8000 16000"/>
- <!-- <codec name="PCMU" rates="8000 16000"/> -->
- </capabilities>
- </termination>
- <!--
- <rtp-termination enable="1" ip="127.0.0.1" port="5678">
- <codecs="PCMU PCMA L16/96/8000 PCMU/97/16000 telephone-event/101/8000"/>
- </rtp-termination>
- -->
- </scenario>
- <!-- It'd be great to have scriptable custom scenarios as well.
- <scenario name="custom" class="UmcXml">
- </scenario>
- -->
- </umcscenarios>
|