Git Product home page Git Product logo

speech_recognition's Introduction

语音识别

通过微信小程序、node、百度语音识别接口实现一个语音转文本的效果

前端(小程序端)逻辑:

小程序端主要的操作是录音,然后将录音的临时音频文件上传到node后端,让node端进一步操作。

node后端逻辑:

node端要安装fluent-ffmpeg模块
//在你的本机上要安装ffmpeg以及配置相关环境变量

npm install fluent-ffmpeg

var ffmpeg = require('fluent-ffmpeg');   //在JS文件引入
同时也要安装百度语音识别接口的SDK
npm install baidu-aip-sdk

var AipSpeechServer=require('baidu-aip-sdk').speech;   //在JS文件中引入

后面的主要逻辑:

接收前端上传过来的临时音频文件,通过fluent-ffmpeg模块转码后保存到文件夹中,然后再调用百度语音识别接口,进行语音识别。

详细的代码,可以看我的源码,我的源码中都有写了注释。

speech_recognition's People

Contributors

aqingxin avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar

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.