ROS交流群
ROS Group
产品服务
Product Service
开源代码库
Github
官网
Official website
技术交流
Technological exchanges
激光雷达
LIDAR
ROS教程
ROS Tourials
深度学习
Deep Learning
机器视觉
Computer Vision

在小强中使用语音识别和语音合成



  • This post is deleted!


  • This post is deleted!


  • 语音识别,内容过长,比如讲故事,就会报错:可有办法解决
    d4917633-f782-4612-a4df-888c99f10091-image.png



  • @robot0612在小强中使用语音识别和语音合成 中说:

    更新代码到最新版,这个问题已经修复



  • @weijiz 谢谢



  • @weijiz
    您好,运行roslaunch asr_xunfei.launch遇到这个错误该如何解决,感谢您
    File “/home/zhk2/catkin_ws/src/xiaoqiang_tts/src/xiaoqiang_asr_node.py”, line 30, in
    from engines.baidu_tts import BaiduTTS as bd_client
    File “/home/zhk2/catkin_ws/src/xiaoqiang_tts/src/engines/baidu_tts.py”, line 29, in
    from aip import AipSpeech
    File “/usr/local/lib/python2.7/dist-packages/aip/init.py”, line 6, in
    from .ocr import AipOcr
    File “/usr/local/lib/python2.7/dist-packages/aip/ocr.py”, line 12, in
    from .base import AipBase
    File “/usr/local/lib/python2.7/dist-packages/aip/base.py”, line 14, in
    requests.packages.urllib3.disable_warnings()
    AttributeError: ‘module’ object has no attribute ‘packages’
    [xiaoqiang_asr-2] process has died [pid 6074, exit code 1, cmd /home/zhk2/catkin_ws/src/xiaoqiang_tts/src/xiaoqiang_asr_node.py ~audio:=/audio/audio ~text:=/xiaoqiang_tts/text ~audio_status:=/xiaoqiang_audio/audio_status __name:=xiaoqiang_asr __log:=/home/zhk2/.ros/log/dc555cb2-79dc-11e9-a2e6-f4ec3802170a/xiaoqiang_asr-2.log].
    log file: /home/zhk2/.ros/log/dc555cb2-79dc-11e9-a2e6-f4ec3802170a/xiaoqiang_asr-2*.log



  • ubuntu20.04 ros-noetic版本,python3.8,编译xiaoqiang_tts时报错:
    /home/lly/catkin_ws/src/xiaoqiang_tts/src/engines/xunfei/sdk/src/xunfei_tts.cpp:231:8: error: ‘StaticInit’ was not declared in this scope
    231 | if (!StaticInit())
    请问这个该如何解决呢?貌似是python版本的问题



  • @joy checkout到python3版本再编译



  • 你好,请问输入roslaunch xiaoqiang_tts asr_xunfei.launch指令会出现如下问题:ImportError: No module named aip
    [xiaoqiang_tts-2] process has died [pid 5287, exit code 1, cmd /home/cyl/catkin_ws/src/xiaoqiang_tts/src/xiaoqiang_tts_node.py ~audio:=/xiaoqiang_audio/audio __name:=xiaoqiang_tts __log:=/home/cyl/.ros/log/5cf44666-297d-11eb-bcc9-000c29c76404/xiaoqiang_tts-2.log].
    log file: /home/cyl/.ros/log/5cf44666-297d-11eb-bcc9-000c29c76404/xiaoqiang_tts-2*.log



  • @林林林语 你的依赖包没有安装

    sudo pip install baidu-aip