浏览代码

Replace the system say tool, for easy integration

Zachary Kotlarek 12 年之前
父节点
当前提交
c60b0a6f00
共有 1 个文件被更改,包括 8 次插入 和 0 次删除
  1. 8 0
      speak/say

+ 8 - 0
speak/say

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+TMPDIR="`tempDir.sh`"
+if [ -z "${TMPDIR}" ] || [ ! -S "${TMPDIR}/plexMonitor/SPEAK.socket" ]; then
+	exec say.orig ${@}
+fi
+
+exec ~/bin/video/dmx/cmd.pl SPEAK "${1}"