50#include <scolMemoryHelper.hpp> 
  118  int char_count = MultiByteToWideChar(CP_ACP, 0, s_text, -1, NULL, 0);
 
  119  wchar_t* w_text = 
new wchar_t[char_count];
 
  120  MultiByteToWideChar(CP_ACP, 0, s_text, -1, w_text, char_count);
 
  128  int wchar_count = WideCharToMultiByte(CP_ACP, 0, w_text, -1, NULL, 0, NULL, NULL);
 
  129  char* s_text = 
new char[wchar_count];
 
  130  WideCharToMultiByte(CP_ACP, 0, w_text, -1, s_text, wchar_count, NULL, NULL);
 
  147  MMechostr(MSKDEBUG, 
"destroySpeechObj\n");
 
  150#ifdef SPEECH_USE_SAPI 
  151  Speech* SpeechObj = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  152  SAFE_DELETE(SpeechObj);
 
  154  MMsetPointer<Speech*>(m, MTOP(speechTab), 0);
 
  156  MMechostr(MSKDEBUG, 
"ObjSpeech destroyed.\n");
 
 
  174  MMechostr(MSKDEBUG, 
"_CRSpeech\n");
 
  177#ifdef SPEECH_USE_SAPI 
  185  if ((MMpushPointer(m, newSpeech) != 0))
 
  187    SAFE_DELETE(newSpeech);
 
  192  k = OBJcreate(m, 
OBJSPEECHSCOL, SCOL_PTR newSpeech, NULL, NULL);
 
  194  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  200  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  219  MMechostr(MSKDEBUG, 
"_DSSpeech\n");
 
  222  int speechTab = MMget(m, 0);
 
  223  if (speechTab == NIL)
 
  225    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  231  MMset(m, 0, ITOM(1));
 
  234  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  253  MMechostr(MSKDEBUG, 
"__SetSpeechText\n");
 
  256  int text = MMpull(m);
 
  257  int speechTab = MMget(m, 0);
 
  258  if (speechTab == NIL)
 
  260    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  265#ifdef SPEECH_USE_SAPI 
  266  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  275    strText = MMstartstr(m, MTOP(text));
 
  278  MMset(m, 0, ITOM(1));
 
  280  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  286  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  305  MMechostr(MSKDEBUG, 
"_SetSpeechVolume\n");
 
  309  int speechTab = MMget(m, 0);
 
  310  if ((speechTab == NIL) || (vol == NIL))
 
  312    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  317#ifdef SPEECH_USE_SAPI 
  318  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  331  MMset(m, 0, ITOM(1));
 
  333  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  339  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  357  MMechostr(MSKDEBUG, 
"_GetSpeechVolume\n");
 
  360  int speechTab = MMget(m, 0);
 
  361  if (speechTab == NIL)
 
  363    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  368#ifdef SPEECH_USE_SAPI 
  369  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  378  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  383  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  403  MMechostr(MSKDEBUG, 
"_SetSpeechRate\n");
 
  406  int rate = MMpull(m);
 
  407  int speechTab = MMget(m, 0);
 
  408  if ((speechTab == NIL) || (rate == NIL))
 
  410    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  415#ifdef SPEECH_USE_SAPI 
  416  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  425  MMset(m, 0, ITOM(1));
 
  427  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  433  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  451  MMechostr(MSKDEBUG, 
"_GetSpeechRate\n");
 
  454  int speechTab = MMget(m, 0);
 
  455  if (speechTab == NIL)
 
  457    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  462#ifdef SPEECH_USE_SAPI 
  463  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  472  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  478  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  497  MMechostr(MSKDEBUG, 
"_PlaySpeech\n");
 
  500  int speechTab = MMget(m, 0);
 
  501  if (speechTab == NIL)
 
  503    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  508#ifdef SPEECH_USE_SAPI 
  509  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  518  MMset(m, 0, ITOM(1));
 
  520  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  526  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  544  MMechostr(MSKDEBUG, 
"_PauseSpeech\n");
 
  547  int speechTab = MMget(m, 0);
 
  548  if (speechTab == NIL)
 
  550    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  555#ifdef SPEECH_USE_SAPI 
  556  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  563  objSpeech->
pause(
true);
 
  565  MMset(m, 0, ITOM(1));
 
  567  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  573  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  591  MMechostr(MSKDEBUG, 
"_PauseSpeech\n");
 
  594  int speechTab = MMget(m, 0);
 
  595  if (speechTab == NIL)
 
  597    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  602#ifdef SPEECH_USE_SAPI 
  603  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  610  objSpeech->
