forked from Mirrors/freeswitch
c7b05ea27c
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16719 d0543943-73ff-0310-b7d9-9358b9ac24b2
100 lines
3.4 KiB
XML
100 lines
3.4 KiB
XML
<!--
|
|
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="DtmfRecofnizer"
|
|
5. class="Params"
|
|
|
|
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="MRCPv2-Default">
|
|
<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="MRCPv2-Default">
|
|
<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="MRCPv2-Default">
|
|
<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="MRCPv2-Default">
|
|
<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="MRCPv2-Default"/>
|
|
|
|
<!-- It'd be great to have scriptable custom scenarios as well.
|
|
<scenario name="custom" class="UmcXml">
|
|
</scenario>
|
|
-->
|
|
|
|
</umcscenarios>
|