Giter VIP home page Giter VIP logo

assistant's Introduction

HyperMind语音助手

接入百度语音识别API

如果声音RMS大于特定阈值就开始录制

录制完成后将buff进行上传到百度云进行语音识别

不完善的整合了百度的UNIT, 使其初步支持了语义/命令词识别

并调用CommandTrigger添加的触发器

通过如下方式添加触发器

def callback(name, value):
    
    pass

ct = CommandTrigger()
ct.add_intent("意图名称", callback)

默认触发器有些不同 callback多了一个参数 intent (意图)

在添加的意图触发器如果没找到 就会调用默认意图触发器 intent 名称必须为default( 主要是因为我懒(●'◡'●) )

def default_callback(intent, name, value):
    
    pass

ct = CommandTrigger()
ct.add_intent("default", default_callback)

运行assistant.py 对着麦克风进行简单的机器人对话吧~

assistant's People

Contributors

alextsao1999 avatar

Stargazers

 avatar  avatar  avatar  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.