~ubuntu-branches/ubuntu/trusty/speech-dispatcher/trusty-proposed

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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
2009-01-17  Gilles Casse <gcasse@oralux.org>
 
	* src/modules/ibmtts.c: 
	  - fix MAX_NB_OF_LANGUAGES.

2009-12-30  Gilles Casse <gcasse@oralux.org>
 
	* src/modules/ibmtts.c, config/modules/ibmtts.conf: 
	  - module_list_voices returns the list of the installed languages,
	  - the encoding associated to each language has been updated (same values as in Gnome Speech Viavoice driver).
	  - the IbmttDialect and the list of possible voices have been removed from the ibmtts.conf file.

2009-07-08  Luke Yelavich <luke.yelavich@canonical.com>

	* src/server/config.c (load_default_global_set_options): Set the default
	audio output to "pulse,alsa".

	* config/speechd.conf.in: Set the default audio output to
	"pulse,alsa".

2009-06-23  Luke Yelavich <luke.yelavich@canonical.com>

	* src/server/config.c: Add new macro GLOBAL_SET_LOGLEVEL, to set the
	log level for both the server and speech modules. Make use of this
	macro when reading the LogLevel setting from the configuration file.

	* src/server/output.c (output_send_loglevel_setting): Fix typo.

	* src/modules/module_utils.c:
	  - Add new macro SET_LOGLEVEL_NUM to set the log level variable for
	    speech modules.
	  - Add new function do_loglevel, to retrieve and call the above
	    mentioned macro to set the log level.
	  - Add a call to spd_audio_set_loglevel to the SET_LOGLEVEL_NUM macro.

	* src/modules/module_main.c (main): Add a call to do_loglevel to set
	the log level for the module.

	* src/audio/alsa.c:
	  - Adjust the MSG macro to take the log level setting 	into account
	    before logging a message.
	  - Assign all log messages to a log level.

	* src/audio/oss.c:
	  - Adjust the MSG macro to take the log level setting into account
	    before logging a message.
	  - Assign all log messages to a log level.

	* src/audio/spd_audio.c: Add a new function spd_audio_set_loglevel to
	set the internal log_level variable for the libspdaudio library.

2009-06-22  Luke Yelavich <luke.yelavich@canonical.com>

	* src/server/output.c: Add output_send_loglevel_setting function
	to send the loglevel configuration setting through to speech modules.

	* src/server/module.c (load_output_module): Add a call to
	output_send_loglevel_setting to send the log level configuration
	setting to modules.

2009-05-14  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/pulse.c (_pulse_open): Typo.

	* src/server/config.c (load_default_global_set_options): Pulse
	Audio parameters modified according to Lennart's instructions.
 
	* src/audio/pulse.c (_pulse_open): Added PA_STREAM_ADJUST_LATENCY

2008-12-23  Milan Zamazal  <pdm@brailcom.org>

	* src/c/api/libspeechd.c:
	Fix socket leak on connection error in libspeechd.
	.
	(Thanks to Mario Lang).

2008-12-10  Hynek Hanke  <hanke@mach>

	* src/python/speechd_config/speechd.desktop: New file.

	* src/Makefile.am (EXTRA_DIST): Include speechd.desktop in distro.

	* configure.in (clientconforigdir): New location for .desktop file.

2008-11-26  Hynek Hanke  <hanke@mach>

	* Makefile.am: Maintainer-clean deletes configure.

2008-10-15  Hynek Hanke  <hanke@mach>

	* src/server/speaking.c (speak): Added debugging messages.

	* src/audio/spd_audio.h (alsa_pipe_mutex): New mutex.

	* src/audio/alsa.c (_alsa_close): Protect stop pipes with mutex.
	(alsa_stop): Handle correctly write return value.

	* src/modules/module_main.c (PROCESS_CMD_NRP): Mutex unlock moved to correct place.

	* src/modules/espeak.c (module_speak): Added mutex to protect espeak_state != IDLE

	* src/modules/module_main.c (PROCESS_CMD_NRP): Flush before leaving module_stdout_mutex.
	(PROCESS_CMD_W_ARGS):  Flush before leaving module_stdout_mutex.
	(PROCESS_CMD): Flush before leaving module_stdout_mutex.

2008-08-26  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/dtk-generic.conf: Prevent bash expansion of $DATA.

	* config/modules/epos-generic.conf: Prevent bash expansion of $DATA.

	* config/modules/espeak-generic.conf: Prevent bash expansion of $DATA.

	* config/modules/espeak-mbrola-generic.conf: Prevent bash expansion of $DATA.

	* config/modules/llia_phon-generic.conf: Prevent bash expansion of $DATA.

	* config/modules/swift-generic.conf: Prevent bash expansion of $DATA.

2008-07-31  Hynek Hanke  <hanke@brailcom.org>
	
	* config/modules/espeak-mbrola-generic.conf: Missing space added.

2008-07-31  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/espeak-mbrola-generic.conf: Set volume, do not use TMP files.
	Missing space added.

2008-07-30  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (LIB_SDAUDIO_AGE): Revision incremented.

	* config/modules/swift-generic.conf: New file.

	* config/modules/espeak-mbrola-generic.conf: Added language coding
	specifications.
	New file.

	* src/c/api/libspeechd.c: Do not define _GNU_SOURCE.

	* src/c/api/libspeechd.h: Do not define _GNU_SOURCE.

	* src/c/api/Makefile.am: Define _GNU_SOURCE.

	* config/modules/llia_phon-generic.conf: Use PLAY_COMMAND.

	* config/modules/espeak-generic.conf: Use PLAY_COMMAND.

	* config/speechd.conf.in: New addmodule lines
	for mbrola and swift.

	* src/modules/generic.c (module_load): By default,
	do not strip any punctuation.
	(module_speak): Only strip SSML for MSGTYPE_TEXT
	(_generic_child): Escape backslash as well.

	* src/modules/generic.c (_generic_speak): Substitute play, aplay, paplay for PLAY_COMMAND.

2008-07-14  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (moduleconfdir): Do not expand paths until during 'make'

2008-07-11  Hynek Hanke  <hanke@brailcom.org>

	* src/Makefile.am (EXTRA_DIST): Include python/speechd_config

	* config/speechd.conf.in: Do not begin any textual comments with
	option names.

	* src/server/speechd.c (main): Set umask.
	(main): Set log_level = 1 early.
	(main): Output Speech Dispatcher version early.

	* src/server/options.c (options_parse): Use tmpdir correctly
	for debugging destination.

	* src/modules/module_utils.c (do_debug): More verbose debugging
	messgages.

	* src/modules/generic.c (string_replace): Relace all occurances,
	not just the first one.
	(_generic_speak): Substitute TMPDIR and HOMEDIR.

	* config/modules/llia_phon-generic.conf: Use TMPDIR instead of /tmp/

	* config/modules/espeak-generic.conf: Use TMPDIR instead of /tmp/

	* config/modules/epos-generic.conf: Use TMPDIR instead of /tmp/

	* config/modules/dtk-generic.conf: Use TMPDIR instead of /tmp/

2008-07-09  Hynek Hanke  <hanke@brailcom.org>

	* src/python/speechd_config/__init__.py: New file.

	* src/python/speechd_config/config.py: New config directory.

	* src/python/speechd_config/test.wav: New test sound.

	* config/modules/Makefile.am (dist_moduleconforig_DATA): Place *.conf
	into moduleconforig dir as well.

	* config/clients/Makefile.am (dist_clientconforig_DATA): Place *.conf
	into clientconforig dir as well.

	* config/Makefile.am: Place speechd.conf into spdconforig as well.

	* configure.in: Added *conforigdir variables pointing
	into $datadir, where original untouched configuration
	is stored.

2008-07-07  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (speechd_init): Only create new debug destination
	if not already debugging.
	(MSG2): Debugging.

	* src/server/options.h: -D, --debug new option.

	* src/server/options.c (options_parse): -D, --debug new option.

	* src/server/module.c (load_output_module): Turn debugging on
	when loading the module.

2008-07-01  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (speechd_init): debug_destination
	is now inside LogDir.
	(speechd_init): Create the debug/ subdir.

	* src/server/set.c (set_debug_destination_uid): DEBUG_DESTINATION
	removed.
	(set_debug_uid): Avoid conflicts in debugging.

	* src/server/parse.c (parse_set): Include debug location in
	reply on debugging SET ssip command.
	(parse_set): DEBUG_DESTINATION setting removed from SSIP.

	* src/server/msg.h (OK_DEBUG_DESTINATION_SET): DEBUG_DESTINATION
	messages removed.

2008-06-27  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.h: New prototypes.

	* src/server/speechd.c (MSG): Handle additional debugging.
	(speechd_modules_debug): New function.
	(speechd_module_debug): New function.
	(speechd_modules_nodebug): New function.	
	(speechd_module_nodebug): New function.
	(speechd_options_init): Set defaults for debug and debug_destination.

	* src/server/set.h: New prototypes.

	* src/server/set.c (set_debug_uid): New function.
	(set_debug_destination_uid): New function.

	* src/server/parse.c (parse_set): Handle 'DEBUG' and
	'DEBUG_DESTINATION'

	* src/server/output.h: New prototypes.

	* src/server/output.c (output_send_debug): New function.

	* src/server/msg.h (OK_DEBUG_DESTINATION_SET): New messages
	for debugging functionality

	* src/server/module.h: Prototypes for new functions.

	* src/server/module.c (output_module_debug): New function.
	(output_module_nodebug): New function.

	* src/modules/module_utils.h: module_audio_output_method switched
	to correct type AudioOutputType.
	(DBG): Added external debugging.
	Prototypes for new functions.

	* src/modules/module_utils.c (do_debug): New function.
	(do_quit): Change to correct type 'void'.

	* src/modules/module_main.c (PROCESS_CMD_NRP): New macro.
	(main): Call do_quit() as without reply.

	* src/modules/ivona_client.c (ivona_play_file): Correct casts.

	* src/modules/festival_client.c (festival_accept_any_response):
	Useless debug message removed.

	* src/modules/espeak.c (espeak_play_file): Correct casts.
	(module_init): Unused variable removed.

	* src/modules/Makefile.am: Include dummy-message.wav into EXTRA_DIST.

	* NEWS: 0.6.7

	* INSTALL: 0.6.7

	* ANNOUNCE: 0.6.7

	* src/modules/ivona.c (ivona_set_cap_let_recogn): Handle recogn none.

	* src/modules/festival_client.c (festival_accept_any_response): Useless test removed.
	
	* src/audio/pulse.c (_pulse_set_sample): Volume settings back in.
	(pulse_open): Do not initialize pulse_volume, pulse_volume_valid=0
	should be enough.
	(_pulse_open): Typo.

2008-06-11  Hynek Hanke  <hanke@brailcom.org>

	* src/server/index_marking.c (insert_index_marks): Also insert
	index marks if the end of sentence punctuation is followed by HTML
	tag or entity instead of space character.

	* src/server/output.c (output_send_audio_settings): Pass
	audio_pulse_server option.

	* src/modules/module_utils.c (do_audio): Do not report status on
	success.

2008-06-09  Gilles Casse  <gcasse@oralux.org>

	* src/modules/ibmtts.c, config/modules/ibmtts.conf: the
	IBM TTS abbreviation dictionaries are now enabled (default) or
	disabled using the IbmttsUseAbbreviation variable.	
	
2008-06-09  Hynek Hanke  <hanke@brailcom.org>

	* src/server/module.c (load_output_module): Send audio settings
	after initialization.

	* src/server/config.c: New configuration options for audio.

	* src/modules/module_utils.h: Prototypes for new functions.
	Protect against multiple inclusions.
	

	* src/modules/module_utils.c (SET_AUDIO_NUM): New macro.
	(SET_AUDIO_STR): New macro.
	(do_audio): New function.
	(module_audio_init_spd): New function.

	* src/modules/festival_client.c (festival_speak_command): New
	debugging message.

	* src/modules: Removed local audio settings, now
	depends on global configuration. New function
	module_audio_init() in every module.
	
	* src/modules/dummy.c (module_audio_init): New function.
	Removed config file options (we do not want dummy to depend
	on configuration files).
	Debug on by default (makes sense in a fallback module).

	* src/modules/cicero.c (module_audio_init): New function.

	* src/audio/spd_audio.h: Protect again multiple inclusion.

	* src/audio/spd_audio.c (spd_audio_open): audio_endian ->
	spd_audio_endian.
	(spd_audio_open): spd_audio_endian initialization.

	* src/audio/alsa.c (alsa_play): audio_endian -> spd_audio_endian.

	* intl/fdset.h (TFDSetElement): New prefered audio options.

	* config/modules/: Removed all audio output settings, moved to
	speechd.conf

	* config/speechd.conf.in: All audio output settings moved here.

	* src/modules/dummy.c (_dummy_child): Correct inclusion of DATADIR path.

	* config/modules/ibmtts.conf: Sentence boundary detection section removed.

	* src/audio/spd_audio.c: Definition of spd_audio_endian moved here to avoid multiple def error.

	* src/modules/module_main.c (main): New command: 'AUDIO'.

	* src/server/output.c (output_send_audio_settings): New function.

	* src/server/module.h (OutputModule): New members for audio configuration.

2008-05-15  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf.in: Added dummy module AddModule line.

	* src/modules/dummy-message.wav: New file. Pre-recorded
	message for playback in the dummy output module.

	* src/modules/dummy.c (_dummy_child): Use $DATADIR instead
	of hardcoded path.

	* src/modules/Makefile.am (AM_CFLAGS): Pass the snddatadir location
	via -D.
	(snddata_DATA): Install also dummy-message.wav

	* src/server/output.c (get_output_module): First try the requested
	module, if impossible to load, then the default module, then
	any available module, then the dummy output module and if this
	fails, just produce a serious error message in the logfile.

	* src/modules/dummy.c: New output module.

	* src/modules/Makefile.am (modulebin_PROGRAMS): New output module: sd_dummy.
	Changes in the conditioning of compilation of various modules.

2008-05-12  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/spd_audio.h (suspended): New flag. 

	* src/audio/pulse.c (_pulse_timeout_thread): Do not close the
	device, but only cork it.
	(pulse_play): Uncork device before playback starts.

	* INSTALL: Updated.

	* src/audio/pulse.c (PULSE_TIMEOUT_IN_USEC): Lower the timeout limit.
	(_pulse_open): Set suspended flag to false.
	(pulse_play): Debugging message.
	(pulse_play): Resume sinks (if suspended) before playback.

	* src/audio/spd_audio.h (AudioID): New PulseAudio parameter 'suspended'. 

2008-04-09  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/Makefile.am: Added new test clibrary2.c

	* src/c/api/libspeechd.h: Prototypes for new functions.

	* src/c/api/libspeechd.c (spd_list_modules): New function.
	(spd_list_voices): New function.
	(spd_list_synthesis_voices): New function.
	(spd_set_synthesis_voice*): New functions.

	* configure.in (LIB_SDAUDIO_AGE): New interface functions,
	thus version incremented (compatible).

2008-04-07  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.h: Do not include more than once.

	* configure.in (LIB_SDAUDIO_REVISION): Incremented revision.

2008-04-03  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/ivona.c: New file.

	* src/modules/ivona_client.c: New file.

	* src/modules/Makefile.am: Added Ivona (new output module).

	* config/speechd.conf.in: AddModule line for Ivona.

	* version.sh (VERSION): Version 0.6.7-cvs.

	* configure.in: Ivona compilation.

2008-02-29 C. M. Brannon <cmbrannon@cox.net>

	* src/c/api/libspeechd.c (spd_send_data):
	Insure that function does not hold a mutex when it returns.

2008-02-22  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/flite.c (_flite_speak): Call flite_strip_silence to
	get rid of leading and trailing silence in utterance
	(Idea and algorithm copied from eflite).
	(flite_set_rate): Increase maximum speech rate.

2008-02-15  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: Revision incremented.

	* src/Makefile.am (EXTRA_DIST): Include python/Makefile.in instead of python/Makefile.

2008-02-11  Hynek Hanke  <hanke@mach>

	* src/modules/Makefile.am: Link with gthread_libs.

	* src/modules/module_main.c (main): Call g_thread_init()

	* src/server/speechd.c (main): Call g_thread_init()
	so that we are sure GLIB is thread safe!!!

	* src/server/parse.c (get_param): Additional assertion.

	* src/server/index_marking.c (insert_index_marks): Assertion
	added.

	* src/server/config.c (AddModule): Copy module name
	before inserting.

	* src/server/Makefile.am (speech_dispatcher_LDADD): Include
	gthread_libs.

2008-02-08  Hynek Hanke  <hanke@mach>

	* src/server/config.c (DOTCONF_CB): Insert copies of module
	name string into hash table and output_modules_list .

2008-02-08  Hynek Hanke  <hanke@brailcom.org>

	* version.sh: 0.6.6
	
	* ANNOUNCE: Version 0.6.6

	* NEWS: Version 0.6.6

	* src/server/output.c: Check for module_name not null.

	* src/tests/connection-recovery.c: New test.

	* src/tests/Makefile.am (bin_PROGRAMS): connection_recovery
	-- new target.

	* src/c/api/libspeechd.h (SPD_FATAL): Flush stdout.

	* src/c/api/libspeechd.c (spd_close): Join th events thread.
	(spd_say): Check reply.
	(spd_say): Set msg_id to -1 on error.
	(spd_execute_command): Logging message.
	(spd_execute_command_wo_mutex): Logging message.
	(spd_execute_command_with_reply): Return -1 on error.
	(spd_send_data): Return NULL on error in spd_send_data_wo_mutex.
	(spd_send_data): Return NULL if connection->stream is NULL.
	(spd_send_data_wo_mutex): Only print out the reply if it is not NULL.
	(spd_events_handler): Formatting.
	(spd_events_handler): Signal reply ready even if socket is broken.
	(xmalloc): Formatting.

2008-02-06  Luke Yelavich <themuso@themuso.com>

	* src/modules/espeak.c: Set max rate to 390.

2008-02-04  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (LIB_SPD_AGE): Create src/python/Makefile.

2008-02-01  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/cicero.c (_cicero_speak): Fixed bug: assigment instead of comparision.

	* src/modules/festival.c (_festival_speak): Removed debugging messages.

	* src/server/speaking.c (speaking_resume_all): Initialize err correctly.

	* src/server/history.c (history_say_id): 

	* src/audio/pulse.c (pulse_open): Casts changed from int to
	size_t, which is the correct size for pars[1..4]
	(pulse_play): a_total_mem_free changed from int to size_t.

	* src/server/speechd.c (fatal_error): Cosmetic to avoid
	gcc warning.

	* src/server/parse.c (parse): Check for proper UTF-8 on input.
	(parse_general_event): Check for proper UTF-8 on input.

	* src/server/msg.h (ERR_INVALID_ENCODING): New error message ERR_INVALID_ENCODING.

	* src/audio/spd_audio.c (spd_audio_play): Formatting.

	* src/server/parse.c (parse): Check for proper UTF-8 encoding in message data.
	(parse_general_event): Check for proper UTF-8 in events.

	* src/audio/alsa.c (alsa_stop): Removed log message call to snd_pcm_state
	so that it doesn't create race conditions. 

2008-01-21  Hynek Hanke  <hanke@homer.brailcom.xx>

	* NEWS: 0.6.5 added. 
	0.6.3 -> 0.6.4 (there was no 0.6.3 oficial release).

2008-01-14  Hynek Hanke  <hanke@syrr.buchal.name>

	* src/c/api/libspeechd.h: Added include stddef, so that
	we have type wchar_t.

2007-12-23  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c: if the connection to the PulseAudio server
	fails, pulse_context must be freed too.
	
2007-12-19  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c: if the connection to the PulseAudio server
	fails, the internal allocations are now cleaned up. Define the
	error values in an enum.
	
2007-12-17  Hynek Hanke  <hanke@syrr.buchal.name>

	* src/server/Makefile.am (speech_dispatcher_LDADD): -ldl unnecessary.

	* src/modules/Makefile.am: -lm unnecessary in many modules.

	* src/c/api/Makefile.am: -lm unnecessary.

	* src/audio/Makefile.am (NAS_LIBS): -lXau unnecessary.

	* configure.in (flite_basic): -lm unnecessary.

2007-12-08  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c, src/audio/spd_audio.h: automatically close
	the PulseAudio connection after a moment of inactivity (currently
	set to 100ms in PULSE_TIMEOUT_IN_USEC). 

	* src/audio/pulse.c: pulse_play now returns once the given track
	has been drained.

2007-11-30  Hynek Hanke  <hanke@syrr.buchal.name>

	* INSTALL: Added Pulse Audio.

	* ANNOUNCE: Added information about default access
	restrictions. Architecture details taken out. Minor
	details.

2007-11-26  Hynek Hanke  <hanke@homer.brailcom.xx>

	* src/modules/module_utils.c: Typo.

2007-11-26  Hynek Hanke  <hanke@syrr.buchal.name>

	* INSTALL: Example of server_access_list for Festival.

	* src/modules/module_utils.c (module_parent_dp_write): %d -> %ld
	for size_t argument.
	(module_strip_ssml): Convert &amp; entity back to '&'.

	* src/modules/festival.c: %d -> %ld for size_t argument.

	* src/modules/module_utils.c (module_strip_ssml): Escape ampersound
	SSML entity.

	* src/server/Makefile.am (AM_CFLAGS): Removed MODULECONFDIR.

	* config/speechd.conf.in: Default output module is espeak.

	* version.sh: Version incremented to 0.6.5rc1

	* src/server/module.c (load_output_module): Construct path to
	module config files from SpeechdOptions.conf_dir.

	* configure.in (modulebindir): MODULECONFDIR definition modified.

	* src/server/speechd.c (main): Only set SpeechdOptions.conf_dir to default
	if it was not set by the user via command line.

	* src/server/options.c (options_print_help): -C changed
	from config-file to config-dir.

	* config/speechd.conf.in: LocalhostAccessOnly option
	and its description.
	Removed MaxHistoryMessages and SoundDataDir (obsolete).

