speak-ng.1.ronn 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # speak-ng - A multi-lingual software speech synthesizer.
  2. ## SYNOPSIS
  3. __speak-ng__ [<options>] [<&lt;words&gt;>]
  4. ## DESCRIPTION
  5. __speak-ng__ is a software speech synthesizer for English, and some other
  6. languages.
  7. ## OPTIONS
  8. * `-h`, `--help`:
  9. Show summary of options.
  10. * `--version`:
  11. Prints the espeak library version and the location of the espeak voice
  12. data.
  13. * `-f <text file>`:
  14. Text file to speak.
  15. * `--stdin`:
  16. Read text input from stdin instead of a file.
  17. If neither -f nor --stdin are provided, &lt;words&gt; are spoken, or if no
  18. words are provided then text is spoken from stdin a line at a time.
  19. * `-q`:
  20. Quiet, don't produce any speech (may be useful with -x).
  21. * `-a <integer>`:
  22. Amplitude, 0 to 200, default is 100.
  23. * `-g <integer>`:
  24. Word gap. Pause between words, units of 10ms at the default speed.
  25. * `-k <integer>`:
  26. Indicate capital letters with: 1=sound, 2=the word "capitals", higher
  27. values = a pitch increase (try -k20).
  28. * `-l <integer>`:
  29. Line length. If not zero (which is the default), consider lines less than
  30. this length as end-of-clause.
  31. * `-p <integer>`:
  32. Pitch adjustment, 0 to 99, default is 50.
  33. * `-s <integer>`:
  34. Speed in words per minute, default is 160.
  35. * `-v <voice name>`:
  36. Use voice file of this name from espeak-ng-data/voices. A variant can be
  37. specified using <voice>+<variant>, such as af+m3.
  38. * `-w <wave file name>`:
  39. Write output to this WAV file, rather than speaking it directly.
  40. * `--split=<minutes>`:
  41. Used with `-w` to split the audio output into &lt;minutes&gt; recorded
  42. chunks.
  43. * `-b`:
  44. Input text encoding, 1=UTF8, 2=8 bit, 4=16 bit.
  45. * `-m`:
  46. Indicates that the text contains SSML (Speech Synthesis Markup Language)
  47. tags or other XML tags. Those SSML tags which are supported are
  48. interpreted. Other tags, including HTML, are ignored, except that some HTML
  49. tags such as &lt;hr&gt; &lt;h2&gt; and &lt;li&gt; ensure a break in the
  50. speech.
  51. * `-x`:
  52. Write phoneme mnemonics to stdout.
  53. * `-X`:
  54. Write phonemes mnemonics and translation trace to stdout. If rules files
  55. have been built with --compile=debug, line numbers will also be displayed.
  56. * `-z`:
  57. No final sentence pause at the end of the text.
  58. * `--stdout`:
  59. Write speech output to stdout.
  60. * `--compile=voicename`:
  61. Compile the pronunciation rules and dictionary in the current directory.
  62. =&lt;voicename&lt; is optional and specifies which language is compiled.
  63. * `--compile-debug=voicename`:
  64. Compile the pronunciation rules and dictionary in the current directory as
  65. above, but include line numbers, that get shown when -X is used.
  66. * `--ipa`:
  67. Write phonemes to stdout using International Phonetic Alphabet. --ipa=1 Use
  68. ties, --ipa=2 Use ZWJ, --ipa=3 Separate with _.
  69. * `--tie=<character>`:
  70. The character to use to join multi-letter phonemes in -x and --ipa output.
  71. * `--path=<path>`:
  72. Specifies the directory containing the espeak-ng-data directory.
  73. * `--pho`:
  74. Write mbrola phoneme data (.pho) to stdout or to the file in --phonout.
  75. * `--phonout=<filename>`:
  76. Write output from -x -X commands and mbrola phoneme data to this file.
  77. * `--punct="<characters>"`:
  78. Speak the names of punctuation characters during speaking. If
  79. =&lt;characters&gt; is omitted, all punctuation is spoken.
  80. * `--sep=<character>`:
  81. The character to separate phonemes from the -x and --ipa output.
  82. * `--voices[=<language code>]`:
  83. Lists the available voices. If =&lt;language code&gt; is present then only
  84. those voices which are suitable for that language are listed.
  85. * `--voices=<directory>`:
  86. Lists the voices in the specified subdirectory.
  87. ## EXAMPLES
  88. * `speak-ng "This is a test"`:
  89. Speak the sentence "This is a test" using the default English voice.
  90. * `speak-ng -f hello.txt`:
  91. Speak the contents of hello.txt using the default English voice.
  92. * `cat hello.txt | speak-ng`:
  93. Speak the contents of hello.txt using the default English voice.
  94. * `speak-ng -x hello`:
  95. Speak the word "hello" using the default English voice, and print the
  96. phonemes that were spoken.
  97. * `speak-ng -ven-us "[[h@'loU]]"`:
  98. Speak the phonemes "h@'loU" using the American English voice.
  99. * `speak-ng --voices`:
  100. List all voices supported by eSpeak.
  101. * `speak-ng --voices=en`:
  102. List all voices that speak English (`en`).
  103. * `speak-ng --voices=mb`:
  104. List all voices using the MBROLA voice synthesizer.
  105. ## AUTHOR
  106. eSpeak NG is maintained by Reece H. Dunn <msclrhd@gmail.com>. It is based on
  107. eSpeak by Jonathan Duddington <jonsd@jsd.clara.co.uk>.
  108. This manual page is based on the eSpeak page written by Luke Yelavich
  109. <themuso@ubuntu.com> for the Ubuntu project.