Coder Social home page Coder Social logo

esp_ld3320's Introduction

esp_ld3320

esp8266 ld3320

https://www.arduino.cn/thread-78023-1-20.html

void VoiceRecognition::noiseTime(uint8_t noise_time_); //上电噪声略过,参数(0x000xff,单位20MS),默认值0x02,按需更改 void VoiceRecognition::voiceMaxLength(uint8_t voice_max_length_); //最长语音段时间,参数(0x000xC3,单位100MS),默认值0xc3,20秒,例程里的短语识别的话改为23s即可 void VoiceRecognition::speechEndTime(uint8_t speech_end_time_); //调整语音端点结束时间(吐字间隔时间),参数(0x000xC3,单位10MS),我没有更改这项 void VoiceRecognition::speechStartTime(uint8_t speech_start_time_); //调整语音端点起始时间,参数(0x000x30,单位10MS),我没有更改这项 void VoiceRecognition::speechEndpoint(uint8_t speech_endpoint_); //调整语音端点检测,参数(0x000xFF,建议10-40),看不懂这项在说什么 void VoiceRecognition::micVol(uint8_t vol); //调整ADC增益,参数(0x00~0xFF,建议10-60),室内使用调小,室外调大 void VoiceRecognition::reset() //LD3320复位操作 void VoiceRecognition::init(uint8_t mic); //模块启用,参数为麦克风选择(MIC/MONO)在SETUP中调用,MIC即3.5mm麦克风接口,MONO为内置咪头,默认为咪头,大部分参数设置请在这个函数调用后设置 int VoiceRecognition::read(); //识别结果读取,返回值为读到的命令编号 void VoiceRecognition::addCommand(char *pass,int num) //添加指令,参数为拼音加指令标号(read()返回的就是这个标号)示例: Voice.addCommand("kai deng",0);Voice是事先初始化好的VoiceRecognition对象,在init()后使用 unsigned char VoiceRecognition::start(); //开始识别,此函数会将之前设定的参数传递给模块

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.