Giter Club home page Giter Club logo

asrt_microphone's Introduction

ASRT_microphone

基于ASRT的实时麦克风语音识别项目

项目基于ASRT v1.3.0 Released制作,已内置训练好的语音识别模型,无需重新训练。

客户端请下载client文件夹,服务器端请下载server文件夹,并按requirements.txt配置环境。

安装

根据文件夹内部的requirements.txt进行配置。

由于ASRT的grpcio和protobuf依赖会版本冲突的原因,建议手动进行依赖的安装,先安装grpcio和grpcio-tools,再安装protobuf。虽然pip会报错,但是程序可以正常运行:

$ pip3 install grpcio==1.51.1 
$ pip3 install grpcio-tools==1.51.1 
$ pip3 install protobuf==3.19

配置

服务器端修改asrserver_grpc.py,根据IP地址和端口号修改以下两项:

parser.add_argument('--listen', default='0.0.0.0', type=str, help='the network to listen')
parser.add_argument('--port', default='20002', type=str, help='the port to listen')

客户端修改client_grpc.py相应的选项:

conn=grpc.insecure_channel('127.0.0.1:20002')

使用

服务器端运行asrserver_grpc.py,客户端运行client_grpc.py。客户端会捕获麦克风的音频信息,进行端点检测,然后将数据发送给服务端。

故障排除

在Linux环境下,如果无法使用pyaudio,请事先安装portaudio:

sudo apt install portaudio19-dev

asrt_microphone's People

Contributors

kdaip avatar

Stargazers

legogo avatar

Watchers

 avatar  avatar

Forkers

yanglilizhang

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.