File: speakdate.sh

package info (click to toggle)
mgetty 1.2.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,880 kB
  • sloc: ansic: 42,728; sh: 6,487; perl: 6,262; makefile: 1,457; tcl: 756; lisp: 283
file content (34 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh

# This script is responsible for speaking out a date stamp.
# It should be installed in your voice directory once you got
# it working correctly.
#
# Input:  $1 - filename for which the date information should be spoken out
#         $2 - sample speed
#         $3 - modem type
#         $4 - compression type
#
# Output: rmd voice file on stdout
#
# This implementation uses GNU find and the rsynth synthesizer.

AMP=3.5
MSG=`find $1 -printf 'This message was recorded on %TA, %TB %Td, at %Tk %TM.\n'`
SPEED=$2
MODEM_TYPE=$3
COMPRESSION=$4

#
# This if for my old rsynth version...
#

say "$MSG" -r $SPEED -L -l - 2>/dev/null | lintopvf -s $SPEED | \
 pvfcut -H -0.5 | pvfamp -A $AMP | pvftormd $MODEM_TYPE $COMPRESSION

#
# This is for rsynth 2.0
#

# say "$MSG" -a -r $SPEED -l - 2>/dev/null | autopvf | \
#  pvftormd $MODEM_TYPE $COMPRESSION