A non-trivial example of how to use user contexts for trivial scheduling.
[mirrors/Programs.git] / php / czech-tts / czech-tts.php
1 #!/usr/bin/php
2 <?php
3 /* Sources:
4 http://en.wikiversity.org/wiki/Czech_Pronunciation
5 http://victorian.fortunecity.com/vermeer/287/czechtable.htm
6 http://www.google.cz/search?q=czech+pronunciation
7 */
8
9 $text = 'žluťoučký kůň příšerně úpěl ďábelské ódy.';
10 $text = 'dobrý den!';
11
12 $trans = array(
13 "au" => "ou",
14 "ou" => "ew",
15 "ch" => "cch",
16
17 //ertuioasdycnz
18 "á" => "aa",
19 "č" => "ch",
20 "ď" => "d", //
21 "é" => "ea",
22 "ě" => "ie",
23 //"ch" => "",
24 "í" => "ee",
25 //"ň" => "",
26 "ó" => "oo",
27 "ř" => "rsch", //
28 "š" => "sch",
29 "ť" => "t", //
30 "ú" => "oo",
31 "ů" => "oo",
32 "ý" => "ee",
33 "ž" => "ge",
34 //"" => "",
35
36 "0" => "0"
37 );
38
39 $text = strtr($text, $trans);
40
41 echo($text."\n");
42 system('espeak ' . escapeshellarg($text));
43
44 ?>
This page took 1.642665 seconds and 4 git commands to generate.