pause(
false);
 
  612  MMset(m, 0, ITOM(1));
 
  614  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  620  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  638  MMechostr(MSKDEBUG, 
"_StopSpeech\n");
 
  641  int speechTab = MMget(m, 0);
 
  642  if (speechTab == NIL)
 
  644    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  649#ifdef SPEECH_USE_SAPI 
  650  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  659  MMset(m, 0, ITOM(1));
 
  661  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  667  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  725  MMechostr(MSKDEBUG, 
"getSpeechStartCb\n");
 
  730#ifdef SPEECH_USE_SAPI 
  735  k = OBJcallreflex(m, 0);
 
 
  755  MMechostr(MSKDEBUG, 
"getSpeechEndCb\n");
 
  760#ifdef SPEECH_USE_SAPI 
  765  k = OBJcallreflex(m, 0);
 
 
  785  MMechostr(MSKDEBUG, 
"_GetSpeechVoices\n");
 
  788  std::list <char *>::iterator c1_Iter;
 
  791  int voiceType = MMpull(m);
 
  792  int speechTab = MMpull(m);
 
  793  if ((speechTab == NIL) || (voiceType == NIL))
 
  795    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  800#ifdef SPEECH_USE_SAPI 
  801  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  808  std::list <char*> lParamSp = objSpeech->
