diff options
-rwxr-xr-x | aataaj.lua | 46 |
1 files changed, 23 insertions, 23 deletions
@@ -76,7 +76,7 @@ local options = | |||
76 | E'Need to be root user to install.' | 76 | E'Need to be root user to install.' |
77 | else | 77 | else |
78 | print('INSTALLING!!!') | 78 | print('INSTALLING!!!') |
79 | __[[#!/bin/bash | 79 | -- espeak-ng has an entirely undocumented way of speciyfying the output device. aplay can't deal with it's output, so have to pipe it through sox. |
80 | __[=[#!/bin/bash | 80 | __[=[#!/bin/bash |
81 | echo "Installing aataaj" | 81 | echo "Installing aataaj" |
82 | ./PolygLua.lua -vvvv install | 82 | ./PolygLua.lua -vvvv install |
@@ -88,28 +88,28 @@ local options = | |||
88 | fi | 88 | fi |
89 | mkdir -p /usr/local/share/doc/aataaj | 89 | mkdir -p /usr/local/share/doc/aataaj |
90 | pushd /usr/local/share/doc/aataaj | 90 | pushd /usr/local/share/doc/aataaj |
91 | espeak-ng -w your.wav "Your " | 91 | espeak-ng --stdout "Your " | sox - your.wav channels 2 |
92 | espeak-ng -w devices.wav " audio devices are - " | 92 | espeak-ng --stdout " audio devices are - " | sox - devices.wav channels 2 |
93 | espeak-ng -w device.wav "Device number " | 93 | espeak-ng --stdout "Device number " | sox - device.wav channels 2 |
94 | espeak-ng -w sub.wav ", sub device " | 94 | espeak-ng --stdout ", sub device " | sox - sub.wav channels 2 |
95 | espeak-ng -w zero.wav "zero" | 95 | espeak-ng --stdout "zero" | sox - zero.wav channels 2 |
96 | espeak-ng -w one.wav "one" | 96 | espeak-ng --stdout "one" | sox - one.wav channels 2 |
97 | espeak-ng -w two.wav "two" | 97 | espeak-ng --stdout "two" | sox - two.wav channels 2 |
98 | espeak-ng -w three.wav "three" | 98 | espeak-ng --stdout "three" | sox - three.wav channels 2 |
99 | espeak-ng -w four.wav "four" | 99 | espeak-ng --stdout "four" | sox - four.wav channels 2 |
100 | espeak-ng -w five.wav "five" | 100 | espeak-ng --stdout "five" | sox - five.wav channels 2 |
101 | espeak-ng -w six.wav "six" | 101 | espeak-ng --stdout "six" | sox - six.wav channels 2 |
102 | espeak-ng -w seven.wav "seven" | 102 | espeak-ng --stdout "seven" | sox - seven.wav channels 2 |
103 | espeak-ng -w eight.wav "eight" | 103 | espeak-ng --stdout "eight" | sox - eight.wav channels 2 |
104 | espeak-ng -w nine.wav "nine" | 104 | espeak-ng --stdout "nine" | sox - nine.wav channels 2 |
105 | espeak-ng -w ten.wav "ten" | 105 | espeak-ng --stdout "ten" | sox - ten.wav channels 2 |
106 | espeak-ng -w eleven.wav "eleven" | 106 | espeak-ng --stdout "eleven" | sox - eleven.wav channels 2 |
107 | espeak-ng -w twelve.wav "twelve" | 107 | espeak-ng --stdout "twelve" | sox - twelve.wav channels 2 |
108 | espeak-ng -w thirteen.wav "thirteen" | 108 | espeak-ng --stdout "thirteen" | sox - thirteen.wav channels 2 |
109 | espeak-ng -w fourteen.wav "fourteen" | 109 | espeak-ng --stdout "fourteen" | sox - fourteen.wav channels 2 |
110 | espeak-ng -w fifteen.wav "fifteen" | 110 | espeak-ng --stdout "fifteen" | sox - fifteen.wav channels 2 |
111 | espeak-ng -w sixteen.wav "sixteen" | 111 | espeak-ng --stdout "sixteen" | sox - sixteen.wav channels 2 |
112 | espeak-ng -w best.wav "Please type the device number you heard best - " | 112 | espeak-ng --stdout "Please type the device number you heard best - " | sox - best.wav channels 2 |
113 | popd | 113 | popd |
114 | ln -s `pwd`/*.md /usr/local/share/doc/aataaj/ | 114 | ln -s `pwd`/*.md /usr/local/share/doc/aataaj/ |
115 | update-rc.d aataaj.lua defaults | 115 | update-rc.d aataaj.lua defaults |