ros语音识别:pocketsphinx_continuous工作正常而gst-pocketsphinx不能识别相同语音的问题。

00135 ps_search_t *00136 ngram_search_init(cmd_ln_t *config,00137 acmod_t *acmod,00138 dict_t *dict)00217 /* Initialize fwdtree, fwdflat, bestpath modules
摘要由CSDN通过智能技术生成
    
     ROS语音识别代码学习:http://cmusphinx.sourceforge.net/wiki/gstreamer

将cmusphinx语音识别的功能和方法掌握之后,需要将其在ros中使用起来,没想到中间也也到了不少问题。
替换hmm参数的方法:
        self.pipeline = gst.parse_launch('gconfaudiosrc ! audioconvert ! audioresample '
                                         + '! vader name=vad auto_threshold=true '
                                         + '! pocketsphinx hmm=tds_sc_8kadapt lm=robot.lm.dmp dict=robot.dic name=asr ! fakesink')

或根据英文文档的方法:
        asr.set_property('lm', '/home/user/mylanguagemodel.lm')
        asr.set_property('dict', '/home/user/mylanguagemodel.dic')

gstreamer版本说明:

Install a GStreamer version from the official repositories:

To make GStreamer useful, install the plugins packages you require.

Current version plugins

  • gst-libav - Libav-based plugin containing many decoders and encoders.
  • gst-plugins-bad - Plugins that need more quality, testing or documentation.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值