shithub: rc

Download patch

ref: b8ed09f4e5624314ca59f8de3797c04e7b3888ff
parent: 369a574c8beeadf36720f23fc0b495cfc9300f8e
author: qwx <qwx@sciops.net>
date: Sun Aug 22 19:49:30 EDT 2021

add tell: read aloud text from tail -f

--- /dev/null
+++ b/bin/tell
@@ -1,0 +1,12 @@
+#!/bin/rc
+rfork ne
+v=rms
+if(~ $1 -v){
+	v=$2
+	shift 2
+}
+if(! ~ $#* 1 || ~ $#v 0){
+	echo usage: $0 '[-v voice]' file >[1=2]
+	exit usage
+}
+tail -f $1 | audio/flite -v $v >/dev/audio