Commit | Line | Data |
---|---|---|
7b19bcba DM |
1 | .pa 1 |
2 | .he 'SPEAK (I)'2/1/73'SPEAK (I)' | |
3 | .ti 0 | |
4 | NAME speak -- word to voice translator | |
5 | .sp | |
6 | .ti 0 | |
7 | SYNOPSIS speak\b\b\b\b\b_____ [ -\b_ ] [ vocabulary ] | |
8 | .sp | |
9 | .ti 0 | |
10 | DESCRIPTION speak\b\b\b\b\b_____ | |
11 | turns a stream of ascii words | |
12 | into utterances and outputs them to a voice synthesizer. | |
13 | It has facilities for maintaining a vocabulary. | |
14 | It receives, from the standard input | |
15 | ||
16 | .in +2 | |
17 | .ti -2 | |
18 | - working lines - text of words separated by blanks | |
19 | .ti -2 | |
20 | - phonetic lines - strings of phonemes for one word preceded | |
21 | and separated by commas. | |
22 | The phonetic code is given in vsp\b\b\b___(VII). | |
23 | .ti -2 | |
24 | - empty lines | |
25 | .ti -2 | |
26 | - command lines - beginning with !\b_. The following forms | |
27 | are recognized: | |
28 | .in+1 | |
29 | .in+8 | |
30 | ||
31 | .ti-8 | |
32 | !\b_r\b_ file replace coded vocabulary from file | |
33 | .ti-8 | |
34 | !\b_w\b_ file write coded vocabulary on file | |
35 | .ti-8 | |
36 | !\b_p\b_ print phonetics for working word | |
37 | .ti-8 | |
38 | !\b_l\b_ list vocabulary on standard output with phonetics | |
39 | .ti-8 | |
40 | !c\b\b__ word copy phonetics from working word to | |
41 | specified word | |
42 | .ti-8 | |
43 | !s\b\b__ file (save) append working word and phonetics to file | |
44 | in style of !l\b\b__ | |
45 | .in-8 | |
46 | ||
47 | .in-3 | |
48 | Each working line replaces its predecessor. | |
49 | Its first word is the "working word". | |
50 | Each phonetic line replaces the phonetics stored for the | |
51 | working word. | |
52 | Each working line, phonetic line or empty line | |
53 | causes the working line to be uttered. | |
54 | The process terminates at the end of input. | |
55 | ||
56 | Unknown words are spelled | |
57 | as strings of one-letter words. | |
58 | Unknown one-letter words burp. | |
59 | ||
60 | A phonetic line of comma only will delete the | |
61 | entry for the working word. | |
62 | ||
63 | speak\b\b\b\b\b_____ is initialized with a coded vocabulary stored in file | |
64 | .ul | |
65 | /etc/speak.m. | |
66 | The vocabulary option substitutes a different file for speak.m\b\b\b\b\b\b\b_______. | |
67 | .sp | |
68 | The -\b_ option suppresses all utterances. | |
69 | .sp | |
70 | .ti 0 | |
71 | FILES /etc/speak.m | |
72 | .sp | |
73 | .ti 0 | |
74 | SEE ALSO vsp(VII), speakm(V), vt(IV) | |
75 | .sp | |
76 | .ti 0 | |
77 | BUGS Vocabulary overflow is unchecked. | |
78 | Excessively long words cause dumps. | |
79 | Space is not reclaimed from deleted entries. |