synthesis-core.xsd
上传用户:xqtpzdz
上传日期:2022-05-21
资源大小:1764k
文件大小:14k
源码类别:

xml/soap/webservice

开发平台:

Visual C++

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  3.     elementFormDefault="qualified">
  4. <xsd:annotation>
  5.         <xsd:documentation>SSML 1.0 Core Schema (20040615)</xsd:documentation>
  6. </xsd:annotation>
  7. <xsd:annotation>
  8. <xsd:documentation>
  9. Copyright 1998-2004 W3C (MIT, ERCIM, Keio),
  10. All Rights Reserved. Permission to use, copy, modify and
  11. distribute the SSML core schema and its accompanying documentation
  12. for any purpose and without fee is hereby granted in
  13. perpetuity, provided that the above copyright notice and this
  14. paragraph appear in all copies.  The copyright holders make no
  15. representation about the suitability of the schema for any purpose. 
  16. It is provided "as is" without expressed or implied warranty.
  17. </xsd:documentation>
  18. </xsd:annotation>
  19. <xsd:annotation>
  20. <xsd:documentation>Importing dependent namespaces</xsd:documentation>
  21. </xsd:annotation>
  22. <xsd:import namespace="http://www.w3.org/XML/1998/namespace" 
  23.             schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  24. <xsd:annotation>
  25. <xsd:documentation>General Datatypes</xsd:documentation>
  26. </xsd:annotation>
  27. <xsd:simpleType name="duration">
  28. <xsd:annotation>
  29. <xsd:documentation>Duration follows "Times" in CCS
  30. specification; e.g. "25ms", "3s" 
  31. </xsd:documentation>
  32. </xsd:annotation>
  33. <xsd:restriction base="xsd:string">
  34.         <xsd:pattern value="(+)?([0-9]*.)?[0-9]+(ms|s)"/>
  35. </xsd:restriction>
  36. </xsd:simpleType>
  37. <xsd:simpleType name="number">
  38. <xsd:annotation>
  39. <xsd:documentation>number: e.g. 10, 5.5, 1.5, 9., .45 
  40.       </xsd:documentation>
  41. </xsd:annotation>
  42. <xsd:restriction base="xsd:decimal">
  43. <xsd:minInclusive value="0"/>
  44. </xsd:restriction>
  45. </xsd:simpleType>
  46. <xsd:simpleType name="relative">
  47. <xsd:annotation>
  48. <xsd:documentation>Modeled on number datatype: e.g. +4.5, -.45
  49.       </xsd:documentation>
  50. </xsd:annotation>
  51. <xsd:restriction base="xsd:string">
  52. <xsd:pattern value="[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)"/>
  53. </xsd:restriction>
  54. </xsd:simpleType>
  55. <xsd:simpleType name="percent">
  56. <xsd:annotation>
  57. <xsd:documentation>Modeled on number datatype: e.g. +4.5%, -.45%
  58.       </xsd:documentation>
  59. </xsd:annotation>
  60. <xsd:restriction base="xsd:string">
  61. <xsd:pattern value="[+-]?([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)%"/>
  62. </xsd:restriction>
  63. </xsd:simpleType>
  64. <xsd:simpleType name="semitone">
  65. <xsd:annotation>
  66. <xsd:documentation>Modeled on relative datatype: e.g. +4.5st, -.45st
  67.       </xsd:documentation>
  68. </xsd:annotation>
  69. <xsd:restriction base="xsd:string">
  70. <xsd:pattern value="[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)st"/>
  71. </xsd:restriction>
  72. </xsd:simpleType>
  73. <xsd:simpleType name="hertz.number">
  74. <xsd:annotation>
  75. <xsd:documentation>number Hertz: e.g. 10Hz, 5.5Hz, 1.5Hz,, 9.Hz,, .45Hz 
  76.       </xsd:documentation>
  77. </xsd:annotation>
  78. <xsd:restriction base="xsd:string">
  79. <xsd:pattern value="([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)Hz"/>
  80. </xsd:restriction>
  81. </xsd:simpleType>
  82. <xsd:simpleType name="hertz.relative">
  83. <xsd:annotation>
  84. <xsd:documentation>relative Hertz: e.g. +10Hz, -5.5Hz, +1.5Hz, +9.Hz,+.45Hz 
  85.       </xsd:documentation>
  86. </xsd:annotation>
  87. <xsd:restriction base="xsd:string">
  88. <xsd:pattern value="[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)Hz"/>
  89. </xsd:restriction>
  90. </xsd:simpleType>
  91. <xsd:simpleType name="volume.number">
  92. <xsd:annotation>
  93. <xsd:documentation>Modeled on number datatype: 0.0 - 100.0
  94. </xsd:documentation>
  95. </xsd:annotation>
  96. <xsd:restriction base="number">
  97. <xsd:minInclusive value="0.0"/>
  98. <xsd:maxInclusive value="100.0"/>
  99. </xsd:restriction>
  100. </xsd:simpleType>
  101. <xsd:simpleType name="height.scale">
  102. <xsd:annotation>
  103. <xsd:documentation>descriptive values for height</xsd:documentation>
  104. </xsd:annotation>
  105. <xsd:restriction base="xsd:string">
  106. <xsd:enumeration value="x-high"/>
  107. <xsd:enumeration value="high"/>
  108. <xsd:enumeration value="medium"/>
  109. <xsd:enumeration value="low"/>
  110. <xsd:enumeration value="x-low"/>
  111. <xsd:enumeration value="default"/>
  112. </xsd:restriction>
  113. </xsd:simpleType>
  114. <xsd:simpleType name="speed.scale">
  115. <xsd:annotation>
  116. <xsd:documentation>descriptive values for speed</xsd:documentation>
  117. </xsd:annotation>
  118. <xsd:restriction base="xsd:string">
  119. <xsd:enumeration value="x-fast"/>
  120. <xsd:enumeration value="fast"/>
  121. <xsd:enumeration value="medium"/>
  122. <xsd:enumeration value="slow"/>
  123. <xsd:enumeration value="x-slow"/>
  124. <xsd:enumeration value="default"/>
  125. </xsd:restriction>
  126. </xsd:simpleType>
  127. <xsd:simpleType name="volume.scale">
  128. <xsd:annotation>
  129. <xsd:documentation>descriptive values for volume</xsd:documentation>
  130. </xsd:annotation>
  131. <xsd:restriction base="xsd:string">
  132. <xsd:enumeration value="silent"/>
  133. <xsd:enumeration value="x-soft"/>
  134. <xsd:enumeration value="soft"/>
  135. <xsd:enumeration value="medium"/>
  136. <xsd:enumeration value="loud"/>
  137. <xsd:enumeration value="x-loud"/>
  138. <xsd:enumeration value="default"/>
  139. </xsd:restriction>
  140. </xsd:simpleType>
  141. <xsd:simpleType name="pitch.datatype">
  142. <xsd:union memberTypes="hertz.number hertz.relative percent semitone height.scale"/>
  143. </xsd:simpleType>
  144. <xsd:simpleType name="range.datatype">
  145.        <xsd:union memberTypes="hertz.number hertz.relative percent semitone height.scale"/>
  146. </xsd:simpleType>
  147. <xsd:simpleType name="rate.datatype">
  148. <xsd:union memberTypes="number percent speed.scale"/>
  149. </xsd:simpleType>
  150. <xsd:simpleType name="volume.datatype">
  151. <xsd:union memberTypes="volume.number relative percent volume.scale"/>
  152. </xsd:simpleType>
  153. <xsd:simpleType name="contourpoint.datatype">
  154. <xsd:annotation>
  155. <xsd:documentation>(Number%,pitch.datatype) </xsd:documentation>
  156.    </xsd:annotation>
  157. <xsd:restriction base="xsd:string">
  158.     <xsd:pattern value="(([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)%,(([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)Hz|[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)Hz|[+-]?([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)%|[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)st|x-high|high|medium|low|x-low|default))"/>
  159. </xsd:restriction>
  160. </xsd:simpleType>
  161. <xsd:simpleType name="contour.datatype">
  162. <xsd:annotation>
  163. <xsd:documentation>list of whitespace separated contourpoints </xsd:documentation>
  164.    </xsd:annotation>
  165. <xsd:list itemType="contourpoint.datatype"/>
  166. </xsd:simpleType>
  167. <xsd:simpleType name="gender.datatype">
  168. <xsd:restriction base="xsd:string">
  169. <xsd:enumeration value="male"/>
  170. <xsd:enumeration value="female"/>
  171. <xsd:enumeration value="neutral"/>
  172. </xsd:restriction>
  173. </xsd:simpleType>
  174. <xsd:simpleType name="level.datatype">
  175. <xsd:restriction base="xsd:string">
  176. <xsd:enumeration value="strong"/>
  177. <xsd:enumeration value="moderate"/>
  178. <xsd:enumeration value="none"/>
  179. <xsd:enumeration value="reduced"/>
  180. </xsd:restriction>
  181. </xsd:simpleType>
  182. <xsd:simpleType name="strength.datatype">
  183. <xsd:restriction base="xsd:string">
  184. <xsd:enumeration value="none"/>
  185. <xsd:enumeration value="x-weak"/>
  186. <xsd:enumeration value="weak"/>
  187. <xsd:enumeration value="medium"/>
  188. <xsd:enumeration value="strong"/>
  189. <xsd:enumeration value="x-strong"/>
  190. </xsd:restriction>
  191. </xsd:simpleType>
  192. <xsd:simpleType name="version.datatype">
  193.   <xsd:restriction base="xsd:NMTOKEN"/>
  194. </xsd:simpleType>
  195. <xsd:simpleType name="voicename.datatype">
  196.  <xsd:restriction base="xsd:token">
  197.    <xsd:pattern value="S+"/>
  198.  </xsd:restriction>
  199. </xsd:simpleType>
  200. <xsd:simpleType name="voicenames.datatype">
  201.  <xsd:list itemType="voicename.datatype"/>
  202. </xsd:simpleType>
  203. <xsd:simpleType name="alphabet.datatype">
  204.  <xsd:restriction base="xsd:string">
  205.    <xsd:pattern value="(ipa|x-.*)"/>
  206.  </xsd:restriction>
  207. </xsd:simpleType>
  208. <xsd:annotation>
  209. <xsd:documentation>Attributes and Groups</xsd:documentation>
  210. </xsd:annotation>
  211. <xsd:attributeGroup name="speak.attribs">
  212. <xsd:attribute name="version" type="version.datatype"/>
  213. <xsd:attribute ref="xml:lang"/>
  214.         <xsd:attribute ref="xml:base"/>
  215. </xsd:attributeGroup>
  216. <xsd:annotation>
  217. <xsd:documentation>Content Models</xsd:documentation>
  218. </xsd:annotation>
  219. <xsd:group name="allowed-within-sentence">
  220. <xsd:choice>
  221. <xsd:element ref="aws"/>
  222. </xsd:choice>
  223. </xsd:group>
  224. <xsd:group name="paragraph.class">
  225.         <xsd:sequence>
  226. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  227. <xsd:group ref="allowed-within-sentence"/>
  228. <xsd:element ref="s"/>
  229. </xsd:choice>
  230.         </xsd:sequence>
  231. </xsd:group>
  232. <xsd:group name="sentence.class">
  233. <xsd:sequence>
  234. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  235. <xsd:group ref="allowed-within-sentence"/>
  236. </xsd:choice>
  237. </xsd:sequence>
  238. </xsd:group>
  239. <xsd:group name="sentenceAndStructure.class">
  240.         <xsd:sequence>
  241. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  242. <xsd:group ref="allowed-within-sentence"/>
  243. <xsd:group ref="structure"/>
  244. </xsd:choice>
  245.         </xsd:sequence>
  246. </xsd:group>
  247. <xsd:group name="descAndSentenceAndStructure.class">
  248.         <xsd:sequence>
  249. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  250. <xsd:group ref="sentenceAndStructure.class"/>
  251. <xsd:element ref="desc"/>
  252. </xsd:choice>
  253.         </xsd:sequence>
  254. </xsd:group>
  255. <xsd:group name="speak.class">
  256.         <xsd:sequence>
  257. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  258.      <xsd:element name="meta" type="ssml-meta"/>
  259.      <xsd:element name="metadata" type="ssml-metadata"/>
  260.    <xsd:element name="lexicon"  type="ssml-lexicon"/>
  261. </xsd:choice>
  262.                 <xsd:group ref="sentenceAndStructure.class" minOccurs="0" maxOccurs="unbounded"/>
  263.         </xsd:sequence>
  264. </xsd:group>
  265. <xsd:annotation>
  266.   <xsd:documentation>Elements</xsd:documentation>
  267. </xsd:annotation>
  268. <xsd:element name="aws" abstract="true">
  269. <xsd:annotation>
  270. <xsd:documentation>The 'allowed-within-sentence' group uses this abstract element.</xsd:documentation>
  271. </xsd:annotation>
  272. </xsd:element>
  273. <xsd:element name="struct" abstract="true"/>
  274. <xsd:group name="structure">
  275. <xsd:choice>
  276. <xsd:element ref="struct"/>
  277. </xsd:choice>
  278. </xsd:group>
  279. <xsd:element name="speak" type="speak"/>
  280. <xsd:complexType name="speak" mixed="true">
  281. <xsd:group ref="speak.class"/>
  282. <xsd:attributeGroup ref="speak.attribs"/>
  283. </xsd:complexType>
  284. <xsd:element name="p" type="paragraph" substitutionGroup="struct"/>
  285. <xsd:complexType name="paragraph" mixed="true">
  286. <xsd:group ref="paragraph.class"/>
  287. <xsd:attribute ref="xml:lang"/>
  288. </xsd:complexType>
  289. <xsd:element name="s" type="sentence" substitutionGroup="struct"/>
  290. <xsd:complexType name="sentence" mixed="true">
  291. <xsd:group ref="sentence.class"/>
  292. <xsd:attribute ref="xml:lang"/>
  293. </xsd:complexType>
  294. <xsd:element name="voice" type="voice" substitutionGroup="aws"/>
  295. <xsd:complexType name="voice" mixed="true">
  296. <xsd:group ref="sentenceAndStructure.class"/>
  297. <xsd:attribute name="gender" type="gender.datatype"/>
  298. <xsd:attribute name="age" type="xsd:nonNegativeInteger"/>
  299. <xsd:attribute name="variant" type="xsd:positiveInteger"/>
  300. <xsd:attribute name="name" type="voicenames.datatype"/>
  301. <xsd:attribute ref="xml:lang"/>
  302. </xsd:complexType>
  303. <xsd:element name="prosody" type="prosody" substitutionGroup="aws"/>
  304. <xsd:complexType name="prosody" mixed="true">
  305. <xsd:group ref="sentenceAndStructure.class"/>
  306. <xsd:attribute name="pitch" type="pitch.datatype"/>
  307. <xsd:attribute name="contour" type="contour.datatype"/>
  308. <xsd:attribute name="range" type="range.datatype"/>
  309. <xsd:attribute name="rate" type="rate.datatype"/>
  310. <xsd:attribute name="duration" type="duration"/>
  311. <xsd:attribute name="volume" type="volume.datatype" default="100.0"/>
  312. </xsd:complexType>
  313. <xsd:element name="audio" type="audio" substitutionGroup="aws"/>
  314. <xsd:complexType name="audio" mixed="true">
  315.   <xsd:group ref="descAndSentenceAndStructure.class"/>
  316. <xsd:attribute name="src" type="xsd:anyURI"/>
  317. </xsd:complexType>
  318. <xsd:element name="desc" type="desc"/>
  319.   <xsd:complexType name="desc">
  320. <xsd:simpleContent>
  321. <xsd:extension base="xsd:string">
  322.          <xsd:attribute ref="xml:lang"/>
  323. </xsd:extension>
  324. </xsd:simpleContent>
  325.   </xsd:complexType>
  326. <xsd:element name="emphasis" type="emphasis" substitutionGroup="aws"/>
  327. <xsd:complexType name="emphasis" mixed="true">
  328.   <xsd:group ref="sentence.class"/>
  329. <xsd:attribute name="level" type="level.datatype" default="moderate"/>
  330. </xsd:complexType>
  331. <xsd:element name="sub" type="sub" substitutionGroup="aws"/>
  332. <xsd:complexType name="sub">
  333. <xsd:simpleContent>
  334. <xsd:extension base="xsd:string">
  335. <xsd:attribute name="alias" type="xsd:string" use="required"/>
  336. </xsd:extension>
  337. </xsd:simpleContent>
  338. </xsd:complexType>
  339. <xsd:element name="say-as" type="say-as" substitutionGroup="aws"/>
  340. <xsd:complexType name="say-as" mixed="true">
  341. <xsd:attribute name="interpret-as" type="xsd:NMTOKEN" 
  342. use="required"/>
  343. <xsd:attribute name="format" type="xsd:NMTOKEN"/>
  344. <xsd:attribute name="detail" type="xsd:NMTOKEN"/>
  345. </xsd:complexType>
  346. <xsd:element name="phoneme" type="phoneme" substitutionGroup="aws"/>
  347. <xsd:complexType name="phoneme" mixed="true">
  348. <xsd:attribute name="ph" type="xsd:string" use="required"/>
  349. <xsd:attribute name="alphabet" type="alphabet.datatype"/>
  350. </xsd:complexType>
  351. <xsd:element name="break" type="break" substitutionGroup="aws"/>
  352. <xsd:complexType name="break">
  353.         <xsd:attribute name="time" type="duration"/>
  354.         <xsd:attribute name="strength" type="strength.datatype" default="medium"/>
  355. </xsd:complexType>
  356. <xsd:element name="mark" type="mark" substitutionGroup="aws"/>
  357. <xsd:complexType name="mark">
  358.           <xsd:attribute name="name" type="xsd:token"/>
  359. </xsd:complexType>
  360. <xsd:complexType name="ssml-metadata">
  361.            <xsd:choice minOccurs="0" maxOccurs="unbounded">
  362.  <xsd:any namespace="##other" processContents="lax"/>
  363.   </xsd:choice>
  364.   <xsd:anyAttribute namespace="##any" processContents="strict"/>
  365.         </xsd:complexType>
  366. <xsd:complexType name="ssml-meta">
  367.          <xsd:attribute name="name" type="xsd:NMTOKEN"/>
  368.          <xsd:attribute name="content" type="xsd:string" use="required"/>
  369.          <xsd:attribute name="http-equiv" type="xsd:NMTOKEN"/>
  370.         </xsd:complexType>
  371.        <xsd:complexType name="ssml-lexicon">
  372.           <xsd:attribute name="uri" type="xsd:anyURI" use="required"/>
  373.           <xsd:attribute name="type" type="xsd:string"/>
  374.        </xsd:complexType>
  375. </xsd:schema>