/
speech.h
37 lines (31 loc) · 1.11 KB
/
speech.h
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
/*
* audio.h
*
* ============================================================================
* Copyright (c) Texas Instruments Inc 2009
*
* Use of this software is controlled by the terms and conditions found in the
* license agreement under which this software has been supplied or provided.
* ============================================================================
*/
#ifndef _SPEECH_H
#define _SPEECH_H
#include <xdc/std.h>
#include <ti/sdo/dmai/Pause.h>
#include <ti/sdo/dmai/Sound.h>
#include <ti/sdo/dmai/Rendezvous.h>
/* Environment passed when creating the thread */
typedef struct SpeechEnv {
Rendezvous_Handle hRendezvousInit;
Rendezvous_Handle hRendezvousCleanup;
Pause_Handle hPauseProcess;
Sound_Input soundInput;
Char *speechFile;
Char *engineName;
Char *speechEncoder;
Void *params;
Void *dynParams;
} SpeechEnv;
/* Thread function prototype */
extern Void *speechThrFxn(Void *arg);
#endif /* _SPEECH_H */