summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2015-11-15 18:00:17 -0800
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2015-11-15 18:00:17 -0800
commit5bd9ac90a8f95d0bd81bda66dde78e4c743dc81b (patch)
tree188a0900b80bf447eb1a160be3f4051499543227
parenta60c6ac88208c11eee3de4addfc32f2bea3598ad (diff)
downloadtwitchtools-5bd9ac90a8f95d0bd81bda66dde78e4c743dc81b.tar.gz
twitchtools-5bd9ac90a8f95d0bd81bda66dde78e4c743dc81b.zip
text2speech scripts
-rw-r--r--text2speech/t2s-apb.sh3
-rw-r--r--text2speech/t2s-twitch.sh3
2 files changed, 6 insertions, 0 deletions
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"