Project

General

Profile

Template
pluginSpeechPrerequisites.h
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OpenSpace3D
4For the latest info, see http://www.openspace3d.com
5
6Copyright (c) 2012 I-maginer
7
8This program is free software; you can redistribute it and/or modify it under
9the terms of the GNU Lesser General Public License as published by the Free Software
10Foundation; either version 2 of the License, or (at your option) any later
11version.
12
13This program is distributed in the hope that it will be useful, but WITHOUT
14ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17You should have received a copy of the GNU Lesser General Public License along with
18this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20http://www.gnu.org/copyleft/lesser.txt
21
22-----------------------------------------------------------------------------
23*/
24
25
32#ifndef __PLUGIN_H__
33#define __PLUGIN_H__
34
36#include <scolPlugin.h>
37#include <iostream>
38#include <list>
39#include <vector>
40
42extern cbmachine ww;
43
45extern int OBJSPEECHSCOL;
46extern int OBJRECOSCOL;
47
49extern int SCOL_SPEECH_START_CB;
50extern int SPEECH_START_CB;
51
52extern int SCOL_SPEECH_END_CB;
53extern int SPEECH_END_CB;
54
55extern int SCOL_SPEECH_WORD_CB;
56extern int SPEECH_WORD_CB;
57
58extern int SCOL_SPEECH_TEXT_CB;
59extern int SPEECH_TEXT_CB;
60
61extern int SCOL_SPEECH_PHONEME_CB;
62extern int SPEECH_PHONEME_CB;
63
64extern int SCOL_SPEECH_VISEME_CB;
65extern int SPEECH_VISEME_CB;
66
68extern int SCOL_RECO_END_CB;
69extern int RECOGNITION_END_CB;
70
71extern int SCOL_RECO_START_CB;
72extern int RECOGNITION_START_CB;
73
74extern int SCOL_RECO_TEXT_CB;
75extern int RECOGNITION_TEXT_CB;
76
77extern int SCOL_RECO_TEXTS_ALT_CB;
79
80extern int SCOL_RECO_WORDS_CB;
81extern int RECOGNITION_WORDS_CB;
82
84wchar_t* convertCharToLPCWSTR(char * s_text);
85char* convertWcharToChar(wchar_t * w_text);
86
87
92{
93 std::string altText;
95};
96
101{
102public:
103protected:
104private:
105 std::string paramStr;
106 std::list<pTextRec*> lParamText;
107
108public :
112 {
113 }
114
117 cbData(std::string param1)
118 {
119 paramStr = param1;
120 }
121
124 cbData(std::list<pTextRec*> lParamText1)
125 {
126 lParamText = lParamText1;
127 }
128
131 void setParamChar(std::string param1)
132 {
133 paramStr = param1;
134 }
135
138 std::string getParamChar()
139 {
140 return paramStr;
141 }
142
145 std::list<pTextRec*> getlParamText()
146 {
147 return lParamText;
148 }
149
153 {
154 std::list<pTextRec*>::iterator iText = lParamText.begin();
155 while (iText != lParamText.end())
156 {
157 pTextRec* val = (*iText);
158 delete val;
159 iText++;
160 }
161 lParamText.clear();
162 }
163protected:
164private:
165};
166
167#endif
std::list< pTextRec * > getlParamText()
void setParamChar(std::string param1)
cbData(std::string param1)
cbData(std::list< pTextRec * > lParamText1)
std::string getParamChar()
int SCOL_RECO_TEXT_CB
Definition plugin.cpp:101
wchar_t * convertCharToLPCWSTR(char *s_text)
Utils Conversions.
int SPEECH_PHONEME_CB
Definition plugin.cpp:91
char * convertWcharToChar(wchar_t *w_text)
int SCOL_RECO_WORDS_CB
Definition plugin.cpp:110
int SCOL_SPEECH_TEXT_CB
Definition plugin.cpp:87
int SCOL_RECO_TEXTS_ALT_CB
Definition plugin.cpp:107
int RECOGNITION_TEXT_CB
Definition plugin.cpp:102
int OBJSPEECHSCOL
global object declaration
Definition plugin.cpp:73
int SCOL_SPEECH_END_CB
Definition plugin.cpp:81
int RECOGNITION_START_CB
Definition plugin.cpp:105
int SCOL_SPEECH_VISEME_CB
Definition plugin.cpp:93
cbmachine ww
utils libraries for Speech
Definition plugin.cpp:68
int SCOL_SPEECH_START_CB
global Callback declaration for text to speech
Definition plugin.cpp:78
int OBJRECOSCOL
Definition plugin.cpp:74
int SCOL_SPEECH_WORD_CB
Definition plugin.cpp:84
int RECOGNITION_TEXTS_ALT_CB
Definition plugin.cpp:108
int SPEECH_WORD_CB
Definition plugin.cpp:85
int RECOGNITION_WORDS_CB
Definition plugin.cpp:111
int SPEECH_VISEME_CB
Definition plugin.cpp:94
int SCOL_SPEECH_PHONEME_CB
Definition plugin.cpp:90
int SCOL_RECO_END_CB
global Callback declaration for recognition
Definition plugin.cpp:98
int RECOGNITION_END_CB
Definition plugin.cpp:99
int SPEECH_END_CB
Definition plugin.cpp:82
int SCOL_RECO_START_CB
Definition plugin.cpp:104
int SPEECH_START_CB
Definition plugin.cpp:79
int SPEECH_TEXT_CB
Definition plugin.cpp:88