2007-11-23  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.h (SpeechdOptions): New members: conf_dir,
	home_speechd_dir, log_dir.

	* src/server/speechd.c (speechd_options_init): Initialize
	home_speech_dir and log_dir.
	(speechd_init): Construct log_dir and initialize logging.
	(logging_init): New function
	(main): Decide where to place PID file (.speech-dispatcher/pid/,
	PIDPATH or user specified option). Create the pid/ directory
	in ~/.speech-dispatcher if it doesn't exist.

	* src/server/module.c (load_output_module): Handle module
	configuration with respect to MODULE_CONF_DIR, .speech-dispatcher.

	* src/server/config.c (cb_LogDir): New handler.
	(cb_LogFile): Deprecated.
	(cb_AddModule): Do not use custom path any more,
	construct a path to the default log directory
	instead.

	* config/speechd.conf.in: LogFile configuration option
	removed and LogDir added.
	Default output module is espeak.
	Some descriptions updated.
	Removed IncludePath as this is overriden by Dispatcher
	to the configuration directory.

2007-11-23  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (logging_init): New function.

2007-11-21  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.h (SpeechdOptions): New member: conf_file.

	* src/server/speechd.c (speechd_options_init): New option
	SpeechdOptions.conf_file.
	(speechd_load_configuration): Use SpeechDOptions.conf_file.
	(main): Fill in SpeechdOptions.conf_file with correct value.

	* src/server/options.h: New option: --config-file, -C.

	* src/server/options.c (options_parse): New option: --config-file.

2007-11-18  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c, src/audio/spd_audio.h: add pulse_mutex.
	
2007-11-14  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c: fixes, take in account rate changes if the stream is
	already opened, add a missing userdata in _subscribe_cb.
	
2007-11-12  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/espeak.c (espeak_send_to_audio): spd_audio_play
	call updated with endian information.

	* src/audio/alsa.c (alsa_play): Handle endianness correctly.

	* src/modules/ibmtts.c (ibmtts_play_file): spd_audio_play
	call updated with endian information.

	* src/modules/flite.c (_flite_speak): spd_audio_play
	call updated with endian information.

	* src/modules/festival.c (festival_send_to_audio): spd_audio_play
	call updated with endian information.

	* src/modules/espeak.c (espeak_play_file): spd_audio_play
	call updated with endian information.

	* src/audio/spd_audio.h: Argument format added to spd_audio_play,
	all callers updated.

	* src/audio/spd_audio.c (spd_audio_play): Perform
	byte swap if endianness doesn't match (Patch by Luke
	Yelavich.

2007-11-11  Gilles Casse  <gcasse@oralux.org>

	* src/audio/pulse.c: New file.

	* configure.in, config/modules/espeak.conf,
	config/modules/festival.conf, config/modules/flite.conf,
	config/modules/ibmtts.conf, src/audio/Makefile.am,
	src/audio/spd_audio.c, src/audio/spd_audio.h,
	src/modules/espeak.c, src/modules/festival.c, src/modules/flite.c,
	src/modules/ibmtts.c: files updated for PulseAudio support.

2007-11-05  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speaking.c (speaking_pause_all): Initialize err
	to 0.

	* src/server/output.c (_output_get_voices): Unused variable j,
	atom removed.

	* src/server/set.c (set_synthesis_voice_uid): Unused variable
	output_module removed.

	* src/server/speechd.h (SpeechDOptions): localhost_access_only: new
	variables.

	* src/server/speechd.c (speechd_options_init): Default values
	for LocalhostAccessOnly.
	(main): Open port to all adresses or to localhost only based
	on LocalhostAccessOnly option.

	* src/server/config.c (load_default_global_set_options): Added new
	option LocalhostAccessOnly with default value 1.
	

2007-09-24  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_main.c: Conflicting getline definition changed.

2007-09-23  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils.h: Fixed int -> size_t in getline definiton.

	* src/modules/module_utils.c (do_message): Fixed int -> size_t.
	(do_set): Fixed int -> size_t.

	* src/modules/module_main.c (main): Fixed int -> size_t.

2007-08-28  Hynek Hanke  <hanke@brailcom.org>
	* Version 0.6.4.

2007-08-07  Lukas Loehrer  <listaddr1@gmx.net>

	* config/modules/ibmtts.conf: Add column with expected input encoding to
	IbmttsDialect for each language.
	Disable debugging by default

	* src/modules/ibmtts.c: Added TODO list at the beginning of the
	file.
	(ibmtts_send_to_audio): Increased maximum speech volume
	(module_speak): Convert input from utf-8 to expected encoding for
	selected language dialect, if SSML is not used.
	Check if input is valid utf-8. Assume it is latin-1 if not.
	(various places): Fixed most compiler warnings.
	(_ibmtts_synth): Insert dummy index mark at the end of the message
	to force a callback even if message produces no speech.
	Fix race condition where end of message event can get lost.
	(_ibmtts_stop_or_pause): Prevent stop thread from spuriously waking up.

2007-07-30  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/module_utils.c (module_strip_ssml): Make sure result
	is always NULL terminated. "<" was not.

2007-07-29  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils_addvoice.c (module_getvoice): Return
	NULL instead of exiting on unknown voice.

	* src/modules/ibmtts.c (module_speak): Strip SSML if IbmttsUseSSML
	is 0.
	(module_load): IbmttsUseSSML: new option.

	* config/modules/ibmtts.conf (IbmttsUseSSML): New option.

	* src/modules/ibmtts.c (module_speak): Strip SSML only if
	IbmttsUseSSML is 0.

2007-07-13  Hynek Hanke  <hanke@brailcom.org>

	* INSTALL: Minor details.

	* config/speechd.conf.in: Espeak is now on by default.

	* config/modules/ibmtts.conf: Removed chunk settings.
	Docstring to audio output method settings updated.

	* config/modules/festival.conf: Docstring to audio output method
	settings updated.

	* config/modules/flite.conf: Docstring to audio output method
	settings updated.
	
	* config/modules/espeak.conf: Docstring to audio output method
	settings updated.


	* src/server/alloc.c (spd_message_copy): Copy synthesis_voice to
	the new message.

	* src/server/server.c (queue_message): Copy also synthesis_voice.

	* src/modules/flite.c (_flite_speak): Report end event if
	module_get_message_part does not return anything. (Not error
	and stop event as previously)
	
	* src/modules/module_utils.h: Module list voices included.

	* src/modules/module_utils.c (do_message): Pass space as " "
	to the output modules.

2007-07-11  Milan Zamazal  <pdm@brailcom.org>
>
	* src/modules/festival_client.c: When changing Festival synthesis
	voice, call speechd-set-festival-voice instead of
	speechd-set-voice.

2007-07-11  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/espeak.c (module_speak): Special treatment of
	"space" character.
	(espeak_set_language): Temporary fix for failing assertion when setting language.

2007-07-11  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/module_utils.h (CLEAN_OLD_SETTINGS_TABLE): Fix of
	typo in a variable name.

2007-07-11  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival.c (module_speak): Use
	UPDATE_STRING_PARAMETER instead of UPDATE_PARAMETER for updating
	synthesis_voice.

	* src/modules/module_utils.h (CLEAN_OLD_SETTINGS_TABLE)
	(INIT_SETTINGS_TABLES): Add synthesis_voice.

2007-07-11  Milan Zamazal  <pdm@brailcom.org>
	
	* src/modules/festival_client.c: Use FEST_SET_SYMB instead of
	FEST_SET_STR for FestivalSetSynthesisVoice.

2007-07-10  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/espeak.c (module_close): Before calling
	pthread_join(), make sure threads have really exited by calling
	pthread_cancel().
	(_espeak_play): Fixed potential race with stop thread.
	(_espeak_play , _espeak_stop_or_pause): Work around spurious sem_post()
	after wake-up-up from suspend-to-disk.

2007-07-10  Tomas Cerha  <cerha@brailcom.org>

	* config/speechd.conf.in: Espeak module added.  Descriptions
	improved.

2007-07-09  Tomas Cerha  <cerha@brailcom.org>

	* INSTALL: Minor improvements of the "User applications" section.

