eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ssml.html 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <title>eSpeak</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. </head>
  7. <body>
  8. <hr>
  9. <h2>TEXT MARKUP</h2>
  10. <hr>
  11. <h3>SSML: Speech Synthesis Markup Language</h3>
  12. The following markup tags and attributes are recognised:<p>
  13. <dl></dl>
  14. <p><b>&lt;speak&gt;</b>
  15. <ul>
  16. <li>xml:base &nbsp; (the value is just passed back as a parameter with the UriCallback() function)
  17. <li>xml:lang
  18. </ul>
  19. <p><b>&lt;voice&gt;</b>
  20. <ul>
  21. <li>xml:lang
  22. <li>name
  23. <li>age
  24. <li>variant
  25. <li>gender
  26. </ul>
  27. <p><b>&lt;prosody&gt;</b>
  28. <ul>
  29. <li>rate
  30. <li>volume
  31. <li>pitch
  32. <li>range
  33. </ul>
  34. <p><b>&lt;say-as&gt;</b>
  35. <ul>
  36. <li>interpret-as="characters"<p>
  37. The names of the characters are spoken.
  38. <li>interpret-as="characters" &nbsp;format="glyphs"<p>
  39. As "characters", but upper-case letters are prefixed with "Capital".
  40. <li>interpret-as="tts:key"<p>
  41. If the text is only one character, the name of the character is spoken, including punctuation characters. If the text is more than one character, it is spoken as words.
  42. <li>interpret-as="tts:char"<p>
  43. The name of the character is spoken, including punctuation characters.
  44. <li>interpret-as="tts:digits"<p>
  45. The digits are spoken individually.
  46. </ul>
  47. <p><b>&lt;mark&gt;</b> name
  48. <p><b>&lt;s&gt;</b>
  49. <ul>
  50. <li>xml:lang
  51. </ul>
  52. <p><b>&lt;p&gt;</b>
  53. <ul>
  54. <li>xml:lang
  55. </ul>
  56. <p><b>&lt;sub&gt;</b> alias
  57. <p><b>&lt;tts:style&gt;</b>
  58. <ul>
  59. <li>field="punctuation" &nbsp; mode=none,all,some
  60. <li>field="capital_letters" &nbsp; mode=no,spelling,icon,pitch
  61. </ul>
  62. <p><b>&lt;audio&gt;</b> src
  63. <p><b>&lt;emphasis&gt;</b>
  64. <ul>
  65. <li>level
  66. </ul>
  67. <p><b>&lt;break&gt;</b>
  68. <ul>
  69. <li>strength
  70. <li>time
  71. </ul>
  72. </dl>
  73. <hr>
  74. <h3>HTML</h3>
  75. eSpeak can speak HTML text directly, or text containing both SSML and HTML markup.<br>
  76. Any unrecognised tags are ignored.<p>
  77. The following tags case a sentence break.<br>
  78. <b>&lt;br&gt; &nbsp;
  79. &lt;li&gt; &nbsp;
  80. &lt;img&gt; &nbsp;
  81. &lt;td&gt; &nbsp;
  82. </b><p>
  83. The following tags case a paragraph break.<br>
  84. <b>&lt;h1&gt; &nbsp;
  85. &lt;h2&gt; &nbsp;
  86. &lt;h3&gt; &nbsp;
  87. &lt;h4&gt; &nbsp;
  88. &lt;hr&gt; &nbsp;
  89. </b><p>
  90. </body>
  91. </html>