Giter Site home page Giter Site logo

kdxf-voice's Introduction

kdxf-voice

博智创新工作室

inksci

inksci inksci inksci

1. 配置依赖

1.1 使用 conda 创建环境

conda create -n ROS-v2 python=3.6
source activate ROS-v2
pip install -U rosdep rosinstall_generator wstool rosinstall six vcstools
pip install bottle_websocket

1.2 测试系统的录音功能

rec -c 1 -U -r 8000 -2 radio.wav trim 0 00:30

将会进行 30 秒的录音:

In:0.00% 00:00:30.72 [00:00:00.00] Out:240k [ | ] Clip:0
Done.

2. 部署项目

2.1 将 github 代码部署到 ~/kdxf-voice/ 文件夹下

则 ros 工作路径为: ~/kdxf-voice/ros_work

2.2 运行 ~/kdxf-voice/python_sh 文件夹下的 sh 脚本

inksci

  • roscore.sh

运行 roscore,启动 ros 系统。

  • speech2text.sh

kdxf 语音识别模块。运行 kdxf 的 c 程序,将来自麦克风的语音转化成文本。

  • speech2text_server.sh

python 话题发布模块。将来自 kdxf 语音识别模块 提交的文本发布到 ros 话题中。

  • text2speech_client.sh

python 话题监听模块。将从 ros 中监听到的文本发送给 kdxf 语音合成模块

  • text2speech.sh

kdxf 语音合成模块。运行 kdxf 的 c 程序,将文本合成语音并播放。

  • chat_robot_v2.sh

机器人聊天系统,接收 ros 中发布的文本消息,得到相应的回答并发送到 ros 系统中。

  • bat_run.sh

批量运行以上的 sh 脚本

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.