Giter Club home page Giter Club logo

asr_baidu's Introduction

本库只放一些主要代码,仅供参考。

语音格式

其他语音格式请用ffmpeg转换成pcm格式的,否则会出现识别失败的情况。

c++打包成so,运行的主要命令是

[root@c3 asr]# make
g++ -shared -o src/libasr.so  ./src/asr.cpp -I../../include -I../../include/ASR  -Wall -O0 -fPIC -g -D__LINUX__ -Wno-unknown-pragmas -D_GLIBCXX_USE_CXX11_ABI=0  -std=c++11 ../../lib/libBDSpeechSDK.a ../../extern/lib/libjsoncpp.a ../../extern/lib/libcurl.a ../../extern/lib/libiconv.a ../../extern/lib/libz.a ../../extern/lib/libssl.a ../../extern/lib/libcrypto.a ../../extern/lib/libuuid.a -lrt -ldl -lpthread 

python3.7.x调用生成的libasr.so

三段语音识别结果:

{"error":0,"list":[{"thread_id":0,"txt":"今天天气怎样?"},{"thread_id":1,"txt":"小熊是一个大**。你听得懂吗?"},{"thread_id":2,"txt":"早餐巴比馒头七块五。"}]}

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.