2019-07-18 23:42:11 +00:00
|
|
|
#!/bin/bash
|
2019-08-21 23:50:46 +00:00
|
|
|
|
|
|
|
function voicesed() { sed 's/\([^ ]*\) .*/\1/;'; }
|
|
|
|
function voicelist() { say -v ? | voicesed; }
|
|
|
|
function voicelistenglish() { say -v ? | grep 'en_' | voicesed; }
|
|
|
|
function voicerandom() { voicelistenglish | shuf -n 1; }
|
|
|
|
|
|
|
|
function voicelistnormal() {
|
|
|
|
voicelistenglish |
|
|
|
|
sed '/Trinoids/d;/Zarvox/d;/Deranged/d;/Hysterical/d;/Bahh/d;/Bubbles/d'
|
2019-07-18 23:42:11 +00:00
|
|
|
}
|
2019-08-21 23:50:46 +00:00
|
|
|
function voicerandomnormal() { voicelistnormal | shuf -n 1; }
|
2019-08-06 20:40:33 +00:00
|
|
|
|
|
|
|
function sayvoices() {
|
2019-08-21 23:50:46 +00:00
|
|
|
for voice in $(voicelist); do
|
2019-08-06 20:40:33 +00:00
|
|
|
say -v "$voice" $(say -v ? | grep $voice | sed 's/[^#]*# //');
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
function sayone() {
|
2019-08-21 23:50:46 +00:00
|
|
|
local voice=$(voicerandom);
|
2019-08-06 20:40:33 +00:00
|
|
|
say -v "$voice" $(say -v ? | grep $voice | sed 's/[^#]*# //');
|
|
|
|
}
|
2019-08-21 23:50:46 +00:00
|
|
|
|