C# 语句 转 vb.net(关于事件)

fxsee4 2011-10-08 01:39:34
请帮我转一下以下几个语句到 vb :

//Create a recognition context
speechRecoContext = (SpInProcRecoContext)recognizer.CreateRecoContext();

//Wire up events to handlers
speechRecoContext.Hypothesis += new _ISpeechRecoContextEvents_HypothesisEventHandler(OnHypothesis);
speechRecoContext.Recognition += new _ISpeechRecoContextEvents_RecognitionEventHandler(OnRecognition);
speechRecoContext.EndStream += new _ISpeechRecoContextEvents_EndStreamEventHandler(OnAudioStreamEnd);

...全文
49 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuyilin888 2011-10-08
  • 打赏
  • 举报
回复

'Create a recognition context
speechRecoContext = CType(recognizer.CreateRecoContext(), SpInProcRecoContext)

'Wire up events to handlers
AddHandler speechRecoContext.Hypothesis, AddressOf OnHypothesis
AddHandler speechRecoContext.Recognition, AddressOf OnRecognition
AddHandler speechRecoContext.EndStream, AddressOf OnAudioStreamEnd

16,555

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