getVoices(MTOI(voiceType));
 
  810  for (c1_Iter = lParamSp.begin(); c1_Iter != lParamSp.end(); c1_Iter++)
 
  812    if (k = Mpushstrbloc(m, (
char*)*c1_Iter))
 
  819  for (c1_Iter = lParamSp.begin(); c1_Iter != lParamSp.end(); c1_Iter++)
 
  821    if (MMpush(m, 2 * 2))
 
  828  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  834  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  903  MMechostr(MSKDEBUG, 
"_SetSpeechVoice\n");
 
  906  int voice = MMpull(m);
 
  907  int speechTab = MMget(m, 0);
 
  908  if (speechTab == NIL)
 
  910    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  915#ifdef SPEECH_USE_SAPI 
  916  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  923  std::string strVoice = MMstartstr(m, MTOP(voice));
 
  924  if (strVoice.empty())
 
  931  MMset(m, 0, ITOM(1));
 
  933  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  939  MMechostr(MSKDEBUG, 
"ok\n");
 
 
  957  MMechostr(MSKDEBUG, 
"_GetSpeechVoice\n");
 
  960  int speechTab = MMget(m, 0);
 
  961  if (speechTab == NIL)
 
  963    MMechostr(MSKDEBUG, 
"ObjSpeech NIL\n");
 
  968#ifdef SPEECH_USE_SAPI 
  969  Speech* objSpeech = MMgetPointer<Speech*>(m, MTOP(speechTab));
 
  985  Mpushstrbloc(m, (
char*)voice.c_str());
 
  987  MMechostr(MSKDEBUG, 
"ObjSpeech Not implemented\n");
 
  993  MMechostr(MSKDEBUG, 
"ok\n");
 
 
 1034  MMechostr(MSKDEBUG, 
"getSpeechWordCb\n");
 
 1039#ifdef SPEECH_USE_SAPI 
 1041  std::string* word = (std::string*)param;
 
 1049  Mpushstrbloc(m, (
char*)word->c_str());
 
 1050  k = OBJcallreflex(m, 1);
 
 
 1092  MMechostr(MSKDEBUG, 
"getSpeechTextCb\n");
 
 1097#ifdef SPEECH_USE_SAPI 
 1099  std::string* sentence = (std::string*)param;
 
 1103    SAFE_DELETE(sentence);
 
 1107  Mpushstrbloc(m, (
char*)sentence->c_str());
 
 1108  k = OBJcallreflex(m, 1);
 
 1109  SAFE_DELETE(sentence);
 
 
 1149  MMechostr(MSKDEBUG, 
"getSpeechPhonemeCb\n");
 
 1153#ifdef SPEECH_USE_SAPI 
 1160  MMpush(m, ITOM((
int)param));
 
 1161  k = OBJcallreflex(m, 1);
 
 
 1200  MMechostr(MSKDEBUG, 
"getSpeechVisemeCb\n");
 
 1205#ifdef SPEECH_USE_SAPI 
 1211  MMpush(m, ITOM((
int)param));
 
 1212  k = OBJcallreflex(m, 1);
 
 
 1238  MMechostr(MSKDEBUG, 
"_CRRecognition\n");
 
 1241  MMechostr(MSKRUNTIME, 
"_CRRecognition is deprecated, use _CRRecognition2 instead.\n");
 
 1244  if (!newRecognition)
 
 1252    SAFE_DELETE(newRecognition);
 
 1257  if ((MMpushPointer(m, newRecognition) != 0))
 
 1259    SAFE_DELETE(newRecognition);
 
 1265  k = OBJcreate(m, 
OBJRECOSCOL, SCOL_PTR newRecognition, 0, 0);
 
 1268  MMechostr(MSKDEBUG, 
"ok\n");
 
 
 1290  MMechostr(MSKDEBUG, 
"_CRRecognition2\n");
 
 1293  int ilang = MMpull(m);
 
 1294  int ibin = MMpull(m);
 
 1296  if ((ibin == NIL) || (ilang == NIL))
 
 1302  std::string binpath = MMstartstr(m, MTOP(ibin));
 
 1303  std::string lang = MMstartstr(m, MTOP(ilang));
 
 1306  if (!newRecognition)
 
 1314    SAFE_DELETE(newRecognition);
 
 1319  if ((MMpushPointer(m, newRecognition) != 0))
 
 1321    SAFE_DELETE(newRecognition);
 
 1327  k = OBJcreate(m, 
OBJRECOSCOL, SCOL_PTR newRecognition, 0, 0);
 
 1330  MMechostr(MSKDEBUG, 
"ok\n");
 
 
 1351  MMechostr(MSKDEBUG, 
"_FillRecognitionBuffer\n");
 
 1355  MMechostr(MSKDEBUG, 
"Not implemented with SAPI!\n");
 
 1359  int iBuff = MMpull(m);
 
 1360  int recognitionTab = MMget(m, 0);
 
 1361  if (recognitionTab == NIL)
 
 1363    MMechostr(MSKDEBUG, 
"ObjRecognition NIL\n");
 
 1370    MMechostr(MSKDEBUG, 
"ObjRecognition buffer is NIL\n");
 
 1375  Recognition* ObjRecognition = MMgetPointer<Recognition*>(m, MTOP(recognitionTab));
 
 1376  if (!ObjRecognition)
 
 1382  iBuff = MTOP(iBuff);
 
 1383  unsigned int msize = MMsizestr(m, iBuff);
 
 1384  const char* data = (
char*)MMstart(m, (iBuff)+1);
 
 1387  MMset(m, 0, ITOM(1));
 
 1390  MMechostr(MSKDEBUG, 
"ok\n");
 
 
 1408  MMechostr(MSKDEBUG, 
"destroyRecognitionObj\n");
 
 1411  Recognition* RecognitionObj = MMgetPointer<Recognition*>(m, MTOP(recognitionTab));
 
 1412  SAFE_DELETE(RecognitionObj);
 
 1414  MMsetPointer<Recognition*>(m, MTOP(recognitionTab), 0);
 
 1415  MMechostr(MSKDEBUG, 
"ObjRecognition destroyed.\n");
 
 
 1432  MMechostr(MSKDEBUG, 
"_DSRecognition\n");
 
 1435  int recognotionTab = MMget(m, 0);
 
 1436  if (recognotionTab == NIL)
 
 1443  MMset(m, 0, ITOM(1));
 
 1446  MMechostr(MSKDEBUG, 
"ok\n");
 
 
 1485  MMechostr(MSKDEBUG, 
"getRecognitionEndCb\n");
 
 1494  k = OBJcallreflex(m, 0);
 
 
 1532  MMechostr(MSKDEBUG, 
"getRecognitionStartCb\n");
 
 1541  k = OBJcallreflex(m, 0);
 
 
 1580  MMechostr(MSKDEBUG, 
"getRecognitionTextCb\n");
 
 1590    SAFE_DELETE(cbdata);
 
 1594  Mpushstrbloc(m, (
char*)data.c_str());
 
 1595  k = OBJcallreflex(m, 1);
 
 1596  SAFE_DELETE(cbdata);
 
 
 1635  MMechostr(MSKDEBUG, 
"getRecognitionTextsAltCb\n");
 
 1645    SAFE_DELETE(cbdata);
 
 1650  std::list<pTextRec*>::iterator iText = lParamText.begin();
 
 1651  while (iText != lParamText.end())
 
 1655    if (Mpushstrbloc(m, (
char*)val->
altText.c_str()))
 
 1657      SAFE_DELETE(cbdata);
 
 1662      SAFE_DELETE(cbdata);
 
 1667      SAFE_DELETE(cbdata);
 
 1677    SAFE_DELETE(cbdata);
 
 1681  for (
int i = 0; i < nb; i++)
 
 1683    if (MMpush(m, 2 * 2))
 
 1685      SAFE_DELETE(cbdata);
 
 1689    if ((k = MBdeftab(m)))
 
 1691      SAFE_DELETE(cbdata);
 
 1696  k = OBJcallreflex(m, 1);
 
 1697  SAFE_DELETE(cbdata);
 
 
 1769  MMechostr(MSKDEBUG, 
"_SetRecogntionVolume\n");
 
 1772  int vol = MMpull(m);
 
 1773  int recognitionTab = MMget(m, 0);
 
 1774  if (recognitionTab == NIL)
 
 1776    MMechostr(MSKDEBUG, 
"ObjRecognition NIL\n");
 
 1781  Recognition* ObjRecognition = MMgetPointer<Recognition*>(m, MTOP(recognitionTab));
 
 1782  if (!ObjRecognition)
 
 1789  if ((vol != NIL) && (MTOI(vol) > 0))
 
 1793  MMset(m, 0, ITOM(1));
 
 1796  MMechostr(MSKDEBUG, 
"ok\n");
 
 
 1814  MMechostr(MSKDEBUG, 
"_GetRecogntionVolume\n");
 
 1817  int recognitionTab = MMget(m, 0);
 
 1818  if (recognitionTab == NIL)
 
 1820    MMechostr(MSKDEBUG, 
"ObjRecognition NIL\n");
 
 1825  Recognition* ObjRecognition = MMgetPointer<Recognition*>(m, MTOP(recognitionTab));
 
 1826  if (!ObjRecognition)
 
 1832  MMset(m, 0, ITOM(ObjRecognition->
getVolume()));
 
 1835  MMechostr(MSKDEBUG, 
"ok\n");
 
 
 1856  MMechostr(MSKDEBUG, 
"_AddRecognitionWord\n");
 
 1859  int textWord = MMpull(m);
 
 1860  int textRule = MMpull(m);
 
 1862  if ((textWord == NIL) || (textRule == NIL))
 
 1868  int recognitionTab = MMget(m, 0);
 
 1869  if (recognitionTab == NIL)
 
 1871    MMechostr(MSKDEBUG, 
"ObjRecognition NIL\n");
 
 1876  Recognition* ObjRecognition = MMgetPointer<Recognition*>(m, MTOP(recognitionTab));
 
 1877  if (!ObjRecognition)
 
 1883  std::string strRule = (
char*)MMstartstr(m, MTOP(textRule));
 
 1884  std::string strWord = (
char*)MMstartstr(m, MTOP(textWord));
 
 1886  if (strRule.empty() || strWord.empty())
 
 1892  ObjRecognition->
