aboutsummaryrefslogtreecommitdiffstats
path: root/aataaj.lua
diff options
context:
space:
mode:
authoronefang2025-05-23 11:55:10 +1000
committeronefang2025-05-23 11:55:10 +1000
commit4645ec9b568cccc20e7c2c8e8239ea1b0522a0d9 (patch)
tree4ded05680660cc7902883b9f83daea5906270a2e /aataaj.lua
parentDon't bother intalling links if they are there already. (diff)
downloadJackOnAllDevices-4645ec9b568cccc20e7c2c8e8239ea1b0522a0d9.zip
JackOnAllDevices-4645ec9b568cccc20e7c2c8e8239ea1b0522a0d9.tar.gz
JackOnAllDevices-4645ec9b568cccc20e7c2c8e8239ea1b0522a0d9.tar.bz2
JackOnAllDevices-4645ec9b568cccc20e7c2c8e8239ea1b0522a0d9.tar.xz
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.
Diffstat (limited to 'aataaj.lua')
-rwxr-xr-xaataaj.lua46
1 files changed, 23 insertions, 23 deletions
diff --git a/aataaj.lua b/aataaj.lua
index 72bf096..d34ad8f 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -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