机器人编程包中的语音与视觉系统详解
在机器人编程领域,有两个重要的方面值得深入探讨,一是语音交互,二是视觉处理。下面将详细介绍相关的编程包及使用方法。
1. BotSpeak语音编程包
BotSpeak是一个用于语音交互的编程包,以下是一个示例程序 BotSpeak.cpp :
//BotSpeak.cpp
//BotSpeak sample program
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
extern "C"{
#include "BotSpeak.h"
}
int main(int argc, char **argv)
{
char text[121];
// initialize botspeak, if the server isn't running this starts it
bsInit();
// say something so people know we're alive
bsSpeak("Type any sequence of words and I shall say it.");
bsFinishSpeaking();
while(1)
{
printf("Enter text:-");
fgets(text,120,stdin);
printf("saying: %s",text);
bsSpeak(text);
超级会员免费看
订阅专栏 解锁全文
2万+

被折叠的 条评论
为什么被折叠?