AddWord(strRule, strWord);
 
 1893  MMset(m, 0, ITOM(1));
 
 1896  MMechostr(MSKDEBUG, 
"ok\n");
 
 
 1906  { 
"ObjSpeech",                TYPTYPE,        NULL,                                                                                                                                                                                                                                                                                     NULL                         },
 
 1907  { 
"ObjRecognition",           TYPTYPE,        NULL,                                                                                                                                                                                                                                                                                     NULL                   },
 
 1908  { 
"_CRSpeech",                1,        
"fun [Chn] ObjSpeech",                                                            
_CRSpeech              },
 
 1909  { 
"_DSSpeech",                1,        
"fun [ObjSpeech] I",                                                              
_DSSpeech              },
 
 1915  { 
"_PlaySpeech",              1,        
"fun [ObjSpeech] I",                                                              
_PlaySpeech            },
 
 1916  { 
"_PauseSpeech",             1,        
"fun [ObjSpeech] I",                                                              
_PauseSpeech           },
 
 1918  { 
"_StopSpeech",              1,        
"fun [ObjSpeech] I",                                                              
_StopSpeech            },
 
 1919  { 
"_CBSpeechStart",           3,        
"fun [ObjSpeech fun [ObjSpeech u0] u1 u0] ObjSpeech",                             
_CBSpeechStart         },
 
 1920  { 
"_CBSpeechEnd",             3,        
"fun [ObjSpeech fun [ObjSpeech u0] u1 u0] ObjSpeech",                             
_CBSpeechEnd           },
 
 1924  { 
"_CBSpeechWord",            3,        
"fun [ObjSpeech fun [ObjSpeech u0 S] u1 u0] ObjSpeech",                           
_CBSpeechWord          },
 
 1925  { 
"_CBSpeechText",            3,        
"fun [ObjSpeech fun [ObjSpeech u0 S] u1 u0] ObjSpeech",                           
_CBSpeechText          },
 
 1926  { 
"_CBSpeechPhoneme",         3,        
"fun [ObjSpeech fun [ObjSpeech u0 I] u1 u0] ObjSpeech",                           
_CBSpeechPhoneme       },
 
 1927  { 
"_CBSpeechViseme",          3,        
"fun [ObjSpeech fun [ObjSpeech u0 I] u1 u0] ObjSpeech",                           
_CBSpeechViseme        },
 
 1929  { 
"_CRRecognition",           1,        
"fun [Chn] ObjRecognition",                                                       
_CRRecognition         },
 
 1930  { 
"_CRRecognition2",          3,        
"fun [Chn P S] ObjRecognition",                                                   
_CRRecognition2        },
 
 1931  { 
"_DSRecognition",           1,        
"fun [ObjRecognition] I",                                                         
_DSRecognition         },
 
 1933  { 
"_CBRecognitionEnd",        3,        
"fun [ObjRecognition fun [ObjRecognition u0] u1 u0] ObjRecognition",              
_CBRecognitionEnd      },
 
 1934  { 
"_CBRecognitionText",       3,        
"fun [ObjRecognition fun [ObjRecognition u0 S] u1 u0] ObjRecognition",            
_CBRecognitionText     },
 
 1935  { 
"_CBRecognitionTextsAlt",   3,        
"fun [ObjRecognition fun [ObjRecognition u0 [[S F] r1]] u1 u0] ObjRecognition",   
_CBRecognitionTextsAlt },
 
 1936  { 
"_CBRecognitionStart",      3,        
"fun [ObjRecognition fun [ObjRecognition u0] u1 u0] ObjRecognition",              
_CBRecognitionStart    },
 
 
 1992#ifdef SPEECH_USE_SAPI 
 1993  if (FAILED(::CoInitialize(NULL)))
 
 
 2007extern "C" SCOL_EXPORT 
