ttsscripts

misc scripts
git clone https://0x1A4.1337.cx/code2/ttsscripts.git
Log | Files | Refs | LICENSE

commit 895f22f97683cd3f53940f5c8a5774e4e1bc1028
Author: tx <trqx@goat.si>
Date:   Thu Mar 16 17:41:30 +0000

init

Diffstat:
LICENSE | 21+++++++++++++++++++++
README.md | 7+++++++
speak.sh | 9+++++++++
speakfr.sh | 9+++++++++
4 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/LICENSE b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 trax + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md @@ -0,0 +1,7 @@ +Usage + +pipe text to one of the script to make a computer speak with in a robot voice + +example with [ircpipe](https://github.com/trqx/ircpipe): + + ircpipe | ./speak.sh diff --git a/speak.sh b/speak.sh @@ -0,0 +1,9 @@ +#!/bin/bash +while read -r; do + espeak --stdout -s120 -k18 -a200 -v 'en+f5' "$REPLY" | play -t wav - \ + chorus 0.4 0.8 20 0.5 0.10 2 -t \ + echo 0.9 0.8 33 0.9 \ + echo 0.7 0.7 10 0.2 \ + echo 0.9 0.2 55 0.5 \ + gain 25 & +done diff --git a/speakfr.sh b/speakfr.sh @@ -0,0 +1,9 @@ +#!/bin/bash +while read -r; do + espeak --stdout -s120 -k18 -a200 -v 'fr+f5' "$REPLY" | play -t wav - \ + chorus 0.4 0.8 20 0.5 0.10 2 -t \ + echo 0.9 0.8 33 0.9 \ + echo 0.7 0.7 10 0.2 \ + echo 0.9 0.2 55 0.5 \ + gain 25 & +done