2007-07-09  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/espeak.c
	(synth_callback): Use gnit64 to hold
	temporary value to prevent integer overflow in long messages.
	Set default value of EspeakNASServer to "localhost" (fixes warning.
	(module_speak): Removed spurious <speak> tags.

2007-07-08  Hynek Hanke  <hanke@brailcom.org>

	* AUTHORS: Added Steve Holmes and Lukas Loehrer.

	* doc/ssip.texi: LIST SYNTHESIS_VOICES and SET SYNTHESIS VOICE added.

	* INSTALL: Sections reorganized. Added notes about Espeak.

	* ANNOUNCE: Updated for 0.6.3 relese.

	* NEWS: Updated for 0.6.3 relese.

	* config/speechd.conf: Added AddModule line for espeak (native) driver.

	* src/server/output.c (_output_get_voices): Check if reply is not
	null.

2007-07-08  Steve Holmes  <steve@holmesgrown.com>

	* src/modules/generic.c: GenericPunctNone, GenericPunctSome and
	GenericPunctAll: new options.

 	* config/modules/espeak-generic.conf: added 3 new punctuation
 	variables: GenericPunctNone, GenericPunctSome, and GenericPunctAll 
	
2007-07-06  Lukas Loehrer  <listaddr1@gmx.net>

	* src/modules/espeak.c: Added source file for espeak output module.

	* src/modules/Makefile.am: Added sd_espeak to list of output modules.

	* config/modules/espeak.conf: Created configuration file for espeak
	output module.

	* configure.in: Added configuration option for espeak output
	module (--with-espeak).
	
2007-07-02  Hynek Hanke  <hanke@brailcom.org>

	* src/server/module.h (OutputModule): voices -- new variable.

	* src/server/module.c (load_output_module): Generate list of voices.

	* src/server/output.c (_output_get_voices): 

	* src/modules/festival.c (module_speak): Do not update synthesis_voice twice.
	List of voices is generated on the beginning and each language changed and saved
	to memmory.

	* src/server/output.c (_output_get_voices): Renamed from output_list_voices.
	(output_list_voices): New function. Only read from module attributes.

	* src/modules/festival.c (festival_voice_list): New variable.
	(module_init): Get a list of festival voices.

2007-06-26  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival_client.c (festivalGetVoices): Incorrect
	type cast fixed.

2007-06-26  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival_client.c (festivalGetVoices): Return
	language and dialect codes instead of names.

2007-06-25  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/module_utils.h (CLEAN_OLD_SETTINGS_TABLE)
	(INIT_SETTINGS_TABLES): Set language to NULL.

2007-06-24  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (module_speak): Removed NULL
	substitutions for an empty string.

2007-06-21  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c(speechd_init): initialize output modules list.

	* src/server/config.c: Update output_modules_list.

	* src/modules/module_utils.h(INIT_SETTINGS_TABLES): Added module_get_voices.

	* src/modules/module_utils.c: New parameter synthesis_voice.
	(do_list_voices): New function

	* src/modules/generic.c (module_list_voices): New interface function (do nothing)
	
	* src/modules/festival_client.c (lisp_list_get_vect): New function.
	(festivalGetVoices): New function.
	(vect_read_item): New function.

	* src/modules/module_utils.h (CLEAN_OLD_SETTINGS_TABLE): _old.language=strdup("en")

	* src/modules/festival.c (module_speak): Added synthesis_voice.
	(festival_set_synthesis_voice): New function.

	* src/server/output.c (output_send_settings): synthesis_voice new parameter.

	* src/server/set.c (set_synthesis_voice_uid): New function.

	* intl/fdsetconv.c (str2EVoice): If unresolved, voice=NO_VOICE
	instead of -1 (out of enum).

	* src/server/output.c (output_list_voices): New function.

	* src/server/parse.c (parse_list): LIST SYNTH_VOICES: New SSIP command.

	* src/server/output.c (get_output_module_by_name): New function.

	* src/server/msg.h (C_OK_MODULES): New constant.
	(OK_MODULES_LIST_SENT): New constant.

	* src/server/speechd.h (output_modules_list): New variable.

	* src/server/module.c (reload_output_module): Add module name into output_modules_list.

	* src/modules/ibmtts.c (module_list_voices): New interface function (do nothing)

	* src/modules/cicero.c (module_list_voices): New interface function (do nothing)	

	* src/modules/flite.c (module_list_voices): New interface function (do nothing)	

	* src/modules/module_main.c (main): New command GET

2007-06-16  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (spd_events_handler): Do not exit on
	broken socket, but report error.
	(escape_dot): Bug with single character omisions fixed.

2007-05-23  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefile.am (EXTRA_DIST): Added -Wall.

	* src/c/api/Makefile.am (AM_CFLAGS): Added -Wall

	* src/modules/module_utils.h: Copyright updated.

	* src/server/Makefile.am (AM_CFLAGS): Added -Wall.

	* configure.in (LIB_SDAUDIO_BEVISION): Incremented.

	* config/speechd.conf: DefaultCapLetRecognition comment updated.

	* src/modules/ibmtts.c (module_speak): Strip SSML via module_strip_ssml() of module_utils.c

	* src/c/api/libspeechd.c (spd_string_new): New function.
	(spd_string_append): New function.
	(escape_dot): Completely rewritten.

2007-05-06  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils.h (MOD_OPTION_1_INT_REG): Switch order
	of module_dc_options field addition and variable assigment.

	* src/modules/module_utils.h (MOD_OPTION_1_STR_REG): Switch order
	of module_dc_options field addition and variable assigment.

	* version.sh: 0.6.3test1

	* configure.in: libspeechd revision +1

2007-05-03  Hynek Hanke  <hanke@brailcom.org>

	* src/c/clients/say/say.c: First set language, then output module (to override default output module
	for the given language).

	* config/Makefile.am (CLEANFILES): Added speechd.conf to CLEANFILES.

	* src/server/speechd.h: Logging mutex.

	* src/server/speechd.c (MSG2): ctime/vfprintf safe logging.
	(MSG): ctim/vfprintf safe logging.
	(main): Initalize logging_mutex.

	* src/c/api/libspeechd.c (spd_send_data_wo_mutex, SPD_DBG): Thread safe logging.
	(spd_events_handler): fixed bug: strdup(reply) + xfree(reply), otherwise we could
	over
	(spd_events_handler, spd_send_data_wo_mutex): fixed bug: strdup(connection->reply) + xfree(connection_reply)

2007-02-27  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf.in: Uncomment espeak.

	* config/speechd.conf.in: Comment out default language modules.

	* NEWS: 0.6.2

	* config/modules/espeak-generic.conf: speak changed to espeak.

	* src/modules/generic.c (generic_set_language): If no language
	entry is specified, set the language code passed by SSIP without
	any charset recoding.

	* config/modules/espeak-generic.conf: Language settings removed
	(unnecessary).  Added definitions for all available espeak voices.
	Changed speak to espeak.

	* src/server/server.c (queue_message): Cast mem_free_message to GFunc
	instead of GFunc* in g_list_foreach.

	* src/server/speaking.c (speak): Cast mem_free_message to GFunc
	instead of GFunc* in g_list_foreach.

	* INSTALL: Reverted to version 1.40 and small improvements
	(mention espeak etc.)

	* version.sh (VERSION): 0.6.2

	* src/modules/festival.c: Copyright update.

	* src/modules/generic.c (_generic_speak): Report CANCEL on signal
	termination of the child process and END if it terminates
	normally.

2007-02-17  Hynek Hanke  <hanke@brailcom.org>

	* version.sh : Version number 0.6.2test1

2007-02-17  Hynek Hanke  <hanke@brailcom.org>

	* src/server/compare.c (compare_message_uid): Remove unnecessary
	assertion.

	* src/server/config.h: Copyright.

	* src/server/index_marking.c (insert_index_marks): Assert msg->buf
	!= NULL.

	* src/server/speaking.c (queue_remove_message): New function.
	(empty_queue): Use queue_remove_message.
	(empty_queue_by_time): Use queue_remove_message.
	(message_nto_speak): Spelling.

	* src/server/speechd.c (main): Increased number of connections to
	hold in the listen() queue to 50.
	Copyright.

	* src/server/compare.c (compare_message_uid): Do not check for
	message->settings.fd.

	* src/server/speaking.c (speaking_cancel_all): +stop_priority(4,5)

2007-01-27  Olivier BERT  <obert01@mistigri.org>

	* src/modules/cicero.c: Converting to ISO-8859-1 is not needed anymore

2006-11-29  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (spd_char): Execute CHAR command
	without mutex!
	(RET): Unlock mutex in RET.
	(spd_events_handler): 

2006-11-17  root  <hanke@brailcom.org>

	* configure.in (LIB_SDAUDIO_AGE): LIB_SPD_REVISION=2

2006-11-17  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (spd_get_client_list): removed.
	: Copyright updated.

	* src/server/parse.c (parse_stop, parse_stop): Added mutexes
	around speaking_stop*() calls.

2006-11-05  Hynek Hanke  <hanke@brailcom.org>

	* src/guile/README: Mailing list correction.

2006-09-28  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/priority_progress.test: New test.

	* src/server/server.c (queue_message): Insert all messages from tha last priority
	progress block into the last_p5_block list.

	* src/server/speaking.c (speak): Handle last priority progress messages as a list
	of messages in a block.

	* src/server/speechd.c (speechd_init): last_p5_message renamed to last_p5_block.

	* src/server/speechd.h: last_p5_message renamed to last_p5_block.

2006-07-25  Hynek Hanke  <hanke@brailcom.org>

	* Makefile: Added distdir: target

	* version.sh: 0.6.1

	* INSTALL: +Orca experimental support.

2006-07-20  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/cicero.conf: Rewritten + comments.

	* src/modules/cicero.c (module_init): Drop CiceroWrapper. Use
	CiceroExecutable.  New option: CiceroExecutableLog
	(module_init): Ignore SIGPIPE in both threads.

2006-07-13  Hynek Hanke  <hanke@brailcom.org>

	* src/python/setup.py: Distutils setup.

	* src/python/Makefile: New file.

	* src/Makefile.am (SUBDIRS): +python

2006-07-11  Hynek Hanke  <hanke@brailcom.org>
	FSF address updated in all files.

2006-07-11  Hynek Hanke  <hanke@brailcom.org>
	
	* src/server/speechd.h: speechd_pid_file removed.

	* src/server/speechd.c (main): If pid_file specified on command
	line, use this one.

	* src/server/options.c (options_parse): Added pid_file.
	(SPD_OPTION_SET_STR): New macro.

	* src/server/speechd.h: Added pid_file to SpeechdOptions.

	* src/server/options.h: Added options pid-file.

2006-06-29  Olivier BERT  <obert01@mistigri.org>

	* src/modules/cicero.c: Updated Copyright in cicero.c
	* spe/modules/cicero.c: Replaced a fixed buffer size by a dynamic 
	  allocation


2006-06-29  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/cicero.conf: Captions, debugging.

2006-06-27  Hynek Hanke  <hanke@brailcom.org>

	* src/Makefile.am: Include Python and Guile files in the
	distribution.

2006-06-22  Olivier BERT  <bert_o@epita.fr>

	* Added support for the cicero TTS (french and english).
	    Cicero TTS URL: www.cam.org/~nico/cicero
	* Updated config/speechd.conf.in to add the declaration of the
	 cicero module.
	* The specific documentation and files for the cicero module are
	  still at the following URL:
	  http://www.terramitica.net/projects/speech-dispatcher

2006-05-17  Hynek Hanke  <hanke@brailcom.org>

	* INSTALL: Users must run './configure' before 'make all'.

2006-05-13  Hynek Hanke  <hanke@brailcom.org>

	* README.packagers: Most information about IBM TTS moved to INSTALL.

	* INSTALL: Info about IBM TTS output module from README.packagers.

	* ChangeLog: Comments about documentation moved to doc/ChangeLog.

2006-05-07  Gary Cramblitt <garycramblitt@comcast.net>

	* config/modules/espeak-generic.conf: Support for pitch adjustment
	and better mappings.

2006-04-25  Gary Cramblitt <garycramblitt@comcast.net>

	* src/c/clients/say/say.c, options.h, options.c:

2006-04-23  Gary Cramblitt <garycramblitt@comcast.net>

	* config/modules/ibmtts.conf: * src/modules/ibmtts.c: *
	configure.in: * src/modules/Makefile.am: Sound icon emulation.
	Requires libsndfile.  Also, permit customization of voices in
	config file.

	* src/tests/sound_icons.test: Simple test script for sound icons.

2006-04-22  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/espeak-generic.conf: eSpeak generic output module
	configuration.

	* config/speechd.conf.in: Added espeak-generic conf module
	(commented out).

	* src/server/speaking.c (speak): Break loop when SPEAKING only
	after checking for pause. Do not fill resume_requested with 1.

	* src/server/set.c (default_fd_set): Initialize
	paused_while_speaking to 0.

	* src/server/server.c (queue_message): Only copy settings and
	type when we get an fd. For uids, the message settings are
	already filled in.


2006-04-21  Gary Cramblitt <garycramblitt@comcast.net>

	* config/modules/ibmtts.conf:
	* src/modules/ibmtts.c: Permit per-language key substitution.


2006-04-16  Gary Cramblitt <garycramblitt@comcast.net>

	* src/modules/ibmtts.c: Rework stop and pause logic.  You cannot call
	module_report_* from within a modules_stop() or module_pause call.

	* src/tests/stop_and_pause.test: Minor changes.

2006-04-12  Gary Cramblitt <garycramblitt@comcast.net>

	* src/modules/ibmtts.c:
	* config/modules/ibmtts.conf: Key substitution for IBM TTS.

	* src/tests/keys.test: Test script for keys.

2006-04-11  Gary Cramblitt <garycramblitt@comcast.net>

	* src/tests/run_test.c: Add "wait for <str>" operator.  Useful for
	waiting for event notifications.

	* src/tests/README: Document "wait for".

	* src/tests/stop_and_pause.test: Use "wait for".

2006-04-10  Gary Cramblitt <garycramblitt@comcast.net>

	* src/c/clients/say/say.c, options.h, options.c:

	* config/modules/ibmtts.conf:
	* config/speechd.conf.in:
	* src/modules/ibmtts.c, Makefile.am:
	* src/configure.in.in: New output module for IBM TTS synthesizer.
	It compiles and even speaks, but don't expect much else right now.

	* src/modules/module_utils.c, src/c/api/libspeechd.c: Remove do
	nothing statement in xfree().

	* src/tests/basic.test: Minor spelling and grammar corrections.

	* src/tests/ssml.test: Start on new SSML test script.

	* src/tests/stop_and_pause.test: A script for testing STOP and
	PAUSE functions.


2006-04-10  Hynek Hanke  <hanke@brailcom.org>

	* COPYING: Added GNU Lesser General Public License.

	* src/modules/module_utils.c: Relicensed to GNU Lesser General
	Public License

	* src/modules/module_utils.h: Relicensed to GNU Lesser
	General Public License

	* src/modules/module_utils_addvoice.c: Relicensed to GNU Lesser
	General Public License

	* src/modules/module_main.c: Relicensed to GNU Lesser
	General Public License

	* src/audio: Relicensed to GNU Lesser General Public License

2006-04-07  Gary Cramblitt <garycramblitt@comcast.net>

	* /src/modules/flite.c: Correct DBG "NAS" -> "ALSA"

2006-04-06  Gary Cramblitt <garycramblitt@comcast.net>

	* src/modules/module_utils.h: Fix broken macro (not previously used).

2006-03-31  Tomas Cerha  <cerha@brailcom.org>

	* FAQ: Formatting improved.

2006-03-30  Gary Cramblitt <garycramblitt@comcast.net>

	* doc/Makefile.am: Correct build error for HTML.

2006-03-29  Gary Cramblitt <garycramblitt@comcast.net>


2006-03-13  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/oss.c: Include string.h

2006-01-25  Hynek Hanke  <hanke@brailcom.org>

	* version.sh: 0.6

	* ANNOUNCE: release 0.6

	* FAQ (A): +server_access_list

2006-01-09  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (gettimeofday): 0->NULL

	* src/audio/nas.c (nas_play): gettimeofday takes 2 arguments only
	under _GNU_SOURCE.

2006-01-08  Hynek Hanke  <hanke@brailcom.org>

	* : Missing declarations fixed, cleaning w/r to gcc -Wall

2005-12-22  Hynek Hanke  <hanke@brailcom.org>

	* src/c/clients/say/say.c, options.c, options.h: Allow setting of
	client name and connection name.

	* version.sh: version 0.6rc1

2005-12-07  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (spd_execute_command_with_reply): Don't use mutex.

	* src/audio/oss.c: Fixed memmory leaks.

	* src/audio/alsa.c (alsa_play): Free alsa_poll_fds.

	* src/modules/festival_client.c (FEST_SEND_CMD): Examine reponse on (require 'speech-dispatcher).

	* src/modules/flite.c (module_speak): Bugfix (use *flite_message, not flite_message)
	(_flite_speak): Call delete_wav().
	(_flite_speak): Free buf.

	* src/modules/generic.c (_generic_speak): Formatting.
	(_generic_speak): Print "no_voice" to $VOICE when no voice is
	specified.

	* src/modules/module_utils.c (do_pause): Changed return values of do_stop, do_pause.
	(module_get_message_part): reformated header.

	* src/modules/module_utils.h: Cleaning-up: fixed return values of do_stop and do_pause, remove do_speaking

	* src/server/output.c (output_module_is_speaking): Debugging.

	* src/server/server.c (queue_message): Save msg_id before
	resolv_priorities() is called and return this id.
x
	* src/c/clients/say/say.c: Now recognizes also -S (stop all) and -C (cancel all) functions.

	* src/c/api/libspeechd.h (spd_execute_command_wo_mutex): New function
	(spd_send_data_wo_mutex): New function.

	* src/c/api/libspeechd.c: libspeechd should now be thread-safe.

2005-11-30  root  <hanke@brailcom.org>

	* src/server/server.c (queue_message): Return id, not new->id, since new doesn't have to exist
	after resolve_priorities().

2005-11-30  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/generic.c (_generic_speak): If no voice is found, print "no_voice"
	into the command string.

	* src/server/output.c (output_is_speaking): Don't check for output != NULL.
	(output_module_is_speaking): Check for output != NULL.

	* src/audio/oss.c (oss_play): free track_volume.samples.

	* src/audio/alsa.c (alsa_play): Free id->alsa_poll_fds structure at the end of playback.

	* src/modules/flite.c (module_speak): Memmory leak fixed.
	(_flite_speak): xfree(buf);

	* src/server/speaking.c (speak): Debug message.

	* src/server/output.c (output_is_speaking): If speaking_module is NULL, then
	assigne NULL to *index_mark, not index_mark.
	(output_module_is_speaking): Added more debugging.

2005-11-21  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.h (spd_set_data_mode): Added.

	* src/c/api/libspeechd.c (spd_set_data_mode): New function.

	* configure.in: New version of libspeechd.c

	* src/c/api/libspeechd.c (spd_events_handler): Bugfix: reply_code >= 700

2005-11-08  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (alsa_play): Call snd_pcm_drop at the end of
	playback.

2005-10-29  Hynek Hanke  <hanke@brailcom.org>

	* src/server/output.c
	(waitpid_with_timeout): New function.
	(output_close): Don't wait for reply from CLOSE.
	(output_close): Rewritten.
	(output_module_is_speaking): Handle 7xx codes.

	* src/server/module.c (unload_output_module): Only load modules with configfilename, drop semaphore.

	* src/modules/module_utils.h: Prototypes for module_report_ functions.

	* src/modules/module_utils.c (module_send_asynchronous): New function.
	(module_report_index_mark): Renamed.
	(module_report_event_begin): New function.
	(module_report_event_end): New function.
	(module_report_event_pause): New function.
	(module_report_event_stop): New function.
	Don't use current_index_mark variable.

	* src/modules/festival.c: Use module_report_event functions
	for events.

	* src/audio/alsa.c (_alsa_open): Don't initialize hw_params.
	(_alsa_open): Don't open pipes.
	(alsa_play): Initialize/free hw_params and pipes.
	_alsa_open was now splitted into two parts in the hope
	to avoid crack sounds and go around the buggy place in
	alsa lib which brings all ALSA apps down when reached.

2005-10-26  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils.c (module_report_index_mark): Index marking
	splitted into index marks and events signalization.

	* src/audio/oss.c (_oss_open): Bug: id freed before id->fd_mutex
	is unlocked.

	* src/server/output.c (output_close): Don't wait for reply from STOP.
	(output_close): Use waitpid_with_timeout instead of waitpid. If it
	doesn't succeed in 1 seccond, kill the module.
	(waitpid_with_timeout): New function.

2005-10-16  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (module_close): Only close audio if festival_audio_id != NULL.

	* src/server/speechd.c (main): fclose(stdout) and fclose(stderr) removed since this would
	free the first three file descriptors and some function might use them, although daemon()
	will subsequently close them.
	(main): Call pthread_create() only after daemon(). For some reason, threads don't mix with
	daemon.

	* src/audio/alsa.c (_alsa_close): Only close the device if it wasn't closed earlier.

2005-10-16  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (module_speak): Handle
	festival_connection_crashed == 1

	* src/modules/festival_client.c: If connection to Festival
	is broken, set festival_connection_crashed to 1.

	* src/server/sem_functions.c: Unnecessary semaphore functions
	removed.

	* src/server/sem_functions.h: Unnecessary semaphore functions
	removed.

	* src/server/speaking.c (speak): Log error if the module can't
	say the message, but doesn't crash.

	* src/server/speechd.c (speechd_init): Semaphore
	initialization removed.

	* src/audio/Makefile.am: Include oss.c, alsa.c and nas.c in EXTRA_DIST.

	* src/audio/oss.c (oss_play): Don't fail if it's not possible to set the exact bitrate,
	just log it as an error.

	* src/c/api/libspeechd.c (spd_open): First create connection->stream and initialize mutexes
	and only later create the new events thread.

	* src/server/speechd.c (main): Detach only after all initialization took place
	and Speech Dispatcher is ready to accept new connections.

2005-10-12  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speaking.c (speak): Activity events POLLPRI added to POLLIN.
	(is_sb_speaking): Use speaking_semaphore_post() after CANCEL notification from
	output module.

	* src/server/output.c (output_send_data): New custom log branch: output_module.
	(output_send_data2): New function.

	* src/modules/module_main.c (main): Don't use semaphore.

	* src/c/api/libspeechd.c (spd_open): Set no buffering for connection socket associated
	stream.

	* src/modules/module_utils.h (SPDSemaphore): Variable removed.

	* src/modules/module_utils.c (module_index_mark_store): SPDSemaphore: related functions removed.

	* src/modules/festival.c (_festival_speak): Signal STOPPED instead of END on festival_stop.

2005-10-10  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.h (speaking_pipe): New global variable.

	* src/server/speechd.c (speechd_init): Init speaking_pipe.

	* src/server/speaking.c (speak): Use pipe instead of semaphore.

	* src/server/sem_functions.c (speaking_semaphore_post): Use pipe
	instead of semaphore.

	* src/server/output.c (output_read_reply): New function.
	(output_send_data): Use output_read_reply.

	* src/server/module.h (OutputModule) stream_out: New variable.

	* src/server/module.c (load_output_module): Create stream from socket
	for buffered reading.

	* src/modules/flite.c (module_load): Include ALSA in audio output methods.

	* configure.in: Fixed versioning for libsdaudio

	* src/modules/festival.c (CLEAN_UP): Index mark signalling moved
	here.
	(CLP): Index mark signallling moved here.

	* src/modules/module_main.c (main): STOP and PAUSE are now without
	reply.

	* src/modules/module_utils.c (module_index_mark_store): Write
	directly to stdout.

	* src/server/speaking.c (speak): Use pipes and poll() instead of
	semaphore.

2005-10-05  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (speechd_init): Semaphore sanity test temporarily disabled.

2005-09-12  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (_alsa_close): Removed redundant free().

2005-09-12  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/run_test.c (main): Do not cancel() the messages at the end.

	* src/tests/long_message.c (main): Updated for new spd_open()

	* src/tests/clibrary.c (main): Updated for new spd_open()

	* src/server/set.c (set_notification_*): New functions.
	(SET_NOTIFICATION_STATE): New macro.

	* src/server/server.c (queue_message): Behave differently if the message is queued or re-queued.

	* src/server/parse.c (CHECK_SSIP_COMMAND): Index marks.

	* src/server/msg.h: Define index marking 7xx replies.

	* src/server/index_marking.h (SD_MARK_*): New macros.

	* src/server/history.c (history_get_message): Return dynamically allocated SSIP replies.

	* src/server/alloc.c (spd_message_copy): Copy index_mark too.
	(mem_free_fdset): Free index_mark too.

	* src/modules/module_utils.h (module_is_speaking): Now returns char* (index mark).

	* src/modules/flite.c: Implement callbacks.

	* src/modules/festival.c: Implements callbacks.
	* src/c/clients/say/say.c: Implement -w.

	* src/c/clients/say/options.h: New -v option.

	* src/c/clients/say/options.c: Include correct system headers.
	(options_print_version): Updated copyright info.
	(options_parse): New -w option.

	* src/c/api/libspeechd.h: Prototypes for new functions.

	* src/c/api/libspeechd.c: Use SPDConnection* instead of int as a connection.
	(parse_response_data): Rewritten.
	(get_param_int): New function.
	(get_param_str): New function.
	(spd_events_handler): New function. Asynchronous events handler.
	(get_reply): Rewritten.
	(spd_open): Added parameter mode. (Backwards incompatibility :(

	* src/c/api/Makefile.am: Include lpthread.

	* src/audio/oss.c (oss_play): Better debugging.
	(oss_play): Timing reworked.

	* intl/fdset.h (ENotification): New type.
	(notification): New variable.
	(paused_while_speaking): New variable.

	* config/modules/festival.conf: Updated. 0 and 1 insted of On and Off (they don't work).

	* configure.in (LIB_SDAUDIO_AGE): New version of the library, AGE=0.

	* src/server/speaking.c (is_sb_speaking): Post on semaphore when "end" is received.

	* src/modules/module_main.c (main): Redundant \n removed.

	* src/modules/festival_client.c (festivalGetDataMulti): Free reply in the last round.

	* src/server/server.c (queue_message): Free the whole last_p5_message, not just spd_free().

	* src/modules/module_utils.c (do_message): Free 'cur_line'.

	* src/modules/module_main.c (main): Free 'cmd_buf' in each loop.

	* src/modules/festival.c (_festival_speak): Free 'fwave' in multi-mode.

	* src/server/server.c (serve): Free 'reply' even if delivered empty or with '999' code.

	* src/server/speechd.c (MSG2): Free memmory for 'time' string.

	* src/server/parse.c (GET_PARAM_INT): Free memmory for 'helper'

	* src/server/speechd.c (MSG): Free memmory for 'time' string.

	* src/server/module.c (load_output_module): Force read/write
	privilegies for owner when creating module log.

	* src/c/clients/say/say.c: Now uses callbacks and supports a '-w'
	option which causes it to wait until the message is said or
	discarded.

	* src/c/api/libspeechd.c (spd_set_notification): New function.
	(NOTIFICATION_SET): New macro.
	(spd_set_notification_off): New function.
	(spd_set_notification_on): New function.

	* src/server/speaking.c (reload_message): Insert messages with
	NULL index mark into the queue too.

	* src/modules/flite.c (module_pause): Flite doesn't support real
	pause. Just stop.

	* src/audio/oss.c (oss_play): Removed a timing bug.

	* src/modules/festival.c (module_pause): PAUSE now acts
	immediatelly. The change of the state is reported by the
	appropriate index_mark event.

	* src/server/speaking.c (reload_message): Don't free msg->buf since this will be done through current_message.

	* src/server/index_marking.h (SD_MARK_HEAD): Separated into _HEAD and _BODY

	* src/server/speechd.c (speechd_init): Init socket_com_mutex.

	* src/server/speechd.h (socket_com_mutex): New mutex.

	* src/server/set.c (default_fd_set): Set all notifications to 0.
	(set_notification_self): New function.

	* src/audio/alsa.c (alsa_play): Typo.

	* src/c/api/libspeechd.{c.h}: Declarations of internal functions moved to libspeechd.c so that
	gcc doesn't complain about redeclarations of static functions as non-static.

	* src/audio/alsa.c (alsa_play): Handle XRUN state when preparing to play.

2005-07-23  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (alsa_play): Initialize hw_params each time
	before setting parameters.

2005-07-10  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c (ERR): New macro. Use it, when appropriate.
	(_alsa_open): Output device name too when impossible to open.
	No mutexes now necessary.
	(_alsa_open): Create a pipe for communication of stop requests to
	the other thread.
	(_alsa_close): Close the pipe.
	Improved logging.
	(wait_for_poll): New function.
	(ERROR_EXIT): New macro. Used instead of ``goto error_exit''.
	(alsa_play): The while loop modified for the new mechanism (see comments).

2005-07-04  Hynek Hanke  <hanke@brailcom.org>

	* src/server/config.c (cb_EndClient): Assign NULL to cl_spec_section.

	* src/server/server.c (last_messge_id): Start counting from 1.
	(queue_message): Changed return value to message uid on success, 0 on failure.

2005-07-02  Hynek Hanke  <hanke@brailcom.org>

	* src/c/clients/say/options.c (options_print_version): fixed copyright notice

2005-07-02  Hynek Hanke  <hanke@brailcom.org>

	* config/clients/emacs.conf: Change nothing by default.

	* config/speechd.conf.in: Load the clients specific configuration files for Emacs and Gnome Speech by default.

	* config/clients/gnome-speech.conf: Local configuration for gnome speech.

	* config/modules/festival.conf: Mention FestivalALSADEvice

	* src/audio/alsa.c (alsa_play): Bug: snd_pcm_format_silence_8() -> snd_pcm_format_silence()

	* src/audio/spd_audio.c (spd_audio_open): Typo.

	* src/modules/festival.c (module_load): Add FestivalALSADevice parameter.

	* src/audio/alsa.c (alsa_open): New parameter: alsa device.

2005-06-10  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c: Alsa now works in blocking mode (thx Gary Cramblitt)
	MSG() new macro.
	Better logging mechanism.

	* config/modules/: DebugFile option moved to speechd.conf.

	* config/speechd.conf.in: main and custom logfiles default path modified.

	* config/speechd.conf.in: logfile paths added for each output module.

	* src/modules/festival.c (module_speak): INIT_DEBUG() removed.

	* src/modules/flite.c (module_init): INIT_DEBUG() removed.

	* src/modules/generic.c (module_init): INIT_DEBUG() removed.

	* src/modules/module_utils.h (DECLARE_DEBUG): Removed DebugFile.
	(REGISTER_DEBUG): Removed DebugFile.
	(INIT_DEBUG): Removed.

	* src/server/module.h (OutputModule): New variables debugfilename and stderr_redirrect.

	* src/server/config.c (cb_AddModule): Handle 3rd parameter: debugfile.

	* src/server/module.c (load_output_module): Redirrect stderr to the file specified
	as mod_dbgfile argument (given in the configuration).

2005-05-13  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/alsa.c: New file.

	* src/modules/festival.c (module_init): Added the "alsa" parameter
	as a valid output method.

	* INSTALL: Warn about NAS bugs under heavy use, mention ALSA.

	* src/c/clients/say/say.c: New parameter -P, --priority.

	* src/c/clients/say/options.c (options_print_help): Added -P, --priority.
	(VERSION): 0.3
	(options_parse): priority.

	* src/c/clients/say/options.h: Added the priority parameter.

	* src/audio/spd_audio.c: Include alsa module.

	* configure.in: Optional (and autodetect) compilation with ALSA support.

	* src/audio/Makefile.am (ALSA_LIBS): New variable.
	(ALSA_FLAGS): New variable.

	* src/audio/spd_audio.h (AudioID): Added ALSA variables.
	include alsa/asoundlib.h

2005-05-06  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/run_test.c: Cancel everything at the end.

	* src/server/index_marking.c (insert_index_marks): Escape '<' correctly after a dot.

	* INSTALL: Updated the list of compatible applications.
	New section ``Building from CVS''

	* INSTALL: libaudio removed, speechd doesn't depend on it.
	autotool chain replaced by build.sh

	* src/c/clients/say/options.c (options_parse): Missing 'break'.

2005-02-27  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (_festival_speak): Removed some redudant debug messages.

	* src/c/clients/say/say.c (main): Print help correctly.

2004-12-10    <hanke@robinson>

	* src/audio/nas.c: One more DBG removed.

	* src/audio/nas.c (_nas_handle_server_error): Use fprintf instead of DBG since
	we don't have access to DBG in the library anyway.

2004-12-10  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (LIB_SDAUDIO_REVISION): Incremented.

	* src/audio/nas.c (_nas_handle_server_error): New function.
	(nas_open): Setup our own error handler.

2004-11-29  Hynek Hanke  <hanke@brailcom.org>

	* configure.in (LIB_SDAUDIO_REVISION): Incremented.

	* src/audio/oss.c (_oss_open): Don't use O_NONBLOCK since this is some undocumented
	feature and doesn't have to work on other systems.
	(oss_play): Compute the number of bytes needed to send correctly with bytes_per_sample.
	(oss_play): Determine the optimal fragment size and available buffer space in OSS
	using SNDCTL_DSP_GETOSPACE ioctl().
	(oss_play): DELAY is now in seconds rather than nanoseconds.
	(oss_play): If after the first write in the loop we still have a little data,
	but not a full fragment, we write them to OSS immediatelly.
	(oss_play): Better calculation of the timing shift (delay).

2004-11-21  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/nas.c (nas_play): Correct type for event_handler.

	* src/audio/spd_audio.c (spd_audio_open): Don't generare incompatible types warnings.

	* configure.in (flite_kal): Provide --with-nas and --with-flite options.

	* src/audio/spd_audio.h (Funct): (*open) now returns int.

	* src/modules/festival.c (_festival_speak): Set FestivalMultiMode only if text not found in cache.

2004-11-19  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/spd_audio.h (device_name): New parameter of AudioID.

	* src/audio/oss.c (_oss_open): New function.
	(_oss_close): New function.
	(oss_open): Don't open OSS device.
	(oss_play): Open OSS device and close it again.
	(oss_close): Don't close OSS device.

	* config/modules/flite.conf (FliteNASServer) "tcp/" added.

	* config/modules/festival.conf (FestivalNASServer) "tcp/" added.

	* src/modules/flite.c (_flite_speak): oss_pars removed. Open and close
	audio device only at the beginning and end.

	* config/speechd.conf (DefaultVolume): Now 0 (makes sense for NAS).

	* src/modules/festival.c (_festival_speak): oss_pars removed. festival_pars is used now.
	(_festival_speak): Open and close the audio device only at the beginning and end, not
	before and after playing each track.

2004-11-15  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefile.am (modulebin_PROGRAMS): sd_festival and sd_generic added into modulebin_PROGRAMS.

	* INSTALL: More information about Flite and NAS support when building.

	* src/tests/Makefile.am (bin_PROGRAMS): The 'audio' target removed. This test was
	removed with the new audio subsystem.

	* src/modules/Makefile.am (modulebin_PROGRAMS): Compile the flite module according
	to the flite_support variable.

	* src/audio/oss.c (oss_play): Adjust the volume in a copy of the track,
	not in the track itself, since this leads in degenerating the tracks
	maintained in cache.

	* configure.in: Don't require flite libraries to be present.
	Report on whether flite libraries are available.
	(flite_support): New conditional variable.

2004-11-14  Milan Zamazal  <pdm@zamazal.org>

	* src/audio/Makefile.am (libsdaudio_la_LDFLAGS): -L/usr/X11R6/lib
	added.

2004-11-14  Milan Zamazal  <pdm@brailcom.org>

	* configure.in (audio): -L/usr/X11R6/lib added to the test.

2004-11-13  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/Makefile.am (bin_PROGRAMS): Exclude audio target.

	* src/server/output.c (output_check_module): Added more debug info to "protocol" log.

	* src/modules/module_utils.h (MOD_OPTION_1_STR_REG): If arguments is NULL, handle correctly.

	* src/modules/flite.c:  Reworked to support the new audio interface.

	* src/modules/festival.c: Reworked to support the new audio interface.

	* src/modules/Makefile.am (EXTRA_DIST): Removed modle_utils_audio.c

	* src/audio/spd_audio.h: New library header file.

	* src/audio/Makefile.am (am_cflags): New variable.
	Compile the library with or without NAS according to ($nas_support)

	* src/modules/festival.conf: New audio output options.

	* src/modules/flite.conf: New audio output options.

	* configure.in: Check for NAS libraries.

	* configure.in (LIB_SDAUDIO): Version incremented (backwards incompatible).

	* src/audio/spd_audio.c (oss_play): New audio output library with support of stopable
	(and possibly non-blocking) OSS output.
	(oss_play): Some more timing magic.

	* src/modules/flite.c (_flite_child): Use flite_text_to_wave again and play the sound
	through the new sound output system.

	* src/modules/module_utils_audio.c: Removed, no longer necessary.

2004-10-18  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf.in: Modified comment for AddModule (new default relative path).

	* ANNOUNCE: 0.5 release.

	* src/modules/module_utils.c (module_get_message_part): Old-style index marking with '@' removed.

	* src/server/module.c (load_output_module): Report path of each module it can't load.

	* src/server: Log levels for various status messages going into the logfile
	changed.

2004-10-10  Hynek Hanke  <hanke@brailcom.org>

	* src/server/server.c (serve): Substitute binary zeros with a '?'
	in incomming data.

	* src/python/speechd/_test.py (Client.check_it): Some more tests.

	* src/python/speechd/client.py (Client.char): New method.
	(Client.key): New method.
	(Client.sound_icon): New method.
	(Client.pause): New method.
	(Client.resume): New method.
	(Client.set_punctuation): New method.
	(Client.set_spelling): New method.
	(Client.set_cap_let_recogn): New method.
	(Client.set_voice): New method.
	(Client.set_volume): New method.
	(Client.block_end): New method.
	(Client.block_begin): New method.

	* src/python/speechd/client.py (Client.say_char): New function.
	(Client.cancel): New function.
	(Client.__set_priority): New function.
	(Client.say): Use __set_priority.
	(Client.get_client_list): Commented out since not active in current SSIP.

	* src/python/speechd/client.py (_SSIP_Connection.send_data): Correct escaping of the end-of-data sequence.

	* src/python/speechd/_test.py (tests): Added test for escaping dot.

	* configure.in, all Makefiles.am: Don't link unnecessary libraries.

2004-08-12  Milan Zamazal  <pdm@brailcom.org>

	* configure.in (AC_OUTPUT): spdsend added.

	* src/c/clients/spdsend/Makefile: Removed.

	* src/c/clients/spdsend/Makefile.am: New file.

	* src/c/clients/Makefile.am (SUBDIRS): `spdsend' added.

2004-08-04  Hynek Hanke  <hanke@brailcom.org>

	* src/server/set.c (CHECK_SET_PAR): Report name of the parameter.
	(update_cl_settings): Update also volume.

2004-07-22  root  <hanke@brailcom.org>

	* src/modules/festival_client.c (client_accept_waveform): Only fill in wave->samples if wave->num_samples
	is more than 0.

2004-07-21  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (cache_insert): Don't copy the fwave structure, just save the pointer.
	(module_speak): Removed redudant debugging messages.

2004-07-21  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefile.am (AM_CFLAGS): $(spdlibdir) not ($spdlibdir)

	* src/modules/module_utils.h: module_init now has a new parameter char **status_info.

	* src/audio/Makefile.am (spdlib_LTLIBRARIES): Install into spdlibdir.

	* configure.in: Define spdlibdir.

	* src/server/module.c (load_output_module): Send the INIT command and provide the user with
	the resulting information in log.

	* src/modules/module_utils.c (module_strip_punctuation_some): Don't care about index marks.

	* src/modules/generic.c (module_init): Provide information about the reason if initialization fails.

	* src/modules/flite.c (module_init): Provide information about the reason if initialization fails.

	* src/modules/festival.c (module_init): Provide information about the reson if initialization fails.

	* src/modules/module_main.c (main): Wait for INIT command after launch.

	* src/server/speechd.h (BUF_SIZE): Lowered to 128 since we are reading only one line.

	* src/server/speechd.c (MSG2): Append exact timestamps to custom log also.

	* src/modules/festival_client.c: Don't wait for response with character, sound-icon, key.

2004-07-18  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/generic.c (module_speak): Handle if recoding fails.

	* src/modules/festival.c (module_parent_dp_init): Don't set MultiMode before each synthesis.

	* src/server/index_marking.c (insert_index_marks): Escape ampersound.

	* src/modules/festival_client.c (festivalGetDataMulti): Wait for terminating OK even in case
	speechd-next returns 'nil'.

2004-07-13  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (MSG): Include timestamps in microseconds.

	* src/server/output.c (output_lock): Don't output silly debugging messages.

	* config/modules/llia_phon-generic.conf: New file.

	* src/modules/festival.c (_festival_parent): Do not delete the wav if it's in cache.
	(module_speak): Enable multi-mode right at the beginning.

	* src/modules/generic.c (module_init): Set default values for generic_msg_language.
	(module_speak): Strip ssml marks before speaking.

2004-07-04  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (main): Exit if create_pid_file != 0.

2004-07-02  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefila.am: Include module_utils.h into sources.

	* Release 0.5-rc1

2004-06-28  Hynek Hanke  <hanke@brailcom.org>

	* src/server/parse.c (parse_set): New SSIP command SET SELF SSML_MODE.

	* src/server/index_marking.h: Removed find_next_index_mark(), not necessary.

	* src/server/config.c (load_default_global_set_options): Initialize ssml_mode to 0.

	* src/modules/module_utils_audio.c (module_audio_output_child): Initialize bitrate and volume to 0 (default).

	* src/modules/module_utils.h: New file.

	* src/modules/module_utils.c: Some stuff moved to module_utils.h

	* src/modules/module_main.c (main): Cleaning.

	* src/modules/generic.c (module_speak): Strip SSML marks.

	* src/modules/flite.c (module_speak): Strip SSML marks.

	* src/modules/festival.c (module_pause): Now handled through SSML index marks.

	* src/modules/Makefile.am: module_utils.c now linked, not included.

	* src/audio/spd_audio.h: Added headers for some functions.

	* intl/fdsetconv.c: With header fdsetconv.h

	* intl/fdsetconv.h: New file.

	* config/modules/festival.conf: Removed "text transformation" section, no longer necessary.

	* src/modules/module_utils_audio.c (module_audio_output_child): Parameter ``nothing'' removed.

	* src/modules/festival.c (module_load): Festival MaxChunkLength and Delimiters removed.
	(module_load): FestivalStripPunctChars removed.

	* src/server/set.c (set_ssml_mode_uid): New function.

	* src/server/msg.h (ERR_COULDNT_SET_PRIORITY): SSML MODE messages added.

	* src/server/index_marking.c (strip_index_marks): Rewritten.

	* src/modules/festival_client.c: Use speechd-speak-ssml instead of speechd-speak.

	* src/server/index_marking.c (insert_index_marks): Switch to SSML-type callbacks.

	* src/modules/festival_client.c (festivalStringToWaveGetData): Removed the multiple-waveform
	behavior.


	* Makefile.am (EXTRA_DIST): Include version.sh to the distribution.


	* src/modules/festival.c (module_speak): If socket is closed, open a new one.

	* src/modules/festival_client.c (festivalGetDataMulti): New
	parameters stop_flag and stop_by_close.
	(socket_receive_file_to_buf2): Variant on
	socket_receive_file_to_buff capable of stopping in the middle.

	* src/modules/festival.c: festival_pid -> festival_child_pid

2004-05-31  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: LIBTOOL_IS_A_FOOL workaround for -rpath by Marcelo Magallon

	* src/modules/Makefile.am (EXTRA_DIST): Don't include the festival-interface directory (obsolete).

	* Makefile.am (EXTRA_DIST): Only the .c and .h files from intl/

	* src/Makefile.am (EXTRA_DIST): A positive list of what should be included from cl/.

2004-05-30  Hynek Hanke  <hanke@brailcom.org>

	* ANNOUNCE: 0.4.1 release.

2004-05-29  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/generic.c (module_load): Register the volume variables.

	* config/modules/dtk-generic.conf: Jacob's new version.

	* config/modules/epos-generic.conf: Use LANGUAGE instead of LANG.

	* src/modules/generic.c (module_speak): Update string parameter, not an ordinary parameter.
	generic_msg_pitch, rate, volume are now statically allocated (!).

2004-05-28  Hynek Hanke  <hanke@brailcom.org>

	* ANNOUNCE: Release 0.4.

	* FAQ: 16-bit Flite voice.

	* TODO: Index marking.

2004-05-26  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: Install output modules into libdir instead of bindir.

2004-05-25  Hynek Hanke  <hanke@brailcom.org>

	* Makefile.am (EXTRA_DIST): Don't include everything in doc/ into distribution,
	leave it to be handled in Makefiles instead.

2004-05-24  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: modulebindir now points to speech-distcher-modules instead of
	speechd-modules.

2004-05-24  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival_client.c (festival_socket_open): Use TCP_NO_DELAY.

	* src/server/output.c (SEND_DATA): Back to using OL_RET(), but SEND_DATA_N is newly defined for
	other purposes.
	(SEND_CMD): See SEND_DATA.

	* Makefile.am (EXTRA_DIST): Added build.sh.

2004-05-23  Hynek Hanke  <hanke@brailcom.org>

	* src/server/options.c (print_version): Don't talk me about GNU Emacs!

	* src/c/clients/say/say.c: Accept and handle the most important voice and TTS control parameters.

	* src/c/clients/say/options.h: New file.

	* src/c/clients/say/options.c: New file.

	* src/modules/Makefile.am (sd_flite_LDFLAGS): Use $(flite_basic) and $(flite_kal) from configure.in.

	* configure.in: If flite_cmu_us_kal16 is available, compile against this better voice,
	otherwise compile against flite_cmu_us_kal.

2004-05-23  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/generic.c (generic_set_*): Rewrite string values of
	parameters in generic_msg_*_str variables only when they change.

	* src/modules/generic.c (_generic_speak): Only do substitution of the string
	parameters using string_replace.

	* src/c/api/libspeechd.c (spd_execute_command): Define as non-static.

	* src/c/api/libspeechd.h: Prototype.

	* src/c/api/libspeechd.c (spd_open): Set TCP_NODELAY to eliminate the annoying 40ms delay.

	* config/modules/epos-generic.conf: Volume controlling variables added.

	* src/modules/generic.c (_generic_speak): Added the $VOLUME variable.
	(generic_msg_volume): New variable.


2004-05-22  Hynek Hanke <hanke@brailcom.org>

	* ltmain.sh: Removed.
	* build.sh: Copy the correct version of ltmain.sh to the source tree.

2004-05-20  Hynek Hanke  <hanke@brailcom.org>

	* src/server/output.c (output_send_msg): New function.
	(output_speak): Use output_send_msg instead of the macros.
	(SEND_DATA): Don't unlock the lock, just return.
	(SEND_CMD): Don't unlock the lock, just return.


2004-04-17  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: LIB_SPD_CURRENT version number incremented.

	* src/c/api/libspeechd.h: New functions for setting output_module and volume
	added.

	* src/c/api/libspeechd.c (speechd_set_output_module): New function.
	(speechd_set_volume): New function.

	* src/server/parse.c (parse_set): Use TEST_CMD instead of strcmp.

	* src/c/api/Makefile.am (libspeechd_la_HEADERS): libspeechd.h moved here because otherwise
	it wasn't be installed.
	(libspeechd_ladir): Points to includedir.

2004-04-04  Hynek Hanke  <hanke@brailcom.org>

	* INSTALL: Mention festival-freebsoft-utils.

	* src/modules/festival.c: Mistyped '-' removed.

	* src/Makefile.am (EXTRA_DIST): Include the Common Lisp library in the distribution.

	*  (Module):

	* src/modules/module_main.c: Unused variable removed.

	* src/modules/generic.c: Unused variables cleaned.

	* src/modules/flite.c: Unused variables cleaned.

	* src/modules/festival.c (cache_gen_key): bug: == instead of =

	* src/modules/module_utils.c (do_speak): Proper return value.
	(module_get_message_part): Unused variable 'im' removed.
	(module_parent_wfork): Make sure read_bytes is always initialized.

2004-03-31  Hynek Hanke  <hanke@brailcom.org>

	* doc/Makefila.am: speechd.texi and speechd-cs.texi renamed to speech-dispatcher[-cs].texi.

	* src/server/speechd.c (main): Pid file is now speech-dispatcher.pid instead of speechd.pid.

	* config/speechd.conf: Log to /var/log/speech-dispatcher by default.

	* src/c/clients/say/Makefile.am: say renamed to spd-say.

	* version.sh: Version number incremented (0.3)

	* configure.in: speechd -> speech-dispatcher in substitution variables.

	* INSTALL: speechd -> speechd-dispatcher

	* configure.in: Package name changed to speech-dispatcher.

	* src/server/Makefile.am: Program name changed to speech-dispatcher.

2004-03-14  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/epos-generic.conf (GenericExecuteSynth): sed command to strip
	the "unknown voice" message from resulting .wav now done correctly (it doesn't
	leave a '\n' as the first byte)

	* AUTHORS: Added Jacob Schmude to Thanks.

	* config/speechd.conf (dtk-generic): New generic output module
	added (by default commented out).

	* config/modules/dtk-generic.conf: New configuration file for the generic
	output module for DecTalk Software synthesizer (non-free).

	* config/modules/festival.conf: Typo fixed.

	* config/modules/epos-generic.conf (GenericRateForceInteger): New option.
	(GenericPitchForceInteger): New option.

	* src/modules/generic.c (GenericRateForceInteger): New parameter.
	(GenericPitchForceInteger): New parameter.
	(_generic_speak): If GenericPitchForceInteger is set, write the rate to the bash
	command without decimals. The same for GenericRateForceInteger.

2004-03-08  Hynek Hanke  <hanke@brailcom.org>

	* speechd.c, set.c, server.c, parse.c: Use SpeechdSocket ans SpeechdStatus.

	* src/server/module.c: init and load symbols removed (unnecessary).

	* src/modules/flite.c (module_speak): Strip ssml before sending to Flite.

	* src/modules/module_utils.c (module_strip_ssml): New function.

	* src/server/speechd.c (speechd_init): Initialize TSpeechdSock.
	(speechd_connection_destroy): Also free the buffer.

	* src/server/speechd.h (TSpeechdSock): New structure.

	* src/server/config.c (table_add): Removed (old&unnecessary).

2004-02-23  Hynek Hanke  <hanke@brailcom.org>

	* src/server/options.c (options_print_help): Moved.
	(options_print_help): Typo \v -> \n fixed.

	* src/server/config.c (cb_MinDelayProgress): Deleted.
	Cleaning.
	(GLOBAL_FDSET_OPTION_CB_SPECIAL): New macro.
	(SPEECHD_OPTION_CB_STR_M): New macro.
	(SPEECHD_OPTION_CB_INT_M): New macro.
	(SPEECHD_OPTION_CB_STR): New macro.
	(SPEECHD_OPTION_CB_INT): New macro.

	* intl/fdsetconv.c (str2intpriority): New function.

	* src/server/speechd.c (speechd_init): max_gid initialization moved to the
	beginning.

	* src/server/speechd.h (spd_log_level): Renamed to SpeechdOptions.log_level.
	(spd_port): Renamed to SpeechdOptions.log_level. All references changed.

	* src/server/config.c (GLOBAL_FDSET_OPTION_CB_INT): Accept also condition and error messages.
	(load_default_global_set_options): Moved to the end of the file.

2004-02-16  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/flite.c (_flite_child): Don't use spd_audio.

	* configure.in: Speechd C API library versions fixed.

2004-02-14  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: Variables for versions of libraries added.

	* src/c/api/Makefile.am (libspeechd_la_LDFLAGS): Append version to the speechd library.

	* src/audio/Makefile.am (libsdaudio_la_LDFLAGS): Append version to the audio library.

2004-02-13  Hynek Hanke  <hanke@brailcom.org>

	* src/server/set.c (default_fd_set): Setting volume fixed.

	* src/modules/module_utils_audio.c (module_audio_output_child): Temporarily set volume only as
	(ssip_volume-100)/2 for not damaging the sound with overflows.

2004-02-10  Hynek Hanke  <hanke@brailcom.org>

	* src/server/parse.c (parse_set): SET * VOLUME added to SSIP.

	* src/server/output.c (output_send_settings): Send the volume parameter to output module.

	* src/server/msg.h: Volume setting messages addded.

	* src/modules/module_utils.c (do_set): Read the volume settings

	* src/server/set.c (set_volume_uid): New function.

	* src/server/set.h: Volume setting functions.

	* intl/fdset.h (TFDSetElement): Volume added.
	(SPDMsgSettings): Volume added.

	* src/audio/spd_audio.c (spd_audio_play_wave): Multiply the samples array by the
	desired relative volume.

	* src/modules/festival.c (festival_set_volume): New function.

	* src/modules/module_utils_audio.c (module_audio_output_child): Handle new parameter: volume.
	(module_audio_output_child): Call spd_audio_set_volume().

2004-01-27  Milan Zamazal  <pdm@brailcom.org>

	* src/server/alloc.c (spd_realloc): New function.
	* src/server/alloc.h: Declare it.
	* src/server/server.c (serve): Socket reading code rewritten and
	hopefully finally fixed.

2004-01-20  Milan Zamazal  <pdm@brailcom.org>

	* src/server/server.c (serve): Reading data from socket fixed.

2003-12-21  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/festival.conf: Updated.
	New parameters (caching) added.

	* TODO: Updated.

	* version.sh (VERSION): Updated to version 0.2

	* src/tests/README: Updated to reflect the new '^' command, missing
	commands added also.

	* src/modules/festival.c (cache_destroy_entry): New function.
	(cache_destroy_table_entry): New function.
	(cache_free_counter_entry): New function.
	(cache_init): Init cache_counter.
	(cache_destroy): Destroy cache_counter.
	(cache_reset): Do nothing.
	(cache_counter_comp): New function.
	(cache_debug_foreach_list_score): New function.
	(cache_clean): New function.
	(cache_gen_key): New function.
	(cache_insert): Take into account the festival.conf parameters for cache.
	Remove less requested samples from cache when the maximum allowed amount
	of memmory is consumed.
	(cache_lookup): Take into account the festival.conf parameters for cache.
	(cache_lookup): Update counter of requests for the item in cache.

2003-12-19 Hynek Hanke <hanke@robinson>

	* src/modules/festival.c: Use multiple caches for different
	languages.
	(cache_insert): Use multiple caches.
	(cache_insert): Create a new cache for language that
	isn't listed in FestivalCache.caches so far.
	(cache_lookup): Look into the right cache for specified
	language.

2003-12-19  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/flite.c (module_stop): Operator priorities fix in condition.

	* src/modules/module_utils.c (DBG): Timestamps also include microseconds.

	* src/modules/festival.c (_festival_parent): Try to read from cache first.

	* src/modules/module_utils.c (DBG): Log timestamps in microsecond resolution.

	* src/modules/festival.c (_festival_parent): Insert into cache if necessary.

	* src/tests/run_test.c (main): Added command '~' for microsleep.

	* INSTALL: Note about settings in server_acces_list and /etc/hosts.conf
	added.

2003-11-30  Hynek Hanke  <hanke@brailcom.org>

	* src/server/output.h (output_check_module): New prototype.

	* src/modules/festival.c (module_close): Don't change exit status by replacing it with
	other errors that ocured when terminating.

	* src/server/output.c (output_check_module): New function.

	* src/server/speaking.c (speak): Call output_check_module after it fails to determine
	the cause.

	* src/modules/module_utils.c (do_message): Fill ret with the return value of module_speak.

	* src/server/output.c (output_send_data): Removed unecessary fflush().

2003-11-23  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (festival_set_voice): Set festival_coding.
	(festival_set_language): Set festival_coding.
	(module_speak): First update all parameters, then do the recoding and copying
	of the message (to be able to retrieve the name of the necessary coding first).

	* src/modules/festival_client.c (festival_read_response): Set the expr parameter to the
	char* value of the expression or NULL if ER was received.

	* src/modules/festival.c (module_init): Fill festival_coding with default iso-8859-1

2003-11-11  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/module_utils.c (module_recode_to_iso): Convert
	non-Czech messages to ISO 8859-1.

2003-11-06  Hynek Hanke  <hanke@brailcom.org>

	* src/server/sem_functions.h (semaphore_clear): New function.
	* src/server/sem_functions.c (semaphore_clear): New function.
	(semaphore_wait): A workaround for the semaphores bug.

2003-11-06  Hynek Hanke  <hanke@brailcom.org>

	* INSTALL: Mention festival-interface instalation.

	* BUGS: Flite doesn't speak sound icons as it doesn't support it.

2003-10-29  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: AM_INIT_AUTOMAKE name changed back to speechd in order to produce correct
	distribution name in .tar.gz.

2003-10-29  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speaking.h (empty_queue_by_time): New prototype.
	(stop_priority_older_than): New prototype.
	Restructured.

	* src/server/speaking.c (speak): Insert the last priority 5 message sorted by time.
	(empty_queue_by_time): New function.
	(stop_priority_older_than): New function.

	* src/server/server.c (queue_message): Insert timestamp.

2003-10-27  Hynek Hanke  <hanke@brailcom.org>

	* src/server/parse.c (parse): KEY can be used in blocks.

	* src/server/speaking.c (speak): Priority important doesn't interrupt last priority
	PROGRESS message now.

2003-10-25  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speaking.c (speak): Mutex handling reworked a little bit to prevent
	deadlocks.

2003-10-24  Hynek Hanke  <hanke@brailcom.org>

	* NEWS: 0.1 + some info on recent improvements.

	* version.sh: Updated to 0.1 so that we don't forget about it later :)

	* AUTHORS: speechd-speak -> speechd-el
	THANKS section.

	* src/server/server.c (queue_message): Don't put messages into history.
	(As we don't have implemented client authentification yet, this would
	be a possible security hole.)

2003-10-23  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speaking.c (speak): Insert last priority 5 message as MESSAGE,
	not TEXT.
	Insert it as the first message in the MESSAGE queue.

2003-10-22  Hynek Hanke  <hanke@brailcom.org>

	* src/server/parse.c (deescape_dot): Handle doubledot on every beginning of line,
	not just the ones followed by \r\n.

2003-10-22  Milan Zamazal  <pdm@brailcom.org>

	* src/server/server.c (serve): Log connection descriptors as well.


2003-10-22  Hynek Hanke  <hanke@brailcom.org>

	* src/server/parse.c (parse): Bug with sometimes incorrect canceled message handling corrected.

	* src/server/index_marking.c (insert_index_marks): Additional debugging messages.

	* src/server/index_marking.c (insert_index_marks): Use MSG2 for the seccond message, not MSG1.

	* src/modules/festival.c (module_load): FestivalMaxChunkLength changed to 300 by default.
	(_festival_parent): Use FestivalMaxChunkLength instead of the wrong buffer size 4095.

	* src/server/server.c (queue_message): Mutex locking added again around
	resolve_priorities().


2003-10-20  Hynek Hanke  <hanke@brailcom.org>

	* src/server/options.c (options_print_help): Info about the -v option added.
	(options_print_help): Address for sending bug reports changed.

2003-10-18  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils_audio.c (module_add_samples): Check for the terminating
	sequence \r\nOK_SPEECHD_DATA_SENT\r\n here. It handles the situation when this
	message comes reparted because of buffering.

	* src/modules/module_utils.c (module_add_samples): Declaration moved to module_utils_audio.c

	* src/c/api/libspeechd.h (SPD_FATAL): Renamed from FATAL as not to cause conflicts.
	All callers changed.

2003-10-16  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (spd_sayf): Correct escaping of \r\n.\r\n
	(spd_key): Don't enclose argument in quotes.
	(spd_key): Free the command string.
	(spd_char): Don't enclose argument in quotes.
	(spd_sound_icon): Don't enclose argument in quotes.
	(spd_w_set_capital_letter_mode): New function.
	Cleaning.

	* src/c/api/libspeechd.h (escape_dot): New function.

	* src/c/api/libspeechd.c (spd_open): Now returns -1 on failure.
	(spd_say): Don't append \r\n at the end of sent data.

	* src/server/speaking.c (resolve_priorities): Now takes priority of the newly
	arriving message as parameter.

	* src/server/server.c (queue_message): resolve_priorities() call moved here
	from the other thread.

2003-10-15  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (main): Use PIDPATH when not empty.

	* src/server/Makefile.am (pidpath): Pass PIDPATH as parameter to the sources.

	* configure.in: Fixed bug(?) with "Speech Dispatcher". Now it's written without
	the space, so that gcc doesn't comply.
	(pidpath): New configuration variable with path to the pid file.

2003-10-15  Hynek Hanke  <hanke@brailcom.org>

	* src/server/Makefile.am: Pass VERSION and PACKAGENAME to the program with -D.

	* src/server/output.h (escape_dot): New function.

	* src/server/parse.h (deescape_dot): New function.

	* configure.in (AM_INIT_AUTOMAKE): PACKAGENAME is now Speech Dispatcher, not speechd.

	* src/server/options.c (options_parse): Call options_print_version.

	* src/server/options.h: Added --version, -v.

	* src/modules/module_utils.c (do_message): Convert escape sequence double dots into dots.

	* src/server/output.c (escape_dot): New function.

	* src/server/parse.c (deescape_dot): New function.

	* src/server/sem_functions.c (semaphore_wait): If the system call for semaphores
	was unsuccesful, repeat the call (e.g. because of EINTR). Fixes a bug under
	Valgrind.

2003-10-13  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (_festival_parent): Call module_parent_wait_continue() only
	if some data were sent to synthesis.

	* src/server/parse.c (parse): Strip trailing '\n'.

	* src/modules/module_utils_audio.c (module_audio_output_child): Don't report FATAL ERROR
	when terminating.

	* src/modules/module_utils.c (do_message): Strip the trailing '\n'.

2003-10-13  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: Don't require librecode.

	* src/tests/long_message.c: Don't use FATAL.

	* src/tests/clibrary.c: Don't use FATAL.

	* src/server/parse.h: Cleaning.

	* src/server/parse.c: Cleaning.

	* src/server/history.h: Cleaning.

	* src/server/history.c: Cleaning.

	* src/server/config.h: New file.

	* src/server/config.c: New file.

	* src/server/alloc.h: Cleaning.

	* src/server/Makefile.am: Changes in file structure in src/server/

	* src/modules/module_utils_addvoice.c (SPDVoiceDef): Moved here from
	intl/module.h

	* src/modules/cstsnd.c: Removed.

	* src/modules/apollo.c: Removed.

	* src/modules/Makefile.am: Don't build cstsnd and apollo.

	* src/c/api/libspeechd.c: Don't use underscores for private functions
	as these are reserved for compiler symbols.

	* src/c/api/libspeechd.h: Don't use underscores for private functions as these are
	reserved for compiler symbols.

	* src/server/config.c (free_config_options): Bug with array of opts[] fixed.

	* src/modules/cstsnd.c: Removed.

	* src/modules/generic.c: Don't include module.h

	* src/modules/festival.c: Don't include module.h

	* src/modules/flite.c: Don't include module.h

	* intl/module.h: Moved to src/server/module.h

	* src/server/sem_functions.c (speaking_semaphore_create): Permissions to semaphore
	changed to 0600.

	* src/server/speechd.c (create_pid_file): New function.
	(destroy_pid_file): New function.
	(speechd_quit): Call destroy_pid_file.
	(main): Call create_pid_file().
	(main): Create new pid file after entering the daemon() mode.
	(speechd_init): Generate key for SYSV semaphore from pid file path.

	* src/server/speechd.h: Include fcntl.h.
	(speechd_pid_file): New variable;

2003-10-10  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (_festival_parent): Bug with sending part of response even
	if there are no samples fixed.

	* src/server/index_marking.c (insert_index_marks): Insert the last character
	even if there is no follower.

2003-10-10  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival_client.c (FestivalSetCapLetRecogn):
	Festival function name fixed.

	* Makefile.am (SUBDIRS): `sounds' removed.
	* configure.in (moduleconfdir): sounds/ excluded.
	* sounds/Makefile.am: Removed.

2003-10-10  Jan Buchal  <buchal@brailcom.org>

	* src/modules/festival_client.c (FEST_SET_STR): Pass nil if param is NULL.
	(FEST_SET_STR): Macros enclosed in { }.

	* src/modules/festival.c (festival_set_cap_let_recogn): New function.

	* src/modules/festival_client.c (FEST_SPEAK_CMD): New parameter
	symbol.
	(festival_speak_command): New parameter symbol.
	(FEST_SET_SYMB): Added capital character mode setting.

2003-10-09  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefile.am (EXTRA_DIST): Include festival-interface in distribution.

2003-10-09  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival.c (_festival_parent): Wrong debugging message removed.

	* src/modules/module_utils.c (module_get_message_part): Divide message
	also on blank lines.

	* intl/fdset.h (TFDSetElement): New parameter index_mark.

	* src/server/set.c (set_pause_context_uid): Accept negative values also.

	* src/server/parse.c (parse_set): SSIP SET * PAUSE_CONTEXT now accepts negative values.

	* src/server/speaking.c (reload_message): New function.
	(reload_message): pause_context is now negative or positive.

	* src/server/speechd.h (resume_requested): New global variable.

	* src/server/speaking.c (speak): Handle request for resume here.

	* src/server/speechd.c (speechd_init): pause and resume _ requested set to 0 on start.

	* src/modules/festival_client.h (festivalStringToWaveGetData): Parameters added.

	* src/modules/festival.c (_festival_parent): Call festivalStringToWaveGetData
	with the new parameters. Don't turn multiple wave files receiving on.

	* src/modules/festival_client.c (festivalStringToWaveGetData): If multiple is 1 or two,
	first read the number of waves that should come.
	(festivalStringToWaveGetData): Don't wait for OK if this is not tha last wave.
	(festivalStringToWaveGetData): Decrement the remaining_waves counter if ER is
	returned.

2003-10-08  Hynek Hanke  <hanke@brailcom.org>

	* src/server/server.c: Removed tables.

	* src/server/output.c: Debugging messages.

	* src/server/alloc.c: Removed tables.

	* src/audio/spd_audio.c (spd_audio_open): Check if spd_audio_device is not NULL before returning.

	* intl/module.h: Removed EFilteringType.

	* config/speechd.conf.in: Removed tables configuration, removed sound module.

	* src/server/parse.c (parse_set): Table commands removed from SSIP.

	* src/server/set.c (set_spelling_uid): Parameter changed to ESpellMode.
	Code related to tables removed.

	* src/server/speechd.c (speechd_init): Tables removed.

	* src/server/speechd.h (TSpeechDTables): Definition removed, not necessary.
	Sound module removed.

	* src/server/dc_decl.h: No longer necessary callbacks removed (tables, etc.).

	* src/modules/module_utils_audio.c (module_audio_output_child): Read bitrate information
	from parent. Close and open audio.
	(module_parent_send_samples): Send also bitrate information in the first 10 bytes.

	* src/modules/module_utils_audio.c (module_audio_output_child): Don't open/close audio.

	* src/modules/flite.c (module_init): Don't fill module_sample_wave.
	(_flite_child): No module_sample_wave.
	(_flite_child): Open and close audio.

	* src/modules/festival.c (festival_fill_sample_wave): Removed.

	* src/modules/module_utils_audio.c (module_audio_output_child): Open audio before saying
	each data and close it after that.

2003-10-07  Hynek Hanke  <hanke@brailcom.org>

	* intl/fdsetconv.c: New file.

2003-10-07  Milan Zamazal  <pdm@brailcom.org>

	* configure.in (AC_OUTPUT): config/{en,cs}/Makefile removed.

2003-10-03  Hynek Hanke  <hanke@brailcom.org>

	* src/server/output.c (ADD_SET_STR): Added missing line terminator after "NULL".

	* src/modules/cstsnd.c (module_load):  Call REGISTER_DEBUG().

	* src/modules/generic.c (module_load):  Call REGISTER_DEBUG().

	* src/modules/flite.c (module_load):  Call REGISTER_DEBUG().

	* src/modules/festival.c (module_load): Call REGISTER_DEBUG().

	* src/modules/module_utils.c (REGISTER_DEBUG): New macro.

	* src/server/sem_functions.c (semaphore_wait): Debugging message.

	* src/server/speaking.c (speak): Set speaking_uid to the uid of the client who
	sent this message.

	* src/server/parse.c (parse_list): The SSIP LIST command has only one
	possible parameter "VOICES". This doesn't longer work for tables
	because we want to eliminate the whole "table" idea.

	* src/server/dc_decl.h (cb_AddModule): No filtering type parameter.

	* src/server/speaking.c (speak): Removed all that has something to do with
	punctuation and spelling processing.

	* config/speechd.conf.in: Log default to /var/log/speechd.log
	All punctuation and spelling tables removed. Filtering removed.
	Sound icon, character and key tables temporarily left, there is
	currently no way how to fix this.
	Comments about symbolic voices.

2003-10-01  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c (xfree): Write NULL after freeing it.

	* intl/def.h (SPEECHD_DEFAULT_PORT): Changed to 6560.

	* config/speechd.conf.in: Default port now 6560.

	* src/modules/generic.c (module_write): Use fallback when recoding.
	(module_load): Added configurable option GenericRecodeFallback.

	* config/modules/festival.conf (FestivalRecodeFallback): New option.

	* src/modules/festival.c (module_load): Added configurable option FestivalRecodeFallback.
	(module_write): Call module_recode_to_iso with FestivalRecodeFallback.

	* src/modules/module_utils.c (module_recode_to_iso): The fallback character is
	now passed as parameter.

2003-09-29  Hynek Hanke  <hanke@brailcom.org>

	* config/Makefile.am: Switched back to normally calling `sed'.

	* intl/fdset.h (TFDSetElement): pause_context added.

	* configure.in: Added config/generic/Makefile.am

	* config/speechd.conf.in: Festival now doesn't use the generic filter.
	It supports spelling and punctuation itself.

	* src/server/speaking.c (speaking_pause): Repeat the whole message if index mark
	number gets bellow zero.

	* config/speechd.conf.in: Added DefaultPauseContext.

	* src/server/dc_decl.h (cb_BeginClient): Added pause_context.

	* src/server/set.c (update_cl_settings): Added pause_context.
	(set_pause_context_uid): New function.

	* src/server/parse.c (parse_set): Added new SSIP command `SET who PAUSE_CONTEXT value'.

	* src/server/speaking.c (speaking_pause): Use settings->pause_context

	* src/server/set.c (default_fd_set): Set pause_context to 0.

	* src/modules/module_utils.c (CLEAN_OLD_SETTINGS_TABLE): New macro, splitted from
	INIT_SETTINGS_TABLES.
	(INIT_SETTINGS_TABLES): Call CLEAN_OLD_SETTINGS_TABLE

	* src/modules/festival.c (festival_set_voice): Call CLEAN_OLD_SETTINGS_TABLE, so that
	we set all parameters to new values after setting new voice.

	* src/modules/festival_client.h (festival_connection_crashed): New public global variable.

	* src/modules/festival_client.c (festival_get_ack): Set festival_connection_crashed
	to 1 on failure.
	(festivalOpen): Set festival_connection_crashed to 0.

	* config/Makefile.am: +generic directory
	SUBDIRS now listed in different order.
	(speechd.conf): Use the environment variable SED instead of trying the `sed' binary.

	* src/server/sndicon.c (snd_icon_spelling_get): Look also under the generic table
	if not found specificaly for the given language.
	(sndicon_queue): Rewritten to use se sndicon_spelling_get().

	* src/server/speechd.h (generic_lang_icons): New global variable.

	* src/modules/festival_client.c (festivalSetVoice): Use festival_read_response().
	(festivalSetRate): Use festival_read_response().
	(festivalSetPitch): Use festival_read_response().
	(festivalSetPunctuationMode): Use festival_read_response().

	* src/modules/festival.c (module_write): Set punctuation_mode in festival.
	(festival_set_punctuation_mode): New function.

	* src/modules/festival_client.c (festival_read_response): New function.

	* src/modules/festival_client.h (festivalStringToWaveRequest): New parameter spelling.

	* src/server/speechd.c (speechd_load_configuration): Also terminate the sound module
	before loading a new one.

	* src/server/parse.c (parse): Write only strlen(OK_BYE) options to output.

	* src/server/sem_functions.h: +semaphore_destroy.
	+speaking_semaphore_destroy

	* src/server/sem_functions.c (semaphore_destroy): New function.
	(speaking_semaphore_destroy): New function.

	* src/modules/module_utils.c (module_signal_end): Removed unnecessary comment.

	* src/server/sem_functions.c (semaphore_post): Debugging message amplified.

	* src/server/speaking.c (speaking_resume): Post on semaphore only once at the end.

2003-09-24  Milan Zamazal  <pdm@brailcom.org>

	* config/Makefile.am (speechd.conf): New target.
	(all-local): Depend on it, do nothing otherwise.

2003-09-23  Milan Zamazal  <pdm@brailcom.org>

	* src/server/output.c (output_send_data): Log module communication
	with the logging kind `protocol'.
	* src/server/server.c (serve): Likewise.  Log server reply too.

	* config/speechd.conf.in: CustomLogFile, commented out, added.
	* src/server/speechd.h (custom_logfile, custom_log_kind): New
	variables.
	* src/server/dc_decl.h (load_config_options): New option
	CustomLogFile.
	(load_default_global_set_options): Initialize custom logging
	options.
	(cb_CustomLogFile): New callback.
	(cb_LogFile): Print error to stderr, not stdout.
	* src/server/speechd.c (MSG2): New function.
	(MSG): Use it.
	(speechd_init): Initialize custom logging variables.

2003-09-22  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils.c (MODULE_VERSION): Definition removed.
	Some functions moved to module_utils_audio.c
	(module_recode_to_iso): Replace invalid characters with a '?'.

	* src/modules/module_utils_audio.c (module_parent_send_samples): Moved from module_utils.c
	(module_add_samples): Moved from module_utils.c

	* src/modules/module_utils.c (module_speak_thread_wfork): Force exit() in the child
	if the child_function() didn't exit itself.
	(module_speak_thread_wfork): Now returns void.
	(module_parent_wfork): Return 0 if returning for other reasons than being paused.

2003-09-20  Hynek Hanke  <hanke@brailcom.org>

	* src/server/Makefile.am: Include insert_marking.c and index_marking.h.

	* src/modules/module_utils.c (module_parent_wfork): Use index marks.

	* INSTALL: Mention the SED=sed step.

	* config/modules/festival.conf (FestivalStripPunctChars): New option added.

	* src/modules/module_utils.c (module_get_message_part): Use index marks.
	Look for "ordinary" divisors before looking for index marks.

	* src/server/speaking.c: Include index_marking.h
	(speaking_pause): Use index marking.
	(speaking_pause): Strip index marks before queueing the message again.

	* src/server/index_marking.c: New file.
	(insert_index_marks): New function.
	(find_next_index_mark): New function.
	(find_index_mark): New function.
	(strip_index_marks): New function.

	* src/server/index_marking.h: New file.

	* src/modules/festival.c (FestivalStripPunctChars): New option.
	Don't delete anything by default.

	* src/modules/flite.c (_flite_child): Don't insert '.' after sentences.

	* src/server/speaking.c (speak): Insert index marks before sending to output.

	* src/modules/module_utils.c (DECLARE_MODINFO): Macro deleted.

	* src/modules/module_utils.c (do_set): Don't set other parameters after an error.

	* src/modules/module_utils.c (do_set): Report status only after the trailing dot.


2003-09-19  Milan Zamazal  <pdm@brailcom.org>

	* src/tests/Makefile.am (audio_LDADD): -lglib changed to
	-lglib-2.0.

2003-09-17  Milan Zamazal  <pdm@brailcom.org>

	* config/modules/festival.conf: Use voice_czech instead of
	voice_cz2_mbrola.

2003-09-15  Milan Zamazal  <pdm@brailcom.org>

	* config/Makefile.am (all-local): Use `:' instead of `-' as the
	sed separator.


2003-09-11  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival_client.c: Formating.

	* config/modules/flite.conf: Reformated.

	* config/modules/epos-generic.conf: Reformated.

	* config/modules/festival.conf: Reformated.

	* src/modules/festival.c (_festival_parent): Only write samples to soundcards if they
	are more than zero.

	* src/server/speaking.c (stop_priority_except_first): Removed unnecessary debugging message.

	* src/server/speechd.c (speechd_load_configuration): Unload old output modules before
	loading new ones.

	* src/server/output.c (output_close): Sleep only 100 usecs before killing the module.

	* src/server/parse.c (parse): Redudant entry for CHAR removed from CHECK_SSIP_COMMANDs.
	(parse_char): Pass inside_block[fd] as parameter of queue_message, since CHAR is allowed
	inside blocks.

2003-09-10  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils.c (module_strip_punctuation_some): Don't use unicode (this processing is called after converting to uni-byte character set).

2003-09-08  Hynek Hanke  <hanke@brailcom.org>

	* config/modules/epos-generic.conf: Use "play" as the output device.

	* src/modules/generic.c (_generic_child): Bugfix: setpgid() takes two arguments, not zero.

	* src/modules/generic.c (_generic_child): Allocate new char *text for each chunk of data
	that comes, not only once.

	* config/modules/festival.conf: Formating.

	* config/modules/epos-generic.conf: Formating.
	(GenericStripPunctChars): New option.

	* src/modules/generic.c (module_write): Strip only requested punctuation characters.
	(_generic_child): Escape also '`'.

	* src/server/output.c (output_is_speaking): Bug fixed, report the right value, not just
	-1. Don't unlock mutex (since it isn't locked).

2003-09-07  Hynek Hanke  <hanke@brailcom.org>

	* Big changes in output modules and communication with output modules.

	* Client-specific configuration.

	* src/modules/module_utils_audio.c: New file.

	* src/modules/module_utils_addvoice.c: New file.

	* src/modules/module_main.c: New file.

	* src/server/sem_functions.h: New file.

	* src/server/sem_functions.c: New file.

	* src/modules/module_utils_addvoice.c: New file.

	* src/modules/cstsnd.c (_cstsnd_synth): Bug with pointer to signal set fixed.
	(module_stop): Kill the process group, not just the process that calls ogg123 etc.

	* src/audio/spd_audio.c (spd_audio_play_file_wav): Check if the file really exists.

	* src/modules/module_utils_audio.c: New file.


	* src/modules/module_utils.c (xfree): Direct the pointer to NULL after freeing the memmory.

2003-09-03  Hynek Hanke  <hanke@brailcom.org>

	* intl/fdset.h (TFDSetElement): Fixed comment on languages.

2003-08-31  Hynek Hanke  <hanke@brailcom.org>

	* src/server/output.h: New header file.

	* src/server/output.c: New file: output layer.

	* intl/module.h: Definition of new output module (and communication).

2003-08-11  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/Makefile.am: Include festival_client.{c,h} and module_utils.c in
	distribution.

	* int/module.h: Include stdlib.h

	* src/server/server.c (queue_message): Copy all the elements of settings.

	* src/server/alloc.c (spd_message_copy): Set the unnecessary elements of the message
	to NULL so that we can later mem_message_free() it without destroying data in the
	original one.

	* src/server/set.c (set_param_str): Changed parameters, return value.

	* src/server/history.c (history_get_message_list): Don't abort, if invalid
	client id is specified, just report ERR_NO_SUCH_CLIENT.

	* config/speechd.conf: Generic output module for Epos added.
	(MaxHistoryMessages): New option.

	* src/server/server.c (queue_message): Ensure message expiration in history when
	MaxHistoryMessage number of messages archieved in history.

	* src/server/speechd.h (MaxHistoryMessages): New variable.

	* src/server/dc_decl.h (MaxHistoryMessages): New DotConf option (message expiration).
	+ default value, + callback

	* src/modules/module_utils.c (MOD_OPTION_1_FLOAT_REG): New macro.
	(MOD_OPTION_1_FLOAT): New macro.

	* config/speechd.conf (FestivalDebugSaveOutput): Option added.

	* config/en/spelling_long.conf (definition): Correct names of characters.

	* config/en/spelling_short.conf (definition): Correct names of characters.

	* src/modules/generic.c (module_load): New file.

	* src/server/speechd.c (speechd_load_configuration): load_output_module call
	changed to two parameters.

	* src/server/module.c (load_output_module): Take two arguments. Name of the module
	and it's filename.

	* src/server/dc_decl.h (cb_AddModule): Take a LIST argument, not STRING.
	(cb_fr_AddModule): Take a LIST argument, not STRING.
	(cb_SoundModule): Take a LIST argument, not STRING.



2003-08-08  Milan Zamazal  <pdm@brailcom.org>

	* ltmain.sh: Updated for libtool 1.5.

	* src/server/parse.c (parse): Allow CHAR in blocks.


2003-08-07  Hynek Hanke  <hanke@brailcom.org>

	* src/server/server.c (serve): Check for reply not NULL.

	* src/server/parse.c (parse_block): Check if the command is valid.

	* src/server/speechd.c (MSG): Flush output after writing message.

	* src/server/speaking.c (resolve_priorities): Priority notification message is
	canceled if someone is speaking, not postponed.

	* src/server/speechd.c (MSG): Timestamps added.
	(main): daemon() moved a little bit.

	* src/server/speaking.c (stop_priority_except_first): Don't stop the currently spoken
	message if it has the same ID as the last one in the queue.

	* src/server/speaking.h (speaking_gid): New variable.

	* src/server/speaking.c (speak): Set speaking_gid.

	* src/server/parse.c (parse): inside_block now contains id of the group
	of the messages or zero, if not inside a block.

	* src/server/module.c (module_load): Don't print any debug messages on stdout.

2003-07-31	Jan Buchal  <buchal@brailcom.org>

	* config/en/spelling_short.conf: Colon added.

2003-07-23  Hynek Hanke  <hanke@brailcom.org>

	* config/cs/sound_icons.conf: Junk definitions with beep.wav removed, changed
	to some more logical text, however without diacritics.

	* src/server/dc_decl.h (cb_AddVoice): Accept also upper-case voice names.

	* src/c/api/libspeechd.h: Define extern "C".

	* src/server/speaking.c (resolve_priorities): Don't stop priority 2 and 3 if
	priority 1 arrives.
	(resolve_priorities): Cancel message of priority 4 if some other priority is
	speaking.


2003-07-21  Milan Zamazal  <pdm@brailcom.org>

	* src/server/speechd.c (main): Set SO_REUSEADDR.


2003-07-21  Hynek Hanke  <hanke@brailcom.org>

	* configure.in: Create config/cs/Makefile.in

2003-07-21  Hynek Hanke  <hanke@brailcom.org>

	* config/Makefile.am (subdirs) + cs/

	* src/audio/spd_audio.c (spd_audio_play_file): New function.
	(spd_audio_play_file_wav): New function. Stuff moved from src/modules/cstsnd.c

	* src/audio/spd_audio.h: New prototypes included.

	* src/audio/spd_audio.c (spd_audio_play_file_ogg): New function. Only quick and
	dirty; it calls ogg123 through system(), but currently I don't know how to do
	it better. It seems to work good.

	* src/modules/cstsnd.c (_cstsnd_synth): Call spd_audio_play_file() instead of
	doing it all alone.

	* src/audio/spd_audio.c (spd_audio_play_file): New function for playing .wav
	and .ogg files.

	* src/tests/audio.c: New test for the audio library: play a wave or ogg file.

	* src/tests/Makefile.am: audio.c: New test.

	* configure.in: Complain if some of the libraries isn't present and exit the build process.
	(AC_LANG): Now set to C.
	(AC_OUTPUT): Inserted doc/Makefile

2003-07-20  Hynek Hanke  <hanke@brailcom.org>

	* src/server/parse.c (parse_set): Allow SET * LANGUAGE command inside a BLOCK.

2003-07-18  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.h (inside_block): New variable, keeps track of whether
	each of the connections is inside an SSIP BLOCK or not.

	* src/server/parse.h (parse_block): New prototype.

	* src/server/msg.h: New SSIP messages related with BLOCK BEGIN/END.

	* src/modules/module_utils.c (module_speak_thread_wfork): Close pipes correctly
	on error (fork fails etc.)

	* src/server/parse.c (parse_set): Inserted NOT_ALLOWED_INSIDE_BLOCK() macro calls
	where necessary.
	(BLOCK_NO): New macro -- SSIP command allowed inside block.
	(CHECK_SSIP_COMMAND): New argument: allowed_in_block
	(NOT_ALLOWED_INSIDE_BLOCK): New macro.

	* src/server/sndicon.c (sndicon_queue): If inside_block[fd], queue the
	icon with `reparted' flag.

	* src/server/parse.c (parse_block): New function.
	(parse): If inside_block[fd], queue the message with `reparted' flag.

	* src/server/speechd.c (speechd_init): Allocate and initialize inside_block.

	* src/server/server.c (server_data_on): Set inside_block[fd] to 0.

	* src/server/dc_decl.h (LogFile): Open the file in `append' mode instead of `write' mode.

	* src/server/sndicon.c (sndicon_queue): If the icon wasn't found for that language table,
	look also to the same table for default language.

	* config/en/sound_icons.conf: New sound icons.

	* src/server/Makefile.am (AM_CFLAGS): Pass pluginsdir, not libdir.

	* src/modules/Makefile.am (plugins_LTLIBRARIES): Changed from lib_LTLIBRARIES.

	* configure.in (pluginsdir): New AC_SUBST variable for automake.

	* src/modules/festival.c (_festival_parent): Debuging with writing received sound to disk enabled.
	(FestivalDebugSaveOutput): New dotconf option for Festival.

	* src/modules/module_utils.c (module_audio_output_child): Data termination string changed fro LFCR.LFCR.
	(module_audio_output_child): If there are some data before the termination string, add them
	to samples.

	* src/modules/festival.c (_festival_parent): Data termination string changed fro LFCR.LFCR.

2003-07-17  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/module_utils.c (module_signal_end): New function. Send SIGUSR1 to speechd.

	* src/modules/cstsnd.c (_cstsnd_speak): Call module_signal_end().

	* src/modules/festival_client.c (client_accept_waveform): Determine the sample_count
	and sample_rate correctly from NIST header.
	(festival_accept_any_response): New function.
	(festivalOpen): Set Wavefiletype to nist in festival.

	* src/server/speaking.c (speak): Don't loop / don't post sem_messages_waiting again
	if is_sb_speaking() == 1. Instead rely on the semaphore, which is set by signals
	from output modules.

	* src/modules/module_utils.c (module_speak_thread_wfork): Send SIGUSR1 to parent
	when terminated.

	* src/server/speaking.c (resolve_priorities): Bug in priorities fixed: priority
	``message'' now surpresses priority text, while priority ``text'' doesn't interrupt
	``message''.

	* src/server/Makefile.am (speechd_SOURCES): +options.c

	* src/server/options.h (spd_long_options): -h | --help, new option.

	* src/server/speechd.c (main): Run as a daemon or in single mode.

	* src/server/options.c (options_print_help): New function.

	* src/server/speechd.c (main): Priorities of some debugging messages changed.

	* src/server/dc_decl.h (load_default_global_set_options): SPEECHD_PORT -> spd_port.
	(cb_Port): SPEECHD_PORT -> spd_port.

	* src/server/speechd.h (spd_port): Renamed from SPEECHD_PORT.

	* src/server/options.c: New file.
	(SPD_OPTION_SET_INT): New macro.
	(options_parse): New function.

	* src/server/Makefile.am (speechd_SOURCES): +options.h

	* src/server/options.h: New file.
	(spd_long_options): New variable.
	(spd_short_options): New variable.

	* src/server/dc_decl.h (load_default_global_set_options): Only set log level and
	port if not set before.

	* src/server/speechd.h (spd_log_level_set): New variable.
	(spd_port_set): New variable.

	* src/server/speechd.c (main): Set SIGPIPE handler to SIG_IGN.

2003-07-16  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/run_test.c (main): Accept stdin as valid argument.
	(main): fflush(NULL) when necessary.

	* src/server/speechd.h: Include alloc.h

	* src/server/speechd.c (main): Call daemon(0,0).

	* src/server/server.c (queue_message): Put the message to history before putting
	it into queues (so that we don't free it's content in the second thread before
	we can copy it into history).

	* src/server/alloc.c (spd_message_copy): alloc length __ * sizeof(char) __ for new_buf.

	* src/modules/module_utils.c: Small changes in some debugging messages.

	* src/modules/festival_client.c (festival_get_ack): New function, reopen socket connection
	to festival_server if read() returns 0 (invalid file descriptor).

	* src/server/speaking.c (process_message_punct_cap): Test for spelled_punct == NULL moved
	out of the if(chu){...} block

	* src/server/dc_decl.h (cb_AddVoice): Fill voices structure with NULLs on the beginning.

	* src/server/parse.c (parse_key): Copy strlen(key), not _bytes_ (of the command) to verbat.
	(parse_char): Copy strlen(character), not _bytes_ (of the command) to verbat.

	* src/modules/festival_client.c (festivalStringToWaveGetData): Check if read() doesn't return
	0, if yes, return NULL. I don't really understand how read() can return 0 in this situation
	=> possible problems. Or maybe there is some problem in festival itself...

	* src/modules/festival_client.c (festivalOpen): Disable the "festival returned error" message.

	* src/server/speechd.c (main): Catch SIGPIPE and do nothing (broken pipes are ok
	in output modules comunication).
	(speechd_sigpipe_handle): New function.

	* src/server/speaking.c (process_message_punct_cap): Set *sound to 0, if
	snd_icon_spelling_get() doesn't succeed.

	* src/server/sndicon.c (sndicon_queue): Allocate space in "ret" for the trailing 0.
	(snd_icon_spelling_get): Sound initialization moved to the first place in block.

	* src/modules/festival.c (module_close): Force remove of temporary file (if any).

	* src/server/set.c (set_client_name_self): Loop until strlen(client_name)-1.

2003-07-10  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/module_utils.c (module_sigblockall): Don't take any
	arguments.  Let all_signals be an allocated variable, not only a
	pointer.
	(module_audio_output_child): Don't call module_sigblockall with an
	argument.

2003-07-09  Hynek Hanke  <hanke@brailcom.org>

	* src/server/sndicon.h: #ifdef -> #ifndef.
	Include glib.h.
	(snd_icon_spelling_get): Prototype updated.

2003-07-08  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/run_test.c: Some new functionality added (clear
	screen, indentation)

	* src/tests/general.test: A general tour around SSIP commands for
	LSM 2003.

	* src/c/api/libspeechd.h: Missing prototypes added.

2003-07-07  Hynek Hanke  <hanke@brailcom.org>

	* src/server/sndicon.c: Use SOUND_DATA_DIR.

	* src/server/speechd.h (SOUND_DATA_DIR): New variable.

	* src/server/dc_decl.h (cb_SoundDataDir): New dotconf callback (+default).

	* config/speechd.conf: DefaultCapLetRecognition set to "none"
	(SoundModule): Renamed from SndModule.
	(SoundDataDir): New option.

2003-07-07  Hynek Hanke  <hanke@brailcom.org>

	* src/server/sndicon.c: Use SOUND_DIR instead of DATA_DIR.

	* src/server/set.c (SET_SELF_ALL): New macro.

	* src/server/Makefile.am: Use sndatadir instead of datadir.

	* intl/fdset.h (ECapLetRecogn): New type.

	* config/en/spelling_short.conf: Also in capital letters recognition group.

	* config/en/spelling_long.conf: Also in capital letters recognition group.

	* config/en/sound_icons.conf (capital_letter): New sound icon.

	* config/speechd.conf: cs tables added.

	* sounds/Makefile.am (dist_snddata_DATA): Only install *.wav

	* configure.in (sysconfdir): Default path for sounds is now $datadir/sounds/speechd.

	* src/modules/cstsnd.c: Now uses module_utils.c, converted to the new style of
	output modules.

	* src/server/parse.c (parse_list): LIST CAP_LET_RECOGN_TABLES: New SSIP command.
	(parse_set): SET * CAP_LET_RECOGN_TABLE: New SSIP command.
	(parse_set): SET * CAP_LET_RECOGN: New SSIP command.

	* src/server/dc_decl.h (table_add): New tables group: tables.cap_let_recogn.

	* src/server/speechd.c (speechd_init): New tables group: tables.cap_let_recogn.

	* src/server/dc_decl.h (DefaultCapLetRecognition): New option (+callback, +default).
	(CapLetRecognIcon): New option (+callback, +default).
	(DefaultCapLetRecognTable): New option (+callback, +default).

	* src/server/speaking.c (process_message_punct_cap): Renamed from process_message_punctuation.
	(process_message): Also handle capital letters recognition.

	* src/modules/flite.c (flite_set_voice): Don't use MALE3 for awb.

	* config/speechd.conf: SupportedLanguage deleted.
	"en" is now first item in LanguageDefaultModule.

2003-07-06  Hynek Hanke  <hanke@brailcom.org>

	* intl/def.h (SPEECHD_DEFAULT_PORT): Renamed from SPEECH_PORT.

	* src/c/clients/say/say.c (main): Removed junk code.
	Priority changed to new type (SPDPriority).

	* src/tests/run_test.c (main): Check for SPEECHD_PORT in environment variables.

	* src/tests/Makefile.am (clibrary): New test for the C API.

	* src/server/set.c: Use spd_strdup.
	(_spd_set_param_str): First argument changed to char** as we use realloc().

	* src/server/alloc.c (spd_strdup): Now also passes NULL without complaining.

	* src/modules/festival.c (module_close): Wait 5us before subsequent tries
	to stop the module.

	* config/speechd.conf: Most of the options commented out, default values
	are used now instead.

	* src/server/dc_decl.h (cb_Port): New dotconf callback.
	(load_default_global_set_options): Set default SPEECHD_PORT to 9876.

	* src/server/speechd.c (main): Use SPEECHD_PORT.

	* src/server/speechd.h (language_default_modules): New hash table.

	* config/speechd.conf (LanguageDefaultModule): New options.

	* src/server/dc_decl.h (cb_LanguageDefaultModules): New dotconf callback.

	* src/server/speechd.c (speechd_init): Initialize language_default_modules table.

	* src/server/dc_decl.h (cb_DefaultVoiceType): Convert to upper case before comparing.
	(cb_DefaultPriority): Convert to lower case before comparing.

	* src/server/speechd.c (speechd_load_configuration): Load default configuration.

	* src/server/dc_decl.h (load_default_global_set_options): New function.

	* src/c/api/libspeechd.h (SPDVoiceType): New type.
	(SPDPriority): New type.
	New declarations.

	* src/c/api/libspeechd.c (SPD_SET_COMMAND_INT, STR, SPECIAL): spd_set functions are now
	declared by this macro.
	(spd_set_*_table_*): New commands for setting tables.
	(spd_set_voice_*): New commands.
	Priorities are now passed as type SPDPriority.


	* src/tests/clibrary.c: A general test of some of the capabilities of the
	C API for Speech Dispatcher.

	* src/server/speaking.c (speak): Check if last_p5_message hasn't been spoken yet.

2003-07-05  Hynek Hanke  <hanke@brailcom.org>

	* src/server/dc_decl.h (cb_DefaultVoiceType): Use MALE1, if the specified parameter
	is invalid.

2003-07-05  Hynek Hanke  <hanke@brailcom.org>

	* src/c/clients/Makefile.am: spd-center removed.

	* src/server/parse.c (parse_char): Check if character != NULL or empty.

2003-07-05  Hynek Hanke  <hanke@brailcom.org>
	* src/server/speechd.c (main): Use SIGHUP again instead of SIGUSR2 to reload configuration.

	* src/server/server.c: Don't use alarms for priority 5 handling.

	* src/server/dc_decl.h: Better checking for validity of parameters.
	(GLOBAL_FDSET_OPTION_CB_INT): New macro.
	(GLOBAL_FDSET_OPTION_CB_STR): New macro.

	* src/modules/flite.c (module_close): Missing `static' added.

	* src/modules/festival_client.c (festivalClose): Send (quit) to festival server before
	closing pipe.

	* src/audio/spd_audio.c: Check if spd_audio_device is not NULL.

	* intl/def.h (LOG_LEVEL): Unnecessary macro removed.

	* config/en/spelling_long.conf: Table name changed.

	* config/en/keys.conf: Table name changed.

	* config/speechd.conf: Table names changed, default voice now MALE1, not 1.

	* src/modules/festival.c (module_close): Call festivalClose().

	* src/modules/module_utils.c (module_write_data_ok): Check data[0] against 0, not
	'0' (the character).
	(module_audio_output_child): Close pipes before exiting.

	* src/server/speaking.c (resolve_priorities): Leave at least one message in p5 queue waiting.
	(speak): Speak "last" priority 5 message if there are no msgs waiting and the last
	message said was of priority 5. Set on semaphore after that.

	* src/server/parse.c: Cleaning, using macros, better memmory management.

	* src/server/msg.h (ERR_RATE_TOO_LOW, HIGH): New SSIP messages.

	* src/server/parse.c (parse_history): Don't crash if SSIP "history" is sent alone.

2003-06-27  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/spd_audio.c (spd_audio_open): Fill spd_audio_device with NULL if can't open audio.

	* src/modules/festival.c (_festival_parent): Only report number of samples in debugging message.

	* src/modules/module_utils.c (module_audio_output_child): Check if spd_audio_open returns ok.
	Use xfree().

	* src/audio/spd_audio.c: Check parameters for a NULL wave.

	* src/modules/festival_client.c: festivalEmptySocket deleted.

	* src/modules/festival.c (_festival_parent): asserts added.

	* src/modules/festival_client.c (festivalOpen): Added definition of
	speechd_tts_textall.
	(festivalStringToWaveRequest): Use (speechd_tts_textall).

	* src/modules/festival.c: Check if bytes != 0 also in the first run.
	(module_close): Delete the est_ files in tmp if there are any.

2003-06-25  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/module_utils.c (module_strip_punctuation_default):
	Brackets added to the characters to strip.

2003-06-23  Jan Buchal   <buchal@domaciskola.robinson>

	* src/modules/festival.c (festival_set_voice): Set cur_rate
	and cur_pitch to 0 on voice change.

	* src/modules/festival_client.c (festivalSetPitch): Control
	if festival_info is ok.

	* src/server/server.c (serve): Read only BUF_SIZE-1 bytes,
	as BUF_SIZE is with the trailing 0.

2003-06-23  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/module.c: Renaming to spd_options and spd_num_options.

	* src/server/history.c: Use spd_message_copy for duplicating messages.

	* src/modules/flite.c: Don't include spd_audio.h

	* src/modules/festival_client.c (festival_default_module): Renamed to festivalDefaultModule,
	made public.

	* config/speechd.conf: ApolloDevice option added.

	* src/server/dc_decl.h: Removed ApolloLanguage.

	* intl/module.h: Removed structure ApolloLanguage.

	* src/server/alloc.c (spd_module_free): g_module_close moved to the end.

	* src/modules/module_utils.c (UPDATE_PARAMETER): Stolen from apollo.c
	(UPDATE_STRING_PARAMETER): Burgled from apollo.c

	* src/modules/apollo.c (module_write): Changed arguments.

	* src/modules/module_utils.c (module_get_ht_option): New function.

	* src/modules/apollo.c (module_load): DEVICE defaults to /dev/apollo.
	ApolloDevice is now a dotconf option.


	* src/modules/apollo.c: Include module_utils.c
	Prototypes and modinfo handled by macros.

	* src/server/server.c (queue_message): Use spd_strdup().

	* src/server/speaking.c (process_message_punctuation): Insert coma after spelled punctuation
	characters for better intonation.

	* src/modules/festival.c (_festival_parent): Don't wait for response from child if fwave==NULL.

	* src/server/alloc.c (spd_module_free): New function.

	* src/modules/festival.c (module_close): Delete festival_info when closing.

	* src/server/speechd.h: num_config_options and options aren't global now.

	* src/server/dc_decl.h (dc_cbEndAddModule): Don't abbort if initialization of output module failed.
	(add_config_option): num_config_options now passed as argument.

2003-06-20  Hynek Hanke  <hanke@localhost.localdomain>

	* src/tests/sayfortune.sh: Very simple script using Speech Dispatcher to read a fortune.

	* config/speechd.conf: New options for output modules.

	* src/server/server.c (serve): Use size_t instead of int for _bytes_.

	* src/server/module.c: Changed calls for module_load and module_init,
	reads dotconf callbacks.

	* src/server/dc_decl.h: Now reads configuration in two passes, it includes
	callbacks from output modules.
	(cb_AddModule): Only get the module structure from hash table.
	(cb_fr_AddModule): First-pass AddModule callback, does what cb_AddModule before,
	registers new callbacks.

	* src/server/alloc.c (spd_free): New function (checks if argument isn't NULL).

	* src/modules/festival_client.c (festivalEmpty): Removed.
	(festivalSetPitch): New function for setting pitch mean and stddev.

	* src/audio/spd_audio.c (spd_audio_close): Close audio only if it wasn't closed before.

	* intl/module.h (OutputModule): Changed types of parameters, pause() now returns
	only the position (int) instead of text (char*).

	* intl/fdset.h: Include only once.

	* src/modules/module_utils.c: Many new function and macro utilities
	aiming to make writing output modules easier.

	* src/module/module_utils.c Proper closing of audio device.

	* src/modules/flite.c: Uses macros for repetitive code, declares it's own
	DotConf options, new pause mechanism, cleaning, ...

	* src/modules/festival.c: Uses macros for repetitive code, declares it's own
	DotConf options, supports pitch setting, allways synchronized with Festival
	server output, new pause mechanism, cleaning, ...

	* src/server/parse.c (parse_pause): Only set flags and add to semaphore.

	* src/server/speaking.c (speaking_pause): Queue message as preprocessed yet.
	(speak): Pause mechanism changed: pause function now called from here depending
	on flags and semaphores (to not block SSIP communication).
	(current_message): Mantain a copy of the last message sent to output module (for
	pause/resume).

	* src/modules/module_utils.c: New functions and macros to help developing output modules.
	(module_getvoice): Accept OutputModule* as parameter.

	* src/modules/flite.c: Cleaned, use module_utils.c functions.
	(module_load): Parameters changed, new options.

	* src/modules/festival.c (_festival_synth): Free thw wave and fwave data.
	(module_init): Free fwave.

	* src/server/parse.c (get_param): Free memmory if there is no parameter to pass.

	* src/server/speechd.c (speechd_init): Don't allocate memmory for logfile.

	* src/server/parse.c (CHECK_SSIP_COMMAND): New macro.

	* src/server/speechd.c (MSG): format_with_spaces deleted.

2003-06-11  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/speechd.c (speechd_connection_new): Initialize o_buf, o_bytes to 0.


2003-06-09  Jan Buchal  <buchal@brailcom.org>

	* src/tests/Makefile.am: references to multiple_messages removed.


2003-06-08  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/dc_decl.h (cb_MinDelayProgress): New callback.

	* src/modules/flite.c (module_init): Return -1 if can't set default voice.

	* src/c/api/libspeechd.c: Switched to string-described priorities.

	* config/speechd.conf (MinDelayProgress): New option: how should Speech Dispatcher
	wait before considering tha last message of priority Progress ``the last''.

	* src/server/server.c (queue_message): Use min_delay_progress.

	* intl/fdset.h: min_delay_progress added to TFDSet.

2003-06-05  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/speechd.h (last_p5_message): Archive last priority ``notification'' message here.

	* src/server/speechd.c (speechd_alarm_handle): Handle alarm for delayed priority 5 messages.
	(speechd_alarm): New function: set alarm to the requested time in microseconds.

	* src/server/msg.h (ERR_UNKNOWN_PRIORITY): New SSIP return message.

	* src/server/parse.c (parse_set): Accept priorities (SET ... PRIORITY name) by their names.

	* src/server/speaking.c (resolve_priorities): Rules for priorities changed.
	(stop_priority_except_first): New function.

	* src/server/alloc.c (speechd_queue_alloc): 2 new priorities.

	* src/server/server.c (queue_message): Priorities changed.

2003-06-03  Hynek Hanke  <hanke@localhost.localdomain>

	* config/speechd.conf: New option ``LogLevel''.

	* src/server/speechd.c (MSG): Use spd_log_level instead of LOG_LEVEL.

	* src/server/speechd.h (spd_log_level): New variable: current log level.

	* src/server/dc_decl.h (cb_LogLevel): New dotconf callback.

	* src/server/speechd.c (speechd_reload_configuration): Reload configuration on SIGHUP.
	(main): Register speechd_reload_configuration for SIGHUP.

2003-06-02  Hynek Hanke  <hanke@localhost.localdomain>

	* src/modules/flite.c (flite_close): Don't panic if stopped around fork().

	* src/server/sndicon.c (sndicon_queue): Don't print out the ugly debuging message.

	* src/server/speaking.c (speak): Don't crash if the data in the message is NULL.

	* src/server/sndicon.c (snd_icon_spelling_get): Cut off the trailing `"'

2003-06-01  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/speechd.c (MSG): Bug fixed: free allocated memmory.

	* src/server/parse.c (spd_utf8_read_char): Moved from speaking.c

	* src/modules/Makefile.am: module_utils.c added to festival sources.

	* src/server/speaking.c (process_message_spell): The interpunction
	problem solved (inserts punctuation before sound icons text).

	* src/server/speechd.h (sem_messages_waiting): New semaphore.

	* src/server/speaking.c (msglist_insert): Moved from server.c
	(process_message): Moved from server.c
	(process_message_punctuation): Moved from server.c
	(set_speak_thread_attributes): New function: splitted from speak().
	(speak): Use semaphores instead of `busy-wait'.
	(resolve_priorities): New function: splitted from speak().
	(speak): Insert into paused list even messages with priority 3.
	(get_message_from_queue): New function: splitted from speak().
	(get_output_module): New function: splitted from speak().

	* src/server/server.c: Cleaning.

	* src/modules/module_utils.c: New file: Common functions for
	output modules.

	* src/modules/festival.c: Include module_utils.c

2003-05-29  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (speechd_init): Init max_gid to 0.

	* src/server/sndicon.c: queue_message() calling fixed.

	* src/server/speaking.c (speak): process_message() again under mutex.

	* src/server/dc_decl.h (cb_EndAddModule): Exit on error (bug fixed).

	* src/server/speechd.h (max_gid): New global variable: group id unique identifier.

	* src/server/speaking.c (speaking_stop): Stop the whole message even if it has
	more parts.
	(speaking_stop_all): Stop the whole message even if it has
        more parts.

2003-05-31  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c (module_load): Initialize apollo_languages.
	(set_language): Get the language definition parmeters from
	configuration.
	* intl/module.h (SPDApolloLanguageDef): New structure.
	(SPDModuleSettings): New member `apollo_coding'.
	* src/server/dc_decl.h (options): ApolloLanguage added.
	(cb_ApolloLanguage): New dotconf callback.
	* config/speechd.conf: LanguageROM options added to "apollo".

	* src/tests/long_message.c: Omitted newlines added to the
	multiline strings.

2003-05-29  Milan Zamazal  <pdm@brailcom.org>

	* src/tests/long_message.c (main): Split multi-line strings to
	single-line strings.
	* src/tests/multiple_messages.c (main): Likewise.

2003-05-27  Milan Zamazal  <pdm@brailcom.org>

	* src/c/api/libspeechd.c (xmalloc): Prototype declaration fixed.

2003-05-26  Hynek Hanke  <hanke@localhost.localdomain>

	* src/c/api/libspeechd.c (xmalloc): Use unsigned int as it's parameter.

	* INSTALL: Internet links for some of the requiered packages.
	``make all'' moved after the notice about flite with shared
	libraries.

	* configure.in: AC_PROG_CXX deleted, not longer needed.
	AC_CHECK_LIB(recode, main): New check for requiered library.

	* src/server/server.c (process_message_spell): Fixed bug with strlen in for-cycle condition.
	Take into account the changes in snd_icon_spelling_get()
	(process_message_punctuation): Fixed bug with strlen in for-cycle condition.


	* src/server/sndicon.c (snd_icon_spelling_get): Optimized for speed.

2003-05-26  Hynek Hanke  <hanke@brailcom.org>

	* Speech Deamon renamed to Speech Dispatcher.

2003-05-26  Hynek Hanke  <hanke@brailcom.org>

	* src/server/parse.c (parse_set): Handle new SSIP command: SET {SELF|ALL|id} OUTPUT_MODULE module

	* src/server/set.h: Declarations of new functions set_output_module_*

	* src/server/set.c (set_output_module_uid): New function: set other default output module for this client.
	(set_output_module_all): New function.
	(set_output_module_self): New function.

	* src/server/msg.h (ERR_COULDNT_SET_OUTPUT_MODULE): New SSIP message.
	(OK_OUTPUT_MODULE_SET): New SSIP message.


2003-05-25  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/sndicon.c (queue_message): New parameter passed.
	Handle `space' as CHAR parameter.

	* src/server/msg.h (OK_VOICE_LIST_SENT): New SSIP message.

	* src/server/history.c (queue_message): New parameter passed.

	* src/server/server.c (queue_message): New parameter: is it a whole message or only a piece?
	(queue_messages):  New parameter: is it a whole message or only a piece?

	* intl/fdset.h (TFDSetElement): New flag for messages after spelling and punctuation.

	* src/server/speaking.c (speak): Handle priority 3 messages sent in more pieces (after processing).

	* src/server/parse.c (get_param): Parameters aren't enclosed in doublequotes.
	(parse_char): Handle "space" parameter.
	(parse_list): LIST VOICES implemented.


2003-05-22  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival.c: All internal objects declared static.
	(module_getparam_int): Use `strtol' instead of `atoi' and be safe
	on conversion failure.
	(module_getvoice): Report "Unknown voice" instead of "Internal
	error".


2003-05-21  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speaking.c (speak): Don't include process message into mutex.

2003-05-21  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/festival_client.c (festivalSetRate): New function.

	* src/modules/festival.c (festival_write): Set the appropriate rate.
	(festival_write): Also call festivalSetVoice when the language changes.
	(festival_cur_rate): New variable. (Set rate only when necessary.)
	(_festival_recode): Recode the stream when necessary.
	(festival_write): Call _festival_recode for each incomming data.

2003-05-20  Hynek Hanke  <hanke@brailcom.org>

	* src/server/server.c (Module): Added debugging message.

	* src/modules/festival.c (festival_write): Insert one extra space to festival_message.
	More debugging messages.

	* src/modules/festival.c (_festival_synth): Make sure the buffer is empty.
	(_festival_synth): Only process wave if it's not NULL.

	* src/modules/festival_client.c (festivalEmptySocket): New function: clear the data stream.

2003-05-18  Hynek Hanke  <hanke@brailcom.org>

	* intl/fdset.h (Module): NO_VOICE: New type of voice

	* config/speechd.conf: New mechanism for loading output modules.

	* src/modules/flite.c (module_load): Initialize the settings tables.

	* src/modules/festival.c (module_getvoice): New function. Get voice name from passed settings.
	(festival_write): Set the appropriate voice.

	* src/modules/festival_client.c (festivalSetVoice): New function.

	* src/modules/flite.c (modinfo_flite): Settings initialization.
	(module_init): New function.
	(module_load): Renamed from module_init().

	* src/modules/cstsnd.c (modinfo_cstsnd): Settings initialization.
	(module_init): New function.
	(module_load): Renamed from module_init().

	* src/modules/festival.c (modinfo_festival): Settings initialization.
	(module_init): New function.
	(module_load): Renamed from module_init().

	* src/modules/apollo.c (modinfo_apollo): Settings initialization.
	(module_init): New function.
	(module_load): Renamed from module_init().

	* intl/module.h (SPDVoiceDef): New structure type: Mapping of the symbolic voice names.
	(SPDModuleSettings): New structure type: Settings for the output modules.
	(OutputModule): New item: SPDModuleSettings settings.
	Initialization in other modules changed.

	* src/server/dc_decl.h (cb_AddModule): Now also act as a switcher between contexts.
	Don't initialize the output module, only load it into memmory.
	(cb_EndAddModule): Terminate current context.
	Initialize the output module.
	(cb_AddParam): Add new parameter to the given output module.
	(cb_AddVoice): Add new voice to the given output module.

	* src/server/module.c (init_output_module): New function: initialize output module.
	(load_output_module): Renamed from init_output_module: only load it into memmory.

	* src/modules/festival.c (module_init): Set server_host and server_port according
	to user settings.

2003-05-17  Hynek Hanke  <hanke@brailcom.org>

	* src/audio/spd_audio.h: Include flite/flite.h.

	* src/modules/Makefile.am: Don't use C++.
	Link festival.c into a new plugin for Speech Deamon.

	* src/modules/festival_client.c: Festival client/server functions library.

	* src/modules/festival_client.h: Festival client/server functions library.

	* src/modules/festival.c: New Festival output plugin.

2003-05-13  Jan Buchal  <buchal@robinson>

	* src/server/server.c (process_message_punctuation): Only fill new_message if str not NULL.

2003-05-12  Milan Zamazal  <pdm@zamazal.org>

	* configure.in: Missing AC_CHECK_LIB arguments added.

2003-05-11  Hynek Hanke  <hanke@brailcom.org>

    	* src/server/server.c (process_message_spelling): Don't queue \r and \n strings when
	not found in sound icons.

	* src/sounds: New directory.

	* src/sounds/Makefile.am: Install sounds.

	* Makefile.am: New directory sounds.

	* src/configure.in: Set datadir to the appropriate path.

	* src/server/sndicon.c: Read sound icons from DATA_DIR

2003-05-11  Hynek Hanke  <hanke@brailcom.org>

	* src/c/api/libspeechd.c: Completely reworked.
	All callers changed.

	* src/c/api/libspeechd.h: Completely reworked.
	All callers changed.

2003-05-07  Hynek Hanke  <hanke@brailcom.org>

	* src/tests/spelling.test: New test.

	* src/server/dc_decl.h: Exit if the specified output module doesn't exist.

	* src/tests/punctuation.test: New test.

	* src/server/parse.c: Added "LIST PUNCTUATION_TABLES"

	* src/server/server.c (process_message_punctuation): Bug corrected.

2003-05-07  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf (SndModule): New option: sound module to load.
	Fixed sound->rate in commentaries.

	* src/modules/Makefile.am (cstsnd): New output module for sound.

	* src/modules/cstsnd.c: New output module.

	* src/server/sndicon.c (sndicon_queue): Handle icons represented by sounds.

	* src/server/server.c (process_message_punctuation): Handle icons represented by sounds.
	(process_message_punctuation): Don't throw away signs not found in "important" table.

	* src/server/speaking.c (speak): Call sound_module for sounds.

	* src/audio/spd_audio.c (spd_audio_read_wave): New function.

	* src/server/speaking.c (speak): Use sound output module when necessary.

	* src/server/speechd.h (sound_module): New variable.

	* src/server/server.c (process_message_spell): Handle icons represented by sounds.
	(queue_messages): New function. Queue a list of messages.

	* src/server/sndicon.h (snd_icon_spelling_get): New parameter int *sound

	* src/server/dc_decl.h (cb_SndModule): Define sound module.

	* src/server/sndicon.c (snd_icon_spelling_get): Handle icons representing sound (wav).

	* intl/fdset.h (EMessageType): New type MSGTYPE_SOUND.

	* src/server/dc_decl.h (cb_AddTable): Accept entries in "".

	* src/modules/flite.c (_flite_synth): Bug with messages not terminated by a dot fixed.

2003-05-06  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c (module_init): Set punctuation off.

2003-05-06  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/history.c (history_get_message): New function.

	* src/server/parse.c (parse_history): HISTORY CURSOR NEXT/PREV changed to FORWARD/BACKWARD.
	(parse_history): HISTORY GET MESSAGE: New SSIP command.

	* src/server/msg.h (OK_CLIENT_ID_SENT): New SSIP message.

	* src/server/history.c (history_get_client_id): New function.

	* src/server/parse.c (parse_history): Added HISTORY GET CLIENT_ID.

	* config/speechd.conf (DefaultClientName): Added "user" entry.

	* src/modules/Makefile.am (AM_CFLAGS): Link libsdaudio dynamically.

	* src/modules/flite.c (_flite_sigblockusr): New function. Block SIGUSR1 signal.
	(_flite_synth): Block SIGUSR1 while sending data to soundcard.
	(_flite_synth): Divide message according to sentences, not lines.

	* src/server/speaking.c (speaking_pause_all): Queue according to the paused clients,
	not the calling one.


2003-05-05  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/festival.cc (modinfo_festival): `filename' removed.

2003-05-01  Hynek Hanke  <hanke@localhost.localdomain>

	* src/modules/flite.c (module_flite): filename entry deleted.

	* src/modules/apollo.c (apollo_is_speaking): Return 2 for ``don't know''
	(module_apollo): filename entry deleted.

	* src/server/speaking.c: is_sb_speaking() can also return 2 for ``don't know''

2003-04-29  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c (apollo_pause): Call apollo_stop.

	* INSTALL: libfestival-dev and libestools-dev added.
	* configure.in: Call AC_PROG_CXX.
	* src/modules/est_string_config.h: New file.
	* src/modules/Makefile.am: Build the Festival module.
	(AM_CXXFLAGS): New variable.
	* src/modules/festival.cc: Renamed from festival.c.
	(festival_pause): New function.

2003-04-28  Milan Zamazal  <pdm@brailcom.org>

	* src/Makefile.am (SUBDIRS): Process `audio' before `modules'.

2003-04-28  Hynek Hanke  <hanke@localhost.localdomain>

	* src/server/speaking.h: New headers for speaking_pause_all(), speaking_resume_all().

	* src/server/speaking.c (speaking_pause_all): New function.
	(speaking_resume_all): New function.
	(speaking_pause): Reworked.
	(speaking_resume): Reworked.

	* src/server/speechd.h: Removed stop/cancel/pause/resume functions.

	* src/server/parse.c (pause): Reworked.
	(resume): Reworked.


	* src/modules/apollo.c (apollo_pause): New function. Needs some work:)

	* src/modules/flite.c (_flite_speak): Use the spd_audio.c library.
	(_flite_synth): New function. Splitted from _flite_speak.
	(flite_pause): New function. Stop speaking the message and return the rest.

	* src/audio/spd_audio.h: New header file for spd_audio.c.

	* src/audio/spd_audio.c: New file: Audio output for Speech Deamon.

	* configure.in: Build src/audio.

	* Makefile.am: Build src/audio.

	* src/Makefile.am: Build src/audio.

2003-04-25  Milan Zamazal  <pdm@brailcom.org>

	* INSTALL: Dependency on librecode added.
	* src/modules/Makefile.am (libsdapollo_la_LDFLAGS): -lrecode
	added.
	* src/modules/apollo.c: Include recode.h and stdbool.h.
	(recode_outer, recode_request): New variables.
	(module_init): Initialize them.
	(set_language): Set recoding.
	(apollo_write): Recode data.
	(set_speed): Renamed to set_rate.
	(apollo_write): Change above considered.
	(UPDATE_STRING_PARAMETER): Typo in the new_value NULL test fixed.

2003-04-24  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf: english -> en

	* src/server/dc_decl.h: speed -> rate

	* src/server/speechd.h (fds_allocated): New variable.

	* src/server/sndicon.c (sndicon_key): Reworked, new key format introduced.

	* src/server/parse.c (parse_help): New function, SSIP HELP command.

	* src/server/msg.h (OK_HELP_SENT): New SSIP message.

	* src/server/set.c (set_client_name_self): Control if SET CLIENT argument has the
	proper format.

	* src/server/speechd.h (awaiting_data): Now ordinary dynamic array instead of GArray.
	(o_bytes): Now ordinary dynamic array instead of GArray.

	* src/server/parse.c (parse_set): Call the new settings functions.
	(parse_set): Added {id, self, all} to every SSIP settings command.

	* src/server/set.c: New function names set_*_uid, set_*_self, set_*_all.

	* src/server/parse.c (parse): Function moved from server.c.

	* src/server/parse.h: Prototypes for parse.c.

	* config/en/keys.conf: New keys format.

	* intl/fdset.h: speed->rate.

2003-04-24  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c: Include math.h.
	(set_speed, set_pitch): Allocate `command' as an empty array.  Use
	`snprintf', not `sprintf'.
	(apollo_write): Negate the return value.
	(send_apollo_command): Send carriage return additionally.
	(apollo_write): Convert line feeds to carriage returns.  Add a
	closing carriage return.

2003-04-23  Milan Zamazal  <pdm@brailcom.org>

	* src/modules/apollo.c: New file.
	* src/modules/Makefile.am (libsdapollo_la_SOURCES)
	(libsdapollo_la_LDFLAGS): New variables.
	(lib_LTLIBRARIES): libsdapollo.la added.

2003-04-18	Hynek Hanke	<hanke@brailcom.org>

	* src/server/set.c (set_character_table): New function.
	(set_key_table): New function.
	(set_sound_table): New function.

	* src/server/parse.c (parse_set): New settings SSIP commands.

	* src/server/server.c (parse): New LIST SSIP command.

	* src/server/sndicon.c (sndicon_list_sound_tables): New function.
	(sndicon_list_char_tables): New function.
	(sndicon_list_key_tables): New function.
	(sndicon_list_punctuation_tables): New function.
	(sndicon_list_spelling_tables): New function.
	(sndicon_list_tables): New function.

	* src/server/dc_decl.h: New configuration options.

	* intl/fdset.h (TFDSetElement): Added tables for characters, keys, sound icons.

	* src/server/speechd.h (TSpeechDTables): New structure.

	* src/server/speechd.c (speechd_init): Initialize lists of (speechd_init): Initialize lists of tables.tables.

	* config/speechd.conf: New options.

	* tables in config/en/: Added groups, the definition: tag.

	* src/server/msg.h: New SSIP return messages.

2003-04-17  Hynek Hanke  <hanke@brailcom.org>

	* src/server/speechd.c (speechd_init): Initialize tables.

	* src/server/speechd.h (TSpeechDTables): New structure (lists of available tables).

2003-04-17	Hynek Hanke	<hanke@brailcom.org>

	* src/server/server.c: Bug with cutting of messages when spelling and "punctuating" fixed.

2003-04-17	Hynek Hanke	<hanke@brailcom.org>

	* src/server/server.c (queue_message): Additional parameter: type of the message.

	* src/server/server.c (process_message_spell): Free the GString.

	* src/server/sndicon.c (sndicon_icon): Call queue_message with message-type.

	* src/server/parse.c (set punctuation_table): New SSIP command.

	* src/server/msg.h: New return messages.

	* src/server/set.c (set_punctuation_table): New function.

	* src/server/speaking.c (speak): Don't change (spelling, punctuation) non-textual messages.

	* src/server/speechd.c (MSG): Free format_with_spaces memmory.

	* intl/fdset.h (EMessageType): New type for (text, char, key, sound_icon)

	* config/speechd.conf (DefaultPunctuationTable): New option.

2003-04-15	Hynek Hanke	<hanke@brailcom.org>

	* INSTALL: Requierement to have automake 1.7+ added.
	Remove autoheader from requiered tools.

	* src/server/icons_en_conf: Old version removed.

2003-04-15  Hynek Hanke <hanke@brailcom.org>

	* src/clients: Content moved to src/c/ ...

2003-04-15  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf (PunctuationSome): New option.

	* intl/fdset.h (TFDSetElement): punctuation_some: new configuration string.

	* src/server/set.c (default_fd_set): Copy also punctuation_some.

	* src/server/dc_decl.h (cb_PunctuationSome): New dotconf callback

	* src/server/server.c (process_message_punctuation): New function, process punctuation.

	* src/clients/libspeechd.c (spd_say_key): Use KEY command.
	Parameter SELF added.

	* src/server/parse.c (parse_stop): Accept ID, ALL, SELF.
	(parse_cancel): Accept ID, ALL, SELF.

	* src/server/speaking.c: Functions regulating speech output moved here.

	* src/server/speaking.h: New header file for speaking.c

	* build.sh: New script for easier building from CVS.

	* config.status config.sub config.guess mkinstalldirs missing depcomp: Removed,
	unnecessary. Now generated by automake -a.


2003-04-14  Hynek Hanke  <hanke@brailcom.org>

	* src/server/msg.h: ERR_PARAMETER_INVALID added.

	* src/server/speechd.c: (p_msg_lc), (p_msg_uid_lc): Moved to compare.c

	* src/clients/libspeechd.c (spd_cancel): New function.
	(spd_cancel_fd): New function.

	* src/clients/libspeechd.h (spd_cancel): New function.
	(spd_cancel_fd): New function.

	* src/server/parse.c (parse_set): set spelling parameter switched to on/off.
	(parse_set): set punctuation now accepts {all|some|none}

	* src/server/server.c (process_message_spell): Splitted from process_message.
	Correct UTF-8 handling.
	(spd_utf8_read_char): New function.
	(speak): Bug fixed: Pull message from queue 3 if there are more than zero, not one.

	* src/modules/flite.c (flite_write): Speech rate scale up to duration_stretch=4

	* src/server/compare.c: New file, functions for comparing fd's, id's and other
	data in elements of different lists moved here.

	* src/server/compare.h: New header file for compare.c

	* Makefiles: Use AM_CFLAGS instead of CFLAGS.

	* configure.in: Don't call AC_ARG_PROG, it is called before implicitly.

	* depcomp: New script. Needed for automake 1.7.2.

2003-04-12  Milan Zamazal  <pdm@brailcom.org>

	* src/server/parse.c: English grammar and spelling fixes.

2003-04-12  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/flite.c (flite_write): Rate scale tweaked.

	* src/server/server.c (speak): If spelling on, convert the message.
	(process_message): New function.

	* src/server/sndicon.c: New file for sound icons related functions.

	* src/server/sndicon.c: New header file for sndicon.c.

	* src/server/speechd.h: +sndicon.h

	* src/server/Makefile.am: Added snd_icon.c, snd_icon.h

	* src/server/parse.c: Use snd_icon.c functions.

	* config/speechd.conf: The various options have some comments now.
	Cleaned.

2003-04-11  Hynek Hanke  <hanke@brailcom.org>

	* config/speechd.conf: Moved from speechd.conf.

	* Makefile.am: Added configuration for the new directory config/

	* configure.in: Added configuration for the new directory config/

	* INSTALL: Added info about config/, fixed some paths.

	* config/en: Configuration for English.

	* src/server/set.c (set_spelling_table): New function.

	* intl/fdset.h (TFDSetElement): New entry char* spelling_table.

	* src/server/dc_decl.h (cb_DefaultSpellingTable): New function.
	(cb_AddTable): Moved from cb_AddSndIcon, apmplified.

	* src/server/parse.c (parse_key): New function.
	(parse_char): New function.
	(get_param): New parameter lower_case: 1 -> convert output to
	lower case.

	* src/server/server.c (parse): SND_ICON -> SOUND_ICON
	(parse): CHAR: new SSIP command, KEY: new SSIP command.

2003-04-11  Milan Zamazal  <pdm@brailcom.org>

	* INSTALL: Order of auto* tools invocations improved.

2003-04-09  Tomas Cerha  <cerha@freebsoft.org>

	* INSTALL (Module): Added `autoheader' to suggested compilation
	process.

2003-04-07  Milan Zamazal  <pdm@brailcom.org>

	* configure.in (AM_CONFIG_HEADER): Generate template for config.h,
	not config.h.in.

2003-04-06  Hynek Hanke  <hanke@brailcom.org>

	* src/modules/flite.c (flite_write): Set rate and pitch.
	(flite_write): Support more voices (experimental AWB voice).
	* src/modules/Makefile.am: Include libflite_cmu_time_awb voice.
	* src/server/parse.c (parse_set): New SSIP command SET VOICE added.
	* src/server/set.c (set_voice): New function.
	* src/server/msg.h (OK_VOICE_SET): New SSIP message.
	(ERR_COULDNT_SET_VOICE): New SSIP message.
	* intl/fdset.h: EVoiceType now includes more than one male and female voices.

2003-04-06  Hynek Hanke  <hanke@brailcom.org>

	* src/server/msg.h OK_CANCELED: New SSIP message.

	* src/server/dc_decl.h (cb_AddSndIcons): Typo.

	* src/server/parse.c: Call the new stop-family functions.

	* src/server/speechd.h: +get_client_uid_by_fd().

	* src/server/set.c (get_client_uid_by_fd): New function.
	(get_client_settings_by_fd): Use get_client_uid_by_fd().

	* src/server/server.c (speaking_uid): New variable.
	(get_speaking_uid ()): New function.
	(speaking_stop ()): Moved from stop_c().
	(speaking_cancel ()): Moved from stop_c().
	(speaking_pause ()): Moved from stop_c().
	(speaking_resume ()): Moved from stop_c().
	(message_list_compare_uid): New function.
	(parse): cancel: new SSIP command.

2003-04-04	Hynek Hanke	<hanke@brailcom.org>
	* src/server/server.c (stop_c): Return 0 after resume.
	* src/server/dc_decl.h (cb_AddSndIcons): Accept more files defining icons for the same language.
	* src/modules/festival.c: Prototype for Festival output plugin.
	* src/clients/say.c: Unused variables removed.

2003-04-02  Milan Zamazal  <pdm@brailcom.org>

	* src/server/msg.h: Multiple occurence of
	ERR_COULDNT_SET_PUNCT_MODE removed.

2003-03-30  Hynek Hanke <hanke@brailcom.org>

	* src/server/dc_decl.h (cb_AddSndIcons): Read sound icons file
	from SYS_CONF/filename.conf.
	* src/server/server.c (serve): Check if the client connection
	isn't closed yet before write().
	* src/server/Makefile.am: Added snd_icons_en.conf to instalation.
	* src/server/speechd.h: Removed unnecessary history client search
	functions.
	* configure.in: etc/ -> etc/speechd/

2003-03-29  Hynek Hanke <hanke@brailcom.org>

        * src/server/speechd.h (fdset): Now hash table -> faster searching.
	* src/server/speechd.h (fd_uid): New hash table for fast searching of unique ids.
	* src/server/speechd.c (speechd_quit): Call FD_CLR for server socket.
	* src/server/server.c (fdset): Also includes non-active connections.
	* src/server/server.c (parse): Accept lower-case commands.
	* src/server/history.c (message_history): New global list for history.
	* src/server/history.c: Switching to global history.
	* src/server/history.h (THistoryClient): Deleted, we will use global list of history.
	* src/server/history.h (THistClientSet): Deleted, configuration moved to TFDSetElement.
	* src/server/parse.c (get_param): Accept longer parameters in quotation marks.
	* intl/fdset.h (TFDSetElement): History settings moved here.

2003-03-27  Hynek Hanke <hanke@brailcom.org>
    * src/server/server.c: Compare against \r\n.\r\n only if there are enough bytes.

2003-03-27  Tomas Cerha  <cerha@brailcom.org>

	* INSTALL (Module): `robod' -> `speechd'.

	* INSTALL.in (Module): `robod' -> `speechd'.


2003-03-25  Hynek Hanke <hanke@brailcom.org>
	* src/server/speechd.c: Logging messages switched to their levels of verbosity.
	* src/server/speechd.c (speechd_modules_terminate()): Call module_speak for each module being closed.
	* src/server/speechd.c (MSG): Now a function instead of macro.
	* src/server/speechd.h (MSG): Declaration.
	* src/server/speechd.h (FATAL) (DIE): Macros moved from src/intl/def.h
	* src/server/server.c (speak()): Ignore all signals in this thread.
	* src/server/server.c: Logging messages switched to their levels of verbosity.
	* src/modules/flite.c (flite_close): Terminate the flite_speak() thread if speaking.
	* src/server/dc_decl.c (LogFile()): New DotConf callback function.
	* src/intl/def.h: - MSG, FATAL, DIE
	* speechd.conf: + LogFile settings.

2003-03-24  Hynek Hanke <hanke@brailcom.org>
	* src/server/server.c: Changes in SSIP.
	* src/server/set.c: Changes in SSIP.
	* src/server/history.c: Changes in SSIP.
	* src/server/parse.c: Changes in SSIP.
	* src/server/msg.h: Numerical codes of return values added.
	* src/clients/libspeechd.c: Changes in SSIP.
	* src/clients/spd_center.c: Priority 2 in menu -> priority 3.
	* src/clients/speechd.c: Some messages switched to another levels of verbosity.

2003-03-23  Hynek Hanke <hanke@brailcom.org>
	* src/modules/flite.c (DEBUG_FLITE): A new switch.
	* src/modules/flite.c (flite_stop()): Send SIGKILL instead of SIGINT.
	* src/server/server.c: All stops are now called in the separate speak() thread (faster).
	* src/server/server.c (fd_settings): now hash_table instead of a list
	* src/server/server.c (speak()): Uses mutexes to be thread safe.
	* src/server/set.c (fd_settings): now hash_table instead of a list
	* src/server/history.c (fd_settings): now hash_table instead of a list
	* src/server/alloc.c: Functions for allocating and freeing data structures;
	* src/tests/long_message.c: New test trying to say two long texts.
	* src/server/speechd.c: select() now doesn't return unless there is some communication.
	* src/server/speechd.c: Speech Deamon now doesn't interrupt client's messages on @quit.
	* src/server/speechd.c: fd_settings now hash_table instead of a list
	* src/server/speechd.c (terminate_client): New function for unloading clients.
	* src/server/speechd.c (terminate_module): New function for unloading modules.
	* src/server/speechd.c (stop_c()): Uses mutexes to be thread safe.
	* src/server/module.c (load_output_module()): Write gmodule* into module_info.
	* src/server/Makefile.am: Added new sources.
	* src/clients/spd_center.c: Now uses priority 3 instead of sending @stops.
	* src/clients/libspeechd.c: (LIBSPEECHD_DEBUG): New define macro for debugging.
	* src/clients/libspeechd.h: (LIBSPEECHD_DEBUG): New define macro for debugging.
	* intl/def.h: (SPEECHD_DEBUG): New preprocesor variable for debugging.
	* intl/module.h (OutputModule): New entry gmodule*
	* Polished.


2003-03-13  Hynek Hanke <hanke@brailcom.org>
    * src/modules/flite.c: Now uses threads and processes to get better performance.
    * src/modules/Makefile.am: Links also flite shared libraries.
    * src/clients/libspeechd.c: Cosmetical changes.
    * src/tests: New directory.
    * src/tests/Makefile.am: Makefile for new directory.
    * src/tests/multiple_messages.c: New file, a speed test.
    * src/server/server.c (speaking_module): Now directly a pointer to the module instead of its name.
    * src/server/server.c (speak): speak() is now a separate thread.
    * src/server/speechd.c (main): speak_thread initialization.
    * src/server/speechd.h (speak_thread): New thread for speak().
	* src/Makefile.am: Added new directory tests.
	* configure.in: Added tests for pthread and flite shared libraries.
	* INSTALL: Note about the requierement to have compiled flite with shared libraries.
	* speechd.conf: Default values of speed and pitch of voice now 0, not 100.

2003-03-16  Tomas Cerha  <cerha@brailcom.org>

	* README: Robod -> Speech Daemon.

	* INSTALL: pkg-config and libtool added to requirements.
	Robod -> Speech Daemon.  Cosmetical changes.

2003-03-13  Hynek Hanke	 <hanke@brailcom.org>
	* src/modules/flite.c: Bug with swapped flite_is_speaking() and flite_close() fixed.
	* src/intl/module.h: Bug with swapped flite_is_speaking() and flite_close() fixed.

2003-03-12  Hynek Hanke  <hanke@brailcom.org>

	* src/clients/libspeechd.c (spd_say()): Bug with @data off corrected.
	* src/clients/libspeechd.c (spd_voice_rate()): Renamed from spd_voice_speed().
	* src/clients/libspeechd.c (spd_voice_punctuation()): Now accepts 3 values (0=no,1=full,2=some).
	* src/server/server.c (parse()): o_buf now doesn't have fixed size.
	* src/clients/say.c (main()): Things that shouldn't be there removed.
	* src/server/parse.c (parse_set): New SSIP commands for settings.
	* src/server/set.c: New SSIP commands for settings.
	* src/modules/flite.c (flite_pause()): Function removed, unnecessary.
	* src/modules/flite.c (flite_resume()): Function removed, unnecessary.
	* src/modules/flite.c (flite_close()): New function.
	* src/modules/festival.c (festival_pause()): Function removed, unnecessary.
	* src/modules/festival.c (festival_resume()): Function removed, unnecessary.
	* src/modules/module.h (OutputModule): Reworked.
	* src/server/msg.h: New SSIP messages for the settings commands.
	* src/server/set.h: Headers for new settings functions.

2003-03-12  Milan Zamazal  <pdm@brailcom.org>

    * src/clients/libspeechd.c: `speed' -> `rate'.
    * src/clients/libspeechd.h: Likewise.
    * src/clients/spd_center.c: Likewise.


2003-03-09  Hynek Hanke  <hanke@brailcom.org>

	* src/clients/libspeechd.c (spd_icon()): New function.
	* src/clients/libspeechd.c (spd_say_letter()): New function.
	* src/clients/libspeechd.c (spd_say_digit()): New function.
	* src/clients/libspeechd.c (spd_say_sgn()): New function.
	* src/clients/libspeechd.c (spd_say_key()): New function.
	* src/clients/libspeechd.c (spd_voice_speed()): New function.
	* src/clients/libspeechd.c (spd_voice_pitch()): New function.
	* src/clients/libspeechd.c (spd_voice_punctuation()): New function.
	* src/clients/libspeechd.c (spd_voice_cap_let_recognition()): New function.
	* src/clients/libspeechd.h: Declarations of new functions.
	* src/server/server.c (queue_message()): Splitted from parse().
	* src/server/server.c (parse()): Added handling for new SSIP command @snd_icon.
	* src/parse.c (parse_snd_icon()): New function.
	* src/server/snd_icons_en.conf: New file. Rules for sound icons in English.
	* src/server/dc_decl.c (cb_AddSndIcons): New DotConf callback.
	* src/server/speechd.h (snd_icon_langs): New hash table for maintaining information about defined sound icons.


2003-03-05  Milan Zamazal  <pdm@brailcom.org>

	* INSTALL: libdotconf added to the required software.  Current way
	of the build process mentioned.

2003-03-04  Milan Zamazal  <pdm@brailcom.org>

	* src/clients/say.c (main): Dummy `cl_active' argument added to
	the `spd_get_client_list' call.

01.02.2003	Hynek Hanke <hanke@brailcom.org>
	* Added copyright notices to each file, better comments.
	* doc/: Switched to Texinfo.

11.1.2003	Hynek Hanke <hanke@brailcom.org>

	* /src/client/spd_center.c (spdc_complete): String completion from given template.
	* /src/client/spd_center.h (quit()): endwin() added to fix the weird behavior after quitting.
	* /src/client/spd_center.h (TComplete): Data type for string completion.
	* /src/server/server.c: Handling of pause messages moved to stop_c(), because the problem of queues (we can't browse through them) is solved by using list and treating them as semi-queues instead.
	* /src/client/libspeechd.c (spd_history_say_msg()) (spd_history_select_client()) (spd_get_message_list_fd()): New functions.

4.1.2003	Hynek Hanke	<hanke@brailcom.org>

	* /src/server/speechd.c (main): Added handling for SIGINT and the function quit()
	* /src/server/speechd.c (history_list_alloc_message): Bug with not copying the actual data of settings.language,output_module and client_name, but only pointers to them fixed.
	* /src/server/server.c (serve): Bug with the missing FD_CLR() fixed.
	* /src/server/server.c (awaiting_data): the size of awaiting_data array is now handled in speechd.c
	* /src/server/server.c (stop_c): the section handling @stop completely reworked.
	* /src/client/spd_center.c: Implemented command input/menu logic.
	* /src/client/spd_center.c (selected): New data structure for maintaining record of what has the user selected (which client has he chosen, which subclient, which mode of sorting, etc.)
	* /src/clients/spd_center.c (spdc_initialize()): Fills _selected_ with default values.
	* /src/clients/spd_center.c: Strings prepared for gettext().
	* /src/clients/spd_center.h: New header file for spd_center.c
	* /src/clients/spd_center.c (run_cmdl()): Pause and resume functions implemented (pause(), pause(fd), pause_cur_client(), resume(), resume(fd), resume_cur_client()).
	* /src/clients/spd_center.c (run_cmdl()): Stop functions implemented (stop(), stop(fd), stop_cur_client()).
	* /src/server/speechd.c (stop_c): New parameter _target_ for stopping other clients (needed for spd_center).
	* /src/clients/libspeechd.c (spd_stop_fd(fd): Stop messages from other client fd.
	* /src/clients/libspeechd.c (spd_pause_fd(fd): Pause messages from other client fd.
	* /src/clients/libspeechd.c (spd_resume_fd(fd): Resume messages from other client fd.
	* /src/server/parse.c: Added support for @stop, @pause, @resume with parameter.
	* /src/server/set.c: Added support for @stop, @pause, @resume with parameter.
	* /intl/def.h (FATAL()): Now prints the exact line and fil when the error ocured.
	* /intl/fdset.h (TFDSetElement): Added new record int uid for unique id of the client.


16.12.2002	Hynek Hanke	<hanke@brailcom.org>

	* /src/server/speechd.c (main): Test for msgs_to_say, select has timeout of 10us, but added a sleep() after each cycle (highly reduces CPU usage).
	* /src/server/speechd.h (msgs_to_say): New global variable: number of messages to be said (for lower CPU usage)
	* /src/client/spd_center.c: New file. Speech Deamon Center -- combined history and configuration client.
	* /src/server/Makefile.am: Sysconfdir passed to gcc as -D from @sysconfdir@ (needed for loading speechd.conf).
	* /src/server/Makefile.am: Libdir passed to gcc as -D from @libdir@.
	* /src/server/history.c (history_say_id()): msgs_to_say incremented.
	* /src/server/history.c (history_get_message_list()): Find proper client, added third parametr client_id.
	* /src/server/history.c: Multiline commands now terminate with '\'.
	* /src/server/history.c (send_data()): char *reply returned is now dynamic.
	* /src/server/parse.c (history_get_message_list()): Added third parametr client_id for @history get message_list.
	* /src/server/set.c (set_client_name()): Now affects also history client settings.
	* /src/client/libspeechd.c: Multiline return values. History get clients/messages function.
8.12.2002	Hynek Hanke	<hanke@brailcom.org>

	* Renamed back to Speech Deamon

2.11.2002	Hynek Hanke	<hanke@brailcom.org>

	* gdsl --> glib2 transaction
	* polished
	* Autoconf and all it's standard files and various Makefile.am
	* /src/server/msg.h: New file defining the messages transmitted between client and server.
	* /src/server/parse.c: Functions related to parsing the input from the client moved here.
	* /src/server/set.c: Functions related to setting parameters of the client/server session moved here.
	* /src/server/set.c (set_client_name()): New function: @set client_name implemented.
	* /src/server/server.c: Polished, some functions moved to set.c and parse.c.
	* /src/server/server.c (parse()): The ugly 3 static arrays are now dynamic ones defined in robod.h and initialized in robod.c
	* /src/server/history.c (history_cursor_set_last()): Bug fixed: move to the last entry _minus_one_ (this is a property of glib)
	* /src/server/dc_decl.h: Added configuration for DefaultModule, DefaultSpeed, DefaultPitch, DefaultLanguage, DefaultPriority, DefaultPunctuationMode, DefaultClientName, DefaultVoiceType, DefaultSpelling, DefaultCapLetRecognition.
	* /src/server/dc_decl.h: New file with definitions of DotConf callbacks and other things related to DotConf.
	* /src/server/Makefile.am: Added set.c, msg.h, parse.c.
	* configure.in: Configuration for autoconf.
	* /src/client/robodlib.c (rbd_sayf()): New function: the same as say, but formated in the printf() style.
	* /src/client/robodlib.c (rbd_stop()): New function.
	* /src/client/robodlib.c (rbd_pause()): New function.
	* /src/client/robodlib.c (rbd_resume()): New function.
	* /src/client/robodlib.c (rbd_init()): The part where connection name is set now working.

07.07.2002	Hynek Hanke <hanke@brailcom.org>
	* /src/server/server.c (history_()): New functions called.
	* /src/server/server.c: Cosmetic changes.
	* /src/server/server.c: History functions moved to history.c.
	* /src/server/server.c: Messages are now inserted on tail of lists and got from it's head.
	* /src/server/history.h: New header file for history commands.
	* /src/server/history.c: New file for history commands.
	* /src/server/history.c (history_get_message_list()): New function.
	* /src/server/history.c (history_cursor_set_last()): New function.
	* /src/server/history.c (history_cursor_set_first()): New function.
	* /src/server/history.c (history_cursor_set_pos()): New function.
	* /src/server/history.c (history_cursor_next()): New function.
	* /src/server/history.c (history_cursor_prev()): New function.
	* /src/server/history.c (history_cursor_next()): New function.
	* /src/server/history.c (history_cursor_get()): New function.
	* /src/server/history.c (history_say_id()): New function.
	* /src/server/history.c (client_compare_id()): Moved from server.c; renamed.
	* /src/server/history.c (histset_compare_fd()): Moved from server.c; renamed.
	* /src/server/history.c (message_compare_id()): Moved from server.c; renamed.
        * /src/server/speechd.c: History clients are now inserted on tail of list. (more logical)
        * /src/server/speechd.c (default_fd_set): Bug with client_name fixed.
        * /src/server/speechd.h (THistSetElement): New type of structure for settings for each active client.
        * /src/server/speechd.h: (ESort) New enum type for sorting modes.


07.02.2002	Hynek Hanke <hanke@brailcom.org>
	* /src/server/server.c (stop_speaking_active_module): New function divided from stop_c().
	* /src/server/server.c (history_get_client_list): New function implementing @history get client_list
	* /src/server/server.c (message_nto_speak): Changed name from message_to_speak (more logical). Added parameter void* value so that it's useful also as compare function for searching through queues and lists.
	* /src/server/server.c (MessagePausedList): Added list for messages that we get from output queues but it's client is paused. We browse through this list every cycle to see if some client have sent @resume.
	* /src/server/server.c (o_buf[fd][0] = 0;): Bug fixed.
	* /src/server/speechd.h (TFDSetElement): Moved to /include/fdset.h
	* /src/server/speechd.h (EVoiceType): Moved to /include/fdset.h
	* /src/server/speechd.h (client_name): Uncomented, now used.
	* /src/server/speechd.c : Now working with client_name.
	* /src/modules/flite.c (TFDSetElement): Moved to /include/fdset.h
	* /src/modules/flite.c (EVoiceType): Moved to /include/fdset.h
	* /include/fdset.h : New include file used in both modules and server.