社区
C++ 语言
帖子详情
speech语音识别
green369258
2007-08-20 03:51:36
我想问问关于vs 2005下怎么用c++写speech语音识别的东西呀
我配上include 和lib路径怎么会编译失败,跪求,小弟新来的,分数不多,
在这都送上了,谢谢了!!!
...全文
942
21
打赏
收藏
speech语音识别
我想问问关于vs 2005下怎么用c++写speech语音识别的东西呀 我配上include 和lib路径怎么会编译失败,跪求,小弟新来的,分数不多, 在这都送上了,谢谢了!!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
21 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
kongan90
2011-04-14
打赏
举报
回复
借楼主宝地问下怎么语音识别入门啊!怎么用C++实现滤波,预处理?
tempstack
2007-10-17
打赏
举报
回复
hi
please refer to INITPORT INC. 音港公司 www.initport.com
专注在语音识别领域(ASR),目前为国内主流手机公司以及手机设计公司
提供嵌入式的语音识别解决方案.可以在目前所有的主流手机平台
(从Arm7到Arm9)实现语音识别功能.
同时也为其他嵌入设备/桌面软件/呼叫中心服务器 提供语音识别解决方案
希望对你的项目有所帮助
Mailto: info@initport.com
tianya8318
2007-08-25
打赏
举报
回复
你在vc6.0下写个dll,然后在vs2005中调用不就行了吗!
真傻!
快给分吧!
green369258
2007-08-24
打赏
举报
回复
我配上include 和lib的搜索路径了,vs 2005已经能搜到这个路径了。
冷月清晖
2007-08-24
打赏
举报
回复
coldwindtang(风) ( ) 信誉:100 2007-8-20 11:06:52 得分: 0
需要把include的文件和lib文件拷贝到vs2005的系统文件夹下,这样在链接的时候才能找到.
----------------
你试了楼上这位的方法吗?
green369258
2007-08-24
打赏
举报
回复
不行呀,还有编译错误。
如下
1>------ 已启动生成: 项目: hello, 配置: Debug Win32 ------
1>正在编译...
1>mainfile.cpp
1>c:\program files\microsoft speech sdk 5.1\include\spdebug.h(274) : warning C4996: “wcscpy”被声明为否决的
1> d:\microsoft visual studio 8\vc\include\string.h(250) : 参见“wcscpy”的声明
1> 消息:“This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.”
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(90) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(151) : warning C4267: “return”: 从“size_t”转换到“unsigned int”,可能丢失数据
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(170) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(227) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(228) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(335) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(770) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(770) : warning C4267: “初始化”: 从“size_t”转换到“const int”,可能丢失数据
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(773) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(1420) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(2374) : error C2065: “psz”: 未声明的标识符
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(2545) : warning C4267: “+=”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(2560) : error C2440: “初始化”: 无法从“CSpDynamicString”转换为“SPPHONEID *”
1> 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符
1>c:\documents and settings\wang\桌面\hello\hello\mainfile.cpp(2634) : error C2664: “wcslen”: 不能将参数 1 从“SPPHONEID *”转换为“const wchar_t *”
1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
1>生成日志保存在“file://c:\Documents and Settings\wang\桌面\hello\hello\Debug\BuildLog.htm”
1>hello - 5 个错误,10 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
lidongri
2007-08-24
打赏
举报
回复
不是代码的问题
而是编译器的问题
2005配置speech好像不太一样
你给初的错误信息都是转换的问题
你尝试自己用2005创建一个工程试一下
比如:建立空工程,然后include所有与speech有关的头,
然后编译一下看看到底是哪里的问题
Dlanguage
2007-08-23
打赏
举报
回复
在sphelper.h里面include<windows.h>试试
冷月清晖
2007-08-23
打赏
举报
回复
贴部分出错的代码出来看看
冷月清晖
2007-08-23
打赏
举报
回复
你是把已经在低版本的vc里的代码升级到2005的?
green369258
2007-08-23
打赏
举报
回复
没人顶,自己定一下,帮帮小弟呀!
谢谢了,各位。
green369258
2007-08-23
打赏
举报
回复
用微软的例子就出错,自己的代码还没写,帮帮我!
green369258
2007-08-21
打赏
举报
回复
正在编译...
1>coffee.cpp
1>c:\program files\microsoft speech sdk 5.1\include\spdebug.h(274) : warning C4996: “wcscpy”被声明为否决的
1> d:\microsoft visual studio 8\vc\include\string.h(250) : 参见“wcscpy”的声明
1> 消息:“This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.”
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(89) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(150) : warning C4267: “return”: 从“size_t”转换到“unsigned int”,可能丢失数据
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(169) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(226) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(227) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(334) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(769) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(769) : warning C4267: “初始化”: 从“size_t”转换到“const int”,可能丢失数据
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(772) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(1419) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(2373) : error C2065: “psz”: 未声明的标识符
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(2544) : warning C4267: “+=”: 从“size_t”转换到“ULONG”,可能丢失数据
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(2559) : error C2440: “初始化”: 无法从“CSpDynamicString”转换为“SPPHONEID *”
1> 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符
1>c:\program files\microsoft speech sdk 5.1\include\sphelper.h(2633) : error C2664: “wcslen”: 不能将参数 1 从“SPPHONEID *”转换为“const wchar_t *”
1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
1>c:\documents and settings\wang\桌面\speech\speech\coffee.cpp(16) : fatal error C1083: 无法打开包括文件:“cofgram.h”: No such file or directory
1>display.cpp
1>c:\documents and settings\wang\桌面\speech\speech\display.cpp(129) : warning C4996: “wcscpy”被声明为否决的
1> d:\microsoft visual studio 8\vc\include\string.h(250) : 参见“wcscpy”的声明
1> 消息:“This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.”
1>stdafx.cpp
1>正在生成代码...
1>生成日志保存在“file://c:\Documents and Settings\wang\桌面\speech\speech\Debug\BuildLog.htm”
1>speech - 6 个错误,11 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
这是speech api里的第一个Tutorial,配上include 和 lib路径后编译第一个例子出现这样的错误
各位帮帮忙!谢谢!
冷月清晖
2007-08-21
打赏
举报
回复
sphelper.h 里面什么东东,知道的说下
冷月清晖
2007-08-21
打赏
举报
回复
凌晨发的错误信息啊,冲这点 大家快来帮忙,看看
green369258
2007-08-21
打赏
举报
回复
http://www.microsoft.com/downloads/details.aspx?FamilyID=5e86ec97-40a7-453f-b0ee-6583171b4530&DisplayLang=en
微软网站提供下载
green369258
2007-08-21
打赏
举报
回复
谢谢上面的大哥了,sphelper.h是微软的speech api 自带的帮助头文件,用它可以很快的写出自己的语音识别程序。
唐巧
2007-08-20
打赏
举报
回复
需要把include的文件和lib文件拷贝到vs2005的系统文件夹下,这样在链接的时候才能找到.
冷月清晖
2007-08-20
打赏
举报
回复
把具体编译错误信息贴出来看看
星羽
2007-08-20
打赏
举报
回复
看看你的出错信息
加载更多回复(1)
speech
sdk
语音识别
程序mfc程序
基于
speech
sdk写的
语音识别
程序使用mfc实现能做到在线
语音识别
与离线
语音识别
,语音文件能从内存生成也能从话筒输入
PaddlePaddle-Deep
Speech
中文
语音识别
模型(thchs_30数据集训练的)
PaddlePaddle-Deep
Speech
中文
语音识别
模型(thchs_30数据集训练的) 项目地址:https://github.com/yeyupiaoling/PaddlePaddle-Deep
Speech
/tree/release/1.0
基于SpringBoot+Python多语言文档扫描处理和OCR识别系
在机器学习大热的前景之下,计算机视觉与自然语言处理(Natural Language Process, NLP)及
语音识别
(
Speech
Recognition)并列为机器学习方向的三大热点方向。 在如今互联网时代,人工智能发展迅速,计算机视觉...
PaddlePaddle-Deep
Speech
中文
语音识别
模型(AISHELL数据集训练的)
PaddlePaddle-Deep
Speech
中文
语音识别
模型(AISHELL数据集训练的) 项目地址:https://github.com/yeyupiaoling/PaddlePaddle-Deep
Speech
/tree/release/1.0
用Microsoft
Speech
SDK实现
语音识别
和语音合成.
用Microsoft
Speech
SDK实现
语音识别
和语音合成,用Microsoft
Speech
SDK实现
语音识别
和语音合成.
C++ 语言
64,687
社区成员
250,496
社区内容
发帖
与我相关
我的任务
C++ 语言
C++ 语言相关问题讨论,技术干货分享,前沿动态等
复制链接
扫一扫
分享
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
请不要发布与C++技术无关的贴子
请不要发布与技术无关的招聘、广告的帖子
请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下
试试用AI创作助手写篇文章吧
+ 用AI写文章