⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 speak.6

📁 UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱昂氏unix源代码分析都是用的该版
💻 6
字号:
.th SPEAK VI 4/26/75.if t .ds A \o"a\(ga".if n .ds A a`.if t .ds v \|\(bv.sh NAMEspeak \*- word to voice translator.sh SYNOPSIS.bd speak[.bd \*-efpsv] [ vocabulary [output ]].sh DESCRIPTION.it Speakturns a stream of wordsinto utterances and outputs them to a voice synthesizer,or to the specified.it output.It has facilities for maintaining a vocabulary.It receives, from the standard input .s3.lp +5 3\*-	working lines: text of words separated by blanks.lp +5 3\*-	phonetic lines: strings of phonemes for one word precededand separated by commas.The phonemes may be followed by comma-percent then a `replacementpart' \*- an ASCII string with no spaces.The phonetic code is given in .it vs(V)..lp +5 3\*-	empty lines.lp +5 3\*-	command lines: beginning with.bd !.The following command linesare recognized:.s3.lp +15 10\fB!r\fR file	replace coded vocabulary from file.lp +15 10\fB!w\fR file	write coded vocabulary on file.lp +15 10\fB!p\fR	print phonetics for working word.lp +15 10\fB!l\fR	list vocabulary on standard output with phonetics.lp +15 10\fB!c\fR word	copy phonetics from working word tospecified word.lp +15 10\fB!d\fR	print decomposition of working word into substrings.lp +15 10\fB!f\fI n\fR	turn off (or on) English preprocessing rule number.it n(see listing for meaning of.it n).s3.i0Each working line replaces its predecessor.Its first word is the `working word'.Each phonetic line replaces the phonetics stored for theworking word.In particular, a phonetic line of comma only deletes theentry for the working word.Each working line, phonetic line or empty linecauses the working line to be uttered.The process terminates at the end of input..s3Unknown words are pronounced by rules, and failing that,are spelled.For the builtin part ofthe rules, see the reference.Spelling is done by taking each character ofthe word, prefixing it with `*', and looking it up.Unspellable words burp..s3Words not found verbatim in the vocabularyare pronounced piecewise.First the word is bracketed by sharps:`#...#'.The vocabulary is then searched forthe longest fragment that matches thebeginning of the word.The phonetic part of the phonetic string is uttered,and the matched fragment is replaced by the replacementpart of the phonetic string, if any.The process is repeated until the word is exhausted.A fragment is entered into the vocabulary as a workingword prefixed by `%'..s3.it Speakis initialized with a coded vocabulary stored in file.it /usr/lib/speak.m.The vocabulary option substitutes a different file for.it /usr/lib/speak.m.Other vocabularies, to be used withoption\fB\*-e\fR,exist in /usr/vs/latin.m and /usr/vs/polish.m..s3A set of single letter options mayappear in any order preceded by.bd \*-.Their meanings are:.s3.lp +8 4\fBe\fR	suppress English preprocessing.lp +8 4\fBf\fR	equivalent to `f1, f2,...'.lp +8 4\fBp\fR	suppress pronunciation by rule.lp +8 4\fBs\fR	suppress spelling.lp +8 4\fBv\fR	suppress voice output.s3.i0The following input will reconstitute acoded vocabulary, `speak.m', from an ascii listing, `speak.v', thatwas created using \fB!l\fR..s3.lp +8 0(cat speak.v; echo !w speak.m) \*v speak \*-v /dev/null.s3.i0.sh FILES/usr/lib/speak.m.sh "SEE ALSO"M. D. McIlroy, ``Synthetic English Speech by Rule,''Computing Science Technical Report #14,Bell Laboratories, 1973.brvs (V), vs (IV).sh BUGSExcessively long words cause dumps..brSpace is not reclaimed from changed entries;use \fB!w\fR and \fB!r\fR to effect reclamation..br\fB!p\fR doesn't always work as advertised.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -