Debian Codegraph @

voices/synth

raw
1 #!/bin/bash
2
3 # this script generates a synthetic english voice
4
5 # Copyright (C) 2008-2012 Wolfgang Rohdewald <[email protected]>
6 # licensed under GPLv2 or later
7
8 while read line
9 do
10 set - $line
11 fname=$1
12 shift
13 echo $* | espeak -s200 -w $fname.wav
14 sox $fname.wav $fname.ogg channels 2 rate 44100
15 rm $fname.wav
16 done <<!END
17 s1 circle one
18 s2 circle two
19 s3 circle three
20 s4 circle four
21 s5 circle five
22 s6 circle six
23 s7 circle seven
24 s8 circle eight
25 s9 circle nine
26 b1 bamboo one
27 b2 bamboo two
28 b3 bamboo three
29 b4 bamboo four
30 b5 bamboo five
31 b6 bamboo six
32 b7 bamboo seven
33 b8 bamboo eight
34 b9 bamboo nine
35 c1 character one
36 c2 character two
37 c3 character three
38 c4 character four
39 c5 character five
40 c6 character six
41 c7 character seven
42 c8 character eight
43 c9 character nine
44 we east
45 ws south
46 ww west
47 wn north
48 db blue dragon
49 dr red dragon
50 dg green dragon
51 chow chow
52 pung pung
53 kong kong
54 mahjongg mahjongg
55 originalcall original call
56 violatesoriginalcall "violates original call"
57 dangerousgame dangerous game
58 nochoice no choice
59 !END