int ScolSpeechLoadPlugin(mmachine m, cbmachine w)
 
 
 2023extern "C" SCOL_EXPORT 
int ScolSpeechUnloadPlugin()
 
 2026#ifdef SPEECH_USE_SAPI 
 
Management of the recognition class .
 
void setVolume(int volume)
Set The volume for the recognition.
 
void AddWord(std::string s_Rule, std::string s_Word)
Add word to recognition.
 
void fillAudioBuffer(const char *data, size_t lenght)
 
bool initializeObjects()
Init Recognition Objects.
 
int getVolume()
Get The volume from recognition.
 
void SetSpeechVoice(std::string voice)
To set the speech voice.
 
void stop()
To stop the speech instance.
 
std::string getSpeechVoice()
To get the speech voice.
 
std::list< char * > getVoices(int voiceType)
To get the speech voices.
 
int getVolumeSpeech()
To get the speech volume.
 
void SetSpeechText(std::string text)
To set the speech text.
 
void setRateSpeech(int rateSpeech)
To set the speech rate.
 
void setVolumeSpeech(int volumeSpeech)
To set the speech volume.
 
int getRateSpeech()
To get the speech rate.
 
void play()
To play the speech instance.
 
void pause(bool state)
To pause/resume the speech instance.
 
std::list< pTextRec * > getlParamText()
 
std::string getParamChar()
 
int _DSRecognition(mmachine m)
n_DSRecognition : destroy recognition instance
 
int _CRRecognition(mmachine m)
_CRRecognition : create recognition instance
 
int _CRRecognition2(mmachine m)
_CRRecognition2 : create recognition instance
 
int _CBRecognitionEnd(mmachine m)
_CBRecognitionEnd : set callback end of recognition
 
int _GetRecogntionVolume(mmachine m)
_GetRecogntionVolume : Get recognition volume
 
