Update of /cvsroot/playerstage/code/player/server/drivers/speech/recognition
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28571/server/drivers/speech/recognition
Modified Files:
Tag: release-2-0-patches
sphinx2.cc
Log Message:
applied patch 1527657 to fix sphinx2 and speech recognition proxies
Index: sphinx2.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/speech/recognition/sphinx2.cc,v
retrieving revision 1.8.2.2
retrieving revision 1.8.2.3
diff -C2 -d -r1.8.2.2 -r1.8.2.3
*** sphinx2.cc 20 Apr 2006 01:30:46 -0000 1.8.2.2
--- sphinx2.cc 2 Aug 2006 17:36:41 -0000 1.8.2.3
***************
*** 204,208 ****
"/usr/local/share/sphinx2/model/lm/turtle/turtle.lm");
this->dictFile = cf->ReadFilename( section, "dict_file",
! "/usr/local/share/sphinx2/model/lm/turtle/turtle.dict");
}
--- 204,208 ----
"/usr/local/share/sphinx2/model/lm/turtle/turtle.lm");
this->dictFile = cf->ReadFilename( section, "dict_file",
! "/usr/local/share/sphinx2/model/lm/turtle/turtle.dic");
}
***************
*** 213,221 ****
int Sphinx2::Setup()
{
! int argc = 72;
// Here are all the available options. Maybe at some point this will
// become config file options...
! const char *argv[72] = {
"-hmmdir", this->hmmDir,
"-hmmdirlist", this->hmmDir,
--- 213,221 ----
int Sphinx2::Setup()
{
! int argc = 70;
// Here are all the available options. Maybe at some point this will
// become config file options...
! const char *argv[70] = {
"-hmmdir", this->hmmDir,
"-hmmdirlist", this->hmmDir,
***************
*** 252,256 ****
"-bestpath", "TRUE",
"-8bsen", "TRUE",
! "-maxwpf", "1"
};
--- 252,256 ----
"-bestpath", "TRUE",
"-8bsen", "TRUE",
! "-maxwpf", "1" // < max word repeat by sentence.
};
***************
*** 403,412 ****
//continue;
}
!
strncpy(data.text, hypothesis, PLAYER_SPEECH_RECOGNITION_TEXT_LEN);
! printf ("%d: %s\n", frames, data.text); fflush (stdout);
- // PutData( (uint8_t*)&data, sizeof(data), &time);
Publish(device_addr,NULL,
PLAYER_MSGTYPE_DATA,PLAYER_SPEECH_RECOGNITION_DATA_STRING,
--- 403,415 ----
//continue;
}
!
strncpy(data.text, hypothesis, PLAYER_SPEECH_RECOGNITION_TEXT_LEN);
! // printf ("%d: %s\n", frames, data.text); fflush (stdout);
! data.text[strlen(data.text)]='\0';
! data.text_count = strlen(data.text)+1;
!
! printf("data.text[%d] = %s\n",data.text_count,data.text);
Publish(device_addr,NULL,
PLAYER_MSGTYPE_DATA,PLAYER_SPEECH_RECOGNITION_DATA_STRING,
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit