From 4645ec9b568cccc20e7c2c8e8239ea1b0522a0d9 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 23 May 2025 11:55:10 +1000 Subject: 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. --- aataaj.lua | 46 +++++++++++++++++++++++----------------------- 1 file 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 = E'Need to be root user to install.' else print('INSTALLING!!!') - __[[#!/bin/bash + -- 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. __[=[#!/bin/bash echo "Installing aataaj" ./PolygLua.lua -vvvv install @@ -88,28 +88,28 @@ local options = fi mkdir -p /usr/local/share/doc/aataaj pushd /usr/local/share/doc/aataaj - espeak-ng -w your.wav "Your " - espeak-ng -w devices.wav " audio devices are - " - espeak-ng -w device.wav "Device number " - espeak-ng -w sub.wav ", sub device " - espeak-ng -w zero.wav "zero" - espeak-ng -w one.wav "one" - espeak-ng -w two.wav "two" - espeak-ng -w three.wav "three" - espeak-ng -w four.wav "four" - espeak-ng -w five.wav "five" - espeak-ng -w six.wav "six" - espeak-ng -w seven.wav "seven" - espeak-ng -w eight.wav "eight" - espeak-ng -w nine.wav "nine" - espeak-ng -w ten.wav "ten" - espeak-ng -w eleven.wav "eleven" - espeak-ng -w twelve.wav "twelve" - espeak-ng -w thirteen.wav "thirteen" - espeak-ng -w fourteen.wav "fourteen" - espeak-ng -w fifteen.wav "fifteen" - espeak-ng -w sixteen.wav "sixteen" - espeak-ng -w best.wav "Please type the device number you heard best - " + espeak-ng --stdout "Your " | sox - your.wav channels 2 + espeak-ng --stdout " audio devices are - " | sox - devices.wav channels 2 + espeak-ng --stdout "Device number " | sox - device.wav channels 2 + espeak-ng --stdout ", sub device " | sox - sub.wav channels 2 + espeak-ng --stdout "zero" | sox - zero.wav channels 2 + espeak-ng --stdout "one" | sox - one.wav channels 2 + espeak-ng --stdout "two" | sox - two.wav channels 2 + espeak-ng --stdout "three" | sox - three.wav channels 2 + espeak-ng --stdout "four" | sox - four.wav channels 2 + espeak-ng --stdout "five" | sox - five.wav channels 2 + espeak-ng --stdout "six" | sox - six.wav channels 2 + espeak-ng --stdout "seven" | sox - seven.wav channels 2 + espeak-ng --stdout "eight" | sox - eight.wav channels 2 + espeak-ng --stdout "nine" | sox - nine.wav channels 2 + espeak-ng --stdout "ten" | sox - ten.wav channels 2 + espeak-ng --stdout "eleven" | sox - eleven.wav channels 2 + espeak-ng --stdout "twelve" | sox - twelve.wav channels 2 + espeak-ng --stdout "thirteen" | sox - thirteen.wav channels 2 + espeak-ng --stdout "fourteen" | sox - fourteen.wav channels 2 + espeak-ng --stdout "fifteen" | sox - fifteen.wav channels 2 + espeak-ng --stdout "sixteen" | sox - sixteen.wav channels 2 + espeak-ng --stdout "Please type the device number you heard best - " | sox - best.wav channels 2 popd ln -s `pwd`/*.md /usr/local/share/doc/aataaj/ update-rc.d aataaj.lua defaults -- cgit v1.1