summaryrefslogtreecommitdiff
path: root/text2speech
diff options
context:
space:
mode:
Diffstat (limited to 'text2speech')
-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"