SPEAK-NG(1)
π speak-ng(1) β the manual page, but make it make sense π
okay so bestie, gather round, because we're talking about speak-ng(1) today and honestly? it's iconic. this is the manual page for it, and i'm gonna walk you through every single flag like we're texting at 2am. no cap, nothing gets skipped. π«Ά
β¨ NAME β¨
speak-ng β a multi-lingual software speech synthesizer. yes, it talks. for you. in multiple languages. main character energy fr fr. π
πΈ SYNOPSIS πΈ
speak-ng [options] [<words>]
that's it. that's the whole vibe. options, then optionally some words. slay.
π¦ DESCRIPTION π¦
speak-ng is a software speech synthesizer for English, and some other languages. literally that's the whole description and honestly it understood the assignment. it synthesizes speech. in software. π
π OPTIONS π
okay this is the part where i hold your hand through every single flag, so buckle up buttercup, we're going through all of them. π
-h,--helpβ shows you a lil summary of the options. the "what is going on" button. π--versionβ prints the espeak library version and where the espeak voice data lives. two-for-one info drop. β¨-f <text file>β the text file you want it to speak. give it a file, it reads it out loud. π--stdinβ read the text input from stdin instead of a file. pipe it in, bestie. π§
and here's the lowkey important rule: if neither -f nor --stdin are provided, then <words> are spoken β or, if no words are provided either, then text is spoken from stdin a line at a time. so it always has a plan. π
-qβ quiet mode, donΒ΄t produce any speech at all. sounds fake but it's real β and it may be useful with-x. π€«-a <integer>β amplitude,0to200, and the default is100. louder or softer, your call. π-g <integer>β word gap. that's the pause between words, measured in units of10msat the default speed. the dramatic pause setting. βΈοΈ-k <integer>β indicate capital letters with:1=sound,2=the word "capitals", and higher values = a pitch increase (try-k20). yes that's real, go be extra. π-l <integer>β line length. if it's not zero (which is the default, jsyk), then lines less than this length get treated as end-of-clause. π―-p <integer>β pitch adjustment,0to99, default is50. make it squeaky or make it dramatic. π΅-s <integer>β speed in words per minute, default is175. fast talker mode unlocked. β‘-v <voice name>β use the voice file with this name fromespeak-ng-data/voices. and plot twist: a variant can be specified usingvoice+variant, such asaf+m3. the + is doing the most and we love her. π£οΈ-w <wave file name>β write the output to this WAV file instead of speaking it directly. for the archivists. πΎ--split=<minutes>β used with-wto split the audio output into<minutes>recorded chunks. chunk it up. π°-bβ input text encoding:1=UTF8,2=8 bit,4=16 bit. pick your encoding, bestie. π€-mβ indicates that the text contains SSML (Speech Synthesis Markup Language) tags or other XML tags. those SSML tags which are supported are interpreted. other tags, including HTML, are ignored β except that some HTML tags such as<hr><h2>and<li>ensure a break in the speech. so HTML is mostly invisible but sometimes it makes the speech pause. rude but okay. π-xβ write phoneme mnemonics to stdout. the receipts of how it's saying things. π-Xβ write phonemes mnemonics and translation trace to stdout. and if the rules files have been built with--compile=debug, line numbers will also be displayed. detective mode. π-zβ no final sentence pause at the end of the text. it just. stops. π--stdoutβ write the speech output to stdout. pipe the talking. π--compile=voicenameβ compile the pronunciation rules and dictionary in the current directory.=<voicename>is optional and specifies which language is compiled. π οΈ--compile-debug=voicenameβ same as above, compile the pronunciation rules and dictionary in the current directory, but include line numbers, that get shown when-Xis used. debug girlies rise. π--ipaβ write phonemes to stdout using International Phonetic Alphabet. and the variants:--ipa=1Use ties,--ipa=2Use ZWJ,--ipa=3Separate with_. three flavours, all valid. π--tie=<character>β the character to use to join multi-letter phonemes in-xand--ipaoutput. glue, but make it a character. π§·--path=<path>β specifies the directory containing theespeak-ng-datadirectory. point it home. π--phoβ write mbrola phoneme data (.pho) to stdout or to the file in--phonout. πΌ--phonout=<filename>β write output from-x-Xcommands and mbrola phoneme data to this file. π--punct="<characters>"β speak the names of punctuation characters during speaking. and if=<characters>is omitted, all punctuation is spoken. so it'll say "comma" out loud. legendary. β--sep=<character>β the character to separate phonemes from the-xand--ipaoutput. the divider. β--voices[=<language code>]β lists the available voices. if=<language code>is present then only those voices which are suitable for that language are listed. filter that list, bestie. ποΈ--voices=<directory>β lists the voices in the specified subdirectory. different directory, different roster. π
π₯ EXAMPLES π₯
these are the copy-paste-and-go moments, keep them exactly as they are, they're precious:
speak-ng "This is a test"
speak the sentence "This is a test" using the default English voice. the classic. π€
speak-ng -f hello.txt
speak the contents of hello.txt using the default English voice. π
cat hello.txt | speak-ng
speak the contents of hello.txt using the default English voice. same energy, different pipe. π
speak-ng -x hello
speak the word "hello" using the default English voice, and print the phonemes that were spoken. show your work. βοΈ
speak-ng -ven-us "[[h@Β΄loU]]"
speak the phonemes "h@Β΄loU" using the American English voice. hand-crafted phonemes, we stan. πΊπΈ
speak-ng --voices
list all voices supported by eSpeak. the whole roster. π
speak-ng --voices=en
list all voices that speak English (en). π¬π§
speak-ng --voices=mb
list all voices using the MBROLA voice synthesizer. ποΈ
π AUTHOR π
eSpeak NG is maintained by Reece H. Dunn msclrhd@gmail.com. it's based on eSpeak by Jonathan Duddington jonsd@jsd.clara.co.uk. π«Ά
and this manual page is based on the eSpeak page written by Luke Yelavich themuso@ubuntu.com for the Ubuntu project. credit where credit is due, always. π
ngl the source is src, the version date is March 2025, and that's a wrap bestie β go make your computer talk. π¦β¨π
π¦ where this page comes from
- opensuse-leap 16.0: espeak-ng 1.52.0-160000.2.2 Β· Apache-2.0 AND BSD-2-Clause AND GPL-3.0-or-later AND Unicode-DFS-2015
- opensuse-leap 16.0: espeak-ng 1.52.0-160000.2.2 Β· Apache-2.0 AND BSD-2-Clause AND GPL-3.0-or-later AND Unicode-DFS-2015
- opensuse-leap 16.0: espeak-ng 1.52.0-160000.2.2 Β· Apache-2.0 AND BSD-2-Clause AND GPL-3.0-or-later AND Unicode-DFS-2015
- opensuse-leap 16.0: espeak-ng 1.52.0-160000.2.2 Β· Apache-2.0 AND BSD-2-Clause AND GPL-3.0-or-later AND Unicode-DFS-2015
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms