<?xml version="1.0" encoding="UTF-8"?>
<!-- UniMRCP client document -->
<unimrcpclient xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
               xsi:noNamespaceSchemaLocation="../unimrcpclient.xsd" 
               version="1.0">
  <settings>
    <!-- SIP MRCPv2 settings -->
    <sip-settings id="Nuance-SIP-Settings">
      <!-- Server address should be explicitly specified, it defaults to "ip" address set in the properties. -->
      <!-- <server-ip>10.10.0.1</server-ip> -->
      <server-port>5060</server-port>
      <!-- <force-destination>true</force-destination> -->
      <!-- <feature-tags>*;+mrcpv2.speechrecog;+mrcpv2.speechrecog.grammars="http://grammars.example.com/biggrammar.gram"</feature-tags> -->
    </sip-settings>
    
    <!-- RTSP MRCPv1 settings -->
    <rtsp-settings id="Nuance-RTSP-Settings">
      <!-- Server address should be explicitly specified, it defaults to "ip" address set in the properties. -->
      <!-- <server-ip>10.10.0.1</server-ip> -->
      <server-port>4900</server-port>
      <!-- <force-destination>true</force-destination> -->
      <resource-location>media</resource-location>
      <resource-map>
        <param name="speechsynth" value="speechsynthesizer"/>
        <param name="speechrecog" value="speechrecognizer"/>
      </resource-map>
    </rtsp-settings>

    <!-- RTP/RTCP settings -->
    <rtp-settings id="Nuance-RTP-Settings">
      <jitter-buffer>
        <adaptive>1</adaptive>
        <playout-delay>50</playout-delay>
        <max-playout-delay>600</max-playout-delay>
        <time-skew-detection>1</time-skew-detection>
      </jitter-buffer>
      <ptime>20</ptime>
      <codecs>PCMU PCMA L16/96/8000 telephone-event/101/8000</codecs>
      <!-- enable/disable RTCP support -->
      <rtcp enable="true">
        <!-- RTCP BYE policies (RTCP must be enabled first)
              0 - disable RTCP BYE
              1 - send RTCP BYE at the end of session
              2 - send RTCP BYE also at the end of each talkspurt (input)
        -->
        <rtcp-bye>2</rtcp-bye>
        <!-- rtcp transmission interval in msec (set 0 to disable) -->
        <tx-interval>5000</tx-interval>
        <!-- period (timeout) to check for new rtcp messages in msec (set 0 to disable) -->
        <rx-resolution>1000</rx-resolution>
      </rtcp>
    </rtp-settings>

  </settings>
  
  <profiles>
    <!-- Nuance MRCPv2 profile -->
    <mrcpv2-profile id="nss2">
      <sip-uac>SIP-Agent-1</sip-uac>
      <mrcpv2-uac>MRCPv2-Agent-1</mrcpv2-uac>
      <media-engine>Media-Engine-1</media-engine>
      <rtp-factory>RTP-Factory-1</rtp-factory>
      <sip-settings>Nuance-SIP-Settings</sip-settings>
      <rtp-settings>Nuance-RTP-Settings</rtp-settings>
    </mrcpv2-profile>
    
    <!-- Nuance MRCPv1 profile -->
    <mrcpv1-profile id="nss1">
      <rtsp-uac>RTSP-Agent-1</rtsp-uac>
      <media-engine>Media-Engine-1</media-engine>
      <rtp-factory>RTP-Factory-1</rtp-factory>
      <rtsp-settings>Nuance-RTSP-Settings</rtsp-settings>
      <rtp-settings>Nuance-RTP-Settings</rtp-settings>
    </mrcpv1-profile>

    <!-- more profiles might be added here -->
  </profiles>
</unimrcpclient>
