freeswitch/libs/unimrcp/conf/umcscenarios.xml

118 lines
4.0 KiB
XML

<?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>