#!/bin/bash

# Usage: $0 <device> <text>
MINBIN=/usr/local/minerva/bin

DEVICE=`$MINBIN/finddev say $*`
if [ $? == 0 ]; then
  echo $DEVICE
  exit 0;
fi

shift

echo "(SayText \"" $* "\")" | festival --pipe
 
