1234567891011121314151617181920212223242526272829303132 |
- #ifndef __TTS_TASK_H
- #define __TTS_TASK_H
- //-------------------------------------------------------------------------------
- #include <rtl.h>
-
- #define TTS_TASK_STK_SIZE 16
-
- #define TTS_VOICE_SIZE 100
- typedef enum
- {
- ENCODE_ASCII=0,
- ENCODE_GBK,
- ENCODE_UNICODEBigend,
- ENCODE_UNICODE,
- ENCODE_UTF8=6
- }ENCODE_DEF;
- typedef struct
- {
- unsigned char Update;
- ENCODE_DEF Languange;
- char voice[TTS_VOICE_SIZE];
- char *voiceStatic;
- }__attribute__((packed)) TTS_DEF;
-
- __task void TTSTask(void);
-
- void MeSpeak(ENCODE_DEF type, char *voice, unsigned char useLocalOrNot);
- extern OS_TID idTTSTask;
- extern U64 stkTTSTask[TTS_TASK_STK_SIZE];
- #endif
|