summaryrefslogtreecommitdiffstats
path: root/src/tts/configure.json
blob: 2fb68e29ce881a397844d6465d5d2922870967f7 (plain)
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
{
    "module": "texttospeech",
    "depends": [
        "gui"
    ],

    "commandline": {
        "options": {
            "flite": "boolean",
            "flite-alsa": { "type": "boolean", "name": "flite_alsa" },
            "speechd": "boolean"
        }
    },

    "libraries": {
        "flite": {
            "label": "Flite",
            "test": {
                "include": "flite/flite.h",
                "tail": [
                    "static int fliteAudioCb(const cst_wave *, int, int, int, cst_audio_streaming_info *)",
                    "{ return CST_AUDIO_STREAM_STOP; }"
                ],
                "main": [
                    "cst_audio_streaming_info *asi = new_audio_streaming_info();",
                    "asi->asc = fliteAudioCb; // This fails for old Flite",
                    "new_audio_streaming_info();"
                ]
            },
            "sources": [
                "-lflite_cmu_us_kal16 -lflite_usenglish -lflite_cmulex -lflite"
            ]
        },
        "flite_alsa": {
            "label": "Flite with ALSA",
            "sources": [
                { "type": "pkgConfig", "args": "alsa" },
                "-lasound"
            ]
        },
        "speechd": {
            "label": "Speech Dispatcher",
            "test": {
                "include": "libspeechd.h",
                "main": [
                    "spd_close(spd_open(\"QtConfigTest\", \"main\", 0, SPD_MODE_THREADED));"
                ]
            },
            "sources": [
                { "type": "pkgConfig", "args": "speech-dispatcher" },
                "-lspeechd"
            ]
        }
    },

    "features": {
        "flite": {
            "label": "Flite",
            "condition": "libs.flite",
            "output": [ "privateFeature" ]
        },
        "flite_alsa": {
            "label": "Flite with ALSA",
            "condition": "libs.flite && libs.flite_alsa",
            "output": [ "privateFeature" ]
        },
        "speechd": {
            "label": "Speech Dispatcher",
            "autoDetect": "config.unix",
            "condition": "libs.speechd",
            "output": [ "publicFeature" ]
        }
    },

    "summary": [
        {
            "section": "Qt TextToSpeech",
            "entries": [
                "flite",
                "flite_alsa",
                "speechd"
            ]
        }
    ]
}