Skip to content

alextsao1999/assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 对着麦克风进行简单的机器人对话吧~

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy