2
0

unimrcpserver.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- UniMRCP server document -->
  3. <unimrcpserver xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="unimrcpserver.xsd" version="1.0">
  4. <properties>
  5. <!-- If the attribute "type" is set to "auto", IP address is
  6. determined implicitly by the hostname. This is the default setting. -->
  7. <ip type="auto"/>
  8. <!-- If the attribute "type" is set to "iface", IP address is
  9. determined by the specified name of network interface/adapter. -->
  10. <!-- <ip type="iface">eth0</ip>-->
  11. <!-- IP address can also be specified explicitly. -->
  12. <!-- <ip>10.10.0.1</ip> -->
  13. <!-- <ext-ip>a.b.c.d</ext-ip> -->
  14. </properties>
  15. <components>
  16. <!-- Factory of MRCP resources -->
  17. <resource-factory>
  18. <resource id="speechsynth" enable="true"/>
  19. <resource id="speechrecog" enable="true"/>
  20. <resource id="recorder" enable="true"/>
  21. <resource id="speakverify" enable="true"/>
  22. </resource-factory>
  23. <!-- SofiaSIP MRCPv2 signaling agent -->
  24. <sip-uas id="SIP-Agent-1" type="SofiaSIP">
  25. <!-- By default, "ip" and "ext-ip" addresses set in the properties will be used.
  26. They still can be explicitly specified (overriden) here.
  27. -->
  28. <!-- <sip-ip>10.10.0.1</sip-ip> -->
  29. <!-- <sip-ext-ip>a.b.c.d</sip-ext-ip> -->
  30. <sip-port>8060</sip-port>
  31. <sip-transport>udp,tcp</sip-transport>
  32. <!-- <force-destination>true</force-destination> -->
  33. <ua-name>UniMRCP SofiaSIP</ua-name>
  34. <sdp-origin>UniMRCPServer</sdp-origin>
  35. <!-- <sip-t1>500</sip-t1> -->
  36. <!-- <sip-t2>4000</sip-t2> -->
  37. <!-- <sip-t4>4000</sip-t4> -->
  38. <!-- <sip-t1x64>32000</sip-t1x64> -->
  39. <!-- <sip-message-output>true</sip-message-output> -->
  40. <!-- <sip-message-dump>sofia-sip-uas.log</sip-message-dump> -->
  41. </sip-uas>
  42. <!-- UniRTSP MRCPv1 signaling agent -->
  43. <rtsp-uas id="RTSP-Agent-1" type="UniRTSP">
  44. <!-- By default, "ip" and "ext-ip" addresses set in the properties will be used.
  45. They still can be explicitly specified (overriden) here.
  46. -->
  47. <!-- <rtsp-ip>10.10.0.1</rtsp-ip> -->
  48. <!-- <rtsp-ext-ip>a.b.c.d</rtsp-ext-ip> -->
  49. <rtsp-port>1554</rtsp-port>
  50. <!-- <force-destination>true</force-destination> -->
  51. <resource-map>
  52. <param name="speechsynth" value="speechsynthesizer"/>
  53. <param name="speechrecog" value="speechrecognizer"/>
  54. </resource-map>
  55. <max-connection-count>100</max-connection-count>
  56. <sdp-origin>UniMRCPServer</sdp-origin>
  57. </rtsp-uas>
  58. <!-- MRCPv2 connection agent -->
  59. <mrcpv2-uas id="MRCPv2-Agent-1">
  60. <!-- By default, "ip" set in the properties will be used.
  61. It still can be explicitly specified (overriden) here.
  62. -->
  63. <!-- <mrcp-ip>10.10.0.1</mrcp-ip> -->
  64. <mrcp-port>1544</mrcp-port>
  65. <max-connection-count>100</max-connection-count>
  66. <force-new-connection>false</force-new-connection>
  67. <rx-buffer-size>1024</rx-buffer-size>
  68. <tx-buffer-size>1024</tx-buffer-size>
  69. </mrcpv2-uas>
  70. <!-- Media processing engine -->
  71. <media-engine id="Media-Engine-1">
  72. <realtime-rate>1</realtime-rate>
  73. </media-engine>
  74. <!-- Factory of RTP terminations -->
  75. <rtp-factory id="RTP-Factory-1">
  76. <!-- By default, "ip" and "ext-ip" addresses set in the properties will be used.
  77. They still can be explicitly specified (overriden) here.
  78. -->
  79. <!-- <rtp-ip>10.10.0.1</rtp-ip> -->
  80. <!-- <rtp-ext-ip>a.b.c.d</rtp-ext-ip> -->
  81. <rtp-port-min>5000</rtp-port-min>
  82. <rtp-port-max>6000</rtp-port-max>
  83. </rtp-factory>
  84. <!-- Factory of plugins (MRCP engines) -->
  85. <plugin-factory>
  86. <engine id="Demo-Synth-1" name="demosynth" enable="true"/>
  87. <engine id="Demo-Recog-1" name="demorecog" enable="true"/>
  88. <engine id="Demo-Verifier-1" name="demoverifier" enable="true"/>
  89. <engine id="Recorder-1" name="mrcprecorder" enable="true"/>
  90. <!-- Engines may have additional named and generic params
  91. <engine id="Your-Engine-1" name="yourengine" enable="false">
  92. <max-channel-count>100</max-channel-count>
  93. <param name="..." value="..."/>
  94. </engine>
  95. -->
  96. </plugin-factory>
  97. </components>
  98. <settings>
  99. <!-- RTP/RTCP settings -->
  100. <rtp-settings id="RTP-Settings-1">
  101. <jitter-buffer>
  102. <adaptive>1</adaptive>
  103. <playout-delay>50</playout-delay>
  104. <max-playout-delay>600</max-playout-delay>
  105. <time-skew-detection>1</time-skew-detection>
  106. </jitter-buffer>
  107. <ptime>20</ptime>
  108. <codecs own-preference="false">PCMU PCMA L16/96/8000 telephone-event/101/8000</codecs>
  109. <!-- <codecs own-preference="false">PCMU PCMA L16/96/8000 PCMU/97/16000 PCMA/98/16000 L16/99/16000</codecs> -->
  110. <!-- enable/disable RTCP support -->
  111. <rtcp enable="false">
  112. <!-- RTCP BYE policies (RTCP must be enabled first)
  113. 0 - disable RTCP BYE
  114. 1 - send RTCP BYE at the end of session
  115. 2 - send RTCP BYE also at the end of each talkspurt (input)
  116. -->
  117. <rtcp-bye>1</rtcp-bye>
  118. <!-- rtcp transmission interval in msec (set 0 to disable) -->
  119. <tx-interval>5000</tx-interval>
  120. <!-- period (timeout) to check for new rtcp messages in msec (set 0 to disable) -->
  121. <rx-resolution>1000</rx-resolution>
  122. </rtcp>
  123. </rtp-settings>
  124. </settings>
  125. <profiles>
  126. <!-- MRCPv2 default profile -->
  127. <mrcpv2-profile id="uni2">
  128. <sip-uas>SIP-Agent-1</sip-uas>
  129. <mrcpv2-uas>MRCPv2-Agent-1</mrcpv2-uas>
  130. <media-engine>Media-Engine-1</media-engine>
  131. <rtp-factory>RTP-Factory-1</rtp-factory>
  132. <rtp-settings>RTP-Settings-1</rtp-settings>
  133. <!-- It's possible to define profile based map of resources and engines.
  134. <resource-engine-map>
  135. <param name="speechsynth" value="Flite-1"/>
  136. <param name="speechrecog" value="PocketSphinx-1"/>
  137. </resource-engine-map>
  138. -->
  139. </mrcpv2-profile>
  140. <!-- MRCPv1 default profile -->
  141. <mrcpv1-profile id="uni1">
  142. <rtsp-uas>RTSP-Agent-1</rtsp-uas>
  143. <media-engine>Media-Engine-1</media-engine>
  144. <rtp-factory>RTP-Factory-1</rtp-factory>
  145. <rtp-settings>RTP-Settings-1</rtp-settings>
  146. </mrcpv1-profile>
  147. <!-- more profiles might be added here -->
  148. </profiles>
  149. </unimrcpserver>