From 5bd9ac90a8f95d0bd81bda66dde78e4c743dc81b Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Sun, 15 Nov 2015 18:00:17 -0800 Subject: text2speech scripts --- text2speech/t2s-apb.sh | 3 +++ text2speech/t2s-twitch.sh | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 text2speech/t2s-apb.sh create mode 100644 text2speech/t2s-twitch.sh diff --git a/text2speech/t2s-apb.sh b/text2speech/t2s-apb.sh new file mode 100644 index 0000000..0ec15bb --- /dev/null +++ b/text2speech/t2s-apb.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +tail -F /cygdrive/c/Program\ Files\ \(x86\)/Steam/SteamApps/common/APB\ Reloaded/APBGame/Logs/Current.log | perl -e 'my $prev; $| = 1; while (<>) { s/.+ m_s.{0,1}Message // and $_ ne $prev and print $_ and $prev = $_ }' | cscript -s "c:/cygwin64/home/user/src/jampal-02.01.06/jampal/src/pgbennett/speech/ptts.vbs" diff --git a/text2speech/t2s-twitch.sh b/text2speech/t2s-twitch.sh new file mode 100644 index 0000000..a1ca55d --- /dev/null +++ b/text2speech/t2s-twitch.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +tail -n 100 ~/irclogs/twitch/$( cat ~/.config/twitch/channel ) | perl -ne '$| = 1; print if s/.+<.(.+?)> /\1 /' | cscript -s "c:/cygwin64/home/user/src/jampal-02.01.06/jampal/src/pgbennett/speech/ptts.vbs" -- cgit v1.2.3