Megaphone_TTS.h
1.3 KB
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
/**
********************************************************************
* @file Megaphone_TTS.h
* Megaphone_TTS的头文件
*
*********************************************************************
*/
/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/
#ifndef MEGAPHONE_TTS_H
#define MEGAPHONE_TTS_H
/* Includes ------------------------------------------------------------------*/
#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Exported constants --------------------------------------------------------*/
/* 常亮定义*/
struct t_Megaphone_tts_param
{
int tts_tone; //喊话器音色
int tts_volume; //tts原音量
int tts_speed; //喊话速度
int tts_add; //追加音色
int ReplyFlag; //回复标志位
unsigned char ttsdata[4000]; //tts数据
};
/* Exported types ------------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
int TTS_Get_tone();
int TTS_Get_speed();
int TTS_Get_TTS_AppendTone();
int TTS_Get_NormalVolume();
int TTS_Set_NormalVolume(int value);
int TTS_Set_tone(int value);
int TTS_Set_speed(int value);
int TTS_Set_TTS_AppendTone(int value);
T_JZsdkReturnCode Megaphone_TTS_Init();
#ifdef __cplusplus
}
#endif
#endif