Intl_interface.h
731 字节
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
#ifndef JZTTS_H
#define JZTTS_H
#include <stdio.h>
typedef enum
{
NONE_ERROR=0,
INIT_ERROR=-1,
PLAY_ERROR=1,
NOT_FOUND_ERROR=2
} JZTTS_CODE;
typedef enum{
NOT_SPEC=0,
MALE,
FEMALE
} GENDER;
struct JZTTSVoice
{
const char* name;
const char *languages;
GENDER gender;
};
struct JZTTSParam
{
unsigned char speed; //80-450
unsigned char pitch; //0-100
unsigned char wordGap; //0-100
};
JZTTS_CODE tts_init(const char* dict_path, const char* wav_save_path);
JZTTS_CODE tts_setParam(struct JZTTSParam param);
JZTTS_CODE tts_setVoice(struct JZTTSVoice voice);
struct JZTTSVoice** tts_getVoiceList();
JZTTS_CODE tts_speak(const char* text, const char* wav_file_name);
#endif