Update of /cvsroot/playerstage/code/player/examples/libplayerc++
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26731/examples/libplayerc++
Modified Files:
Tag: release-2-0-patches
.cvsignore
Added Files:
Tag: release-2-0-patches
speech_cpp_client.cc
Log Message:
added missing speech recognition files
Index: .cvsignore
===================================================================
RCS file: /cvsroot/playerstage/code/player/examples/libplayerc++/.cvsignore,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.2
diff -C2 -d -r1.4.2.1 -r1.4.2.2
*** .cvsignore 7 Jun 2006 16:12:37 -0000 1.4.2.1
--- .cvsignore 3 Aug 2006 05:39:13 -0000 1.4.2.2
***************
*** 17,18 ****
--- 17,19 ----
speech
wallfollow
+ speech_cpp_client
--- NEW FILE: speech_cpp_client.cc ---
#include <libplayerc++/playerc++.h>
#include <iostream>
#include <unistd.h>
using namespace PlayerCc;
template<typename T>
void
Print(T t)
{
std::cout << *t << std::endl;
}
int main(int argc, char** argv)
{
try
{
PlayerCc::PlayerClient client("127.0.0.1", 6665);
PlayerCc::SpeechRecognitionProxy srp(&client, 0);
srp.ConnectReadSignal(boost::bind(&Print<SpeechRecognitionProxy*>, &srp));
for(;;){
client.Read();
timespec sleep = {0, 200000000}; // 200 ms
nanosleep(&sleep, NULL);
}
}
catch (PlayerCc::PlayerError e)
{
std::cerr << e << std::endl;
return -1;
}
return 1;
}
-------------------------------------------------------------------------
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