int _CBRecognitionTextsAlt(mmachine m)
_CBRecognitionTextsAlt : Set callback on recognition texts alternates
 
int _FillRecognitionBuffer(mmachine m)
_FillRecognitionBuffer : fill recognition audio buffer
 
int _AddRecognitionWord(mmachine m)
_AddRecognitionWord : add recogntion word to dictionary
 
int _CBRecognitionText(mmachine m)
_CBRecognitionText : Set callback on recognition text
 
int _SetRecogntionVolume(mmachine m)
_CBRecognitionWords : Set callback on recognition words
 
int _CBRecognitionStart(mmachine m)
_CBRecognitionStart : set callback start of recognition
 
int _SetSpeechVolume(mmachine m)
_SetSpeechVolume : Set speech volume
 
int _GetSpeechVoice(mmachine m)
_GetSpeechVoice : get speech voice
 
int _ResumeSpeech(mmachine m)
_ResumeSpeech : resume speech
 
int _CBSpeechEnd(mmachine m)
n_CBSpeechEnd : set callback end of speech
 
int _CRSpeech(mmachine m)
_CRSpeech : create speech instance
 
int _CBSpeechViseme(mmachine m)
_CBSpeechViseme : set callback on speech viseme
 
int _SetSpeechRate(mmachine m)
_SetSpeechRate : set speech rate
 
int _SetSpeechText(mmachine m)
_SetSpeechText : Set speech Text
 
int _StopSpeech(mmachine m)
_StopSpeech : Stop speech
 
int _CBSpeechWord(mmachine m)
_CBSpeechWord : Set callback on speech word
 
int _PlaySpeech(mmachine m)
_PlaySpeech : play speech
 
int _CBSpeechText(mmachine m)
_CBSpeechText : Set callback on speech text
 
int _SetSpeechVoice(mmachine m)
_SetSpeechVoice : set speech voice
 
int _GetSpeechVolume(mmachine m)
_GetSpeechVolume : Get speech volume
 
int _DSSpeech(mmachine m)
_DSSpeech : destroy speech instance
 
int _GetSpeechVoices(mmachine m)
_GetSpeechVoices : get speech voices
 
int _CBSpeechStart(mmachine m)
n_CBSpeechStart : set callback 'start of speech'
 
int _CBSpeechPhoneme(mmachine m)
_CBSpeechPhoneme : set callback on speech phoneme
 
int _PauseSpeech(mmachine m)
_PauseSpeech : pause speech
 
int _GetSpeechRate(mmachine m)
_GetSpeechRate : get speech rate
 
int getSpeechStartCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the speech start event callback.
 
int getSpeechTextCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the speech text event callback.
 
int destroySpeechObj(mmachine m, SCOL_PTR_TYPE handsys, int speechTab)
Utils Conversions.
 
int LoadSpeech(mmachine m)
Load the packages in Scol virtual machine.
 
SCOL_EXPORT int ScolLoadPlugin(mmachine m, cbmachine w)
Starting point of the DLL.
 
int getRecognitionEndCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the recognition end event callback.
 
int SCOL_RECO_TEXTS_ALT_CB
 
int OBJSPEECHSCOL
global object declaration
 
int getRecognitionTextsAltCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the recognition alternates text event callback.
 
NativeDefinition natSpeech[]
 
int getSpeechWordCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the speech word event callback.
 
int SCOL_SPEECH_VISEME_CB
 
cbmachine ww
Main include.
 
int getRecognitionTextCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the recognition text event callback.
 
int SCOL_SPEECH_START_CB
global Callback declaration for text to speech
 
SCOL_EXPORT int ScolUnloadPlugin()
Ending point of the DLL.
 
int getSpeechEndCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the speech end event callback.
 
int destroyRecognitionObj(mmachine m, SCOL_PTR_TYPE handsys, int recognitionTab)
function to destroy an OBJRECOSCOL in scol
 
int RECOGNITION_TEXTS_ALT_CB
 
int getSpeechVisemeCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the speech viseme event callback.
 
int getRecognitionStartCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the recognition start event callback.
 
int SCOL_SPEECH_PHONEME_CB
 
int SCOL_RECO_END_CB
global Callback declaration for recognition
 
int getSpeechPhonemeCb(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the speech phoneme event callback.
 
wchar_t * convertCharToLPCWSTR(char *s_text)
Utils Conversions.
 
char * convertWcharToChar(wchar_t *w_text)