voicetools
voicetools copied to clipboard
All in one voice processing library
你好! 我能请教一下raspi_assistant中assistant.py、handler.py、settings.py、test.py、utils.py这几个python文件的大致功能以及我需要改哪个文件的哪部分吗?由于不是对每个函数和模块都了解,所以自己一个一个看起来比较吃力。 谢谢!
while True: # 下降沿检测 if GPIO.event_detected(GPIOConfig.VOICE_SENSOR): GPIO.remove_event_detect(GPIOConfig.VOICE_SENSOR) handler.worker() GPIO.add_event_detect(GPIOConfig.VOICE_SENSOR, GPIO.FALLING) time.sleep(0.5) 上面代码,为何要用传感器条件来判断,直接循环执行handler.work()不行吗?
大佬你好,刚刚shell试了一下,python3导入包就报错,python2正常,请问是什么情况呢? --------------------------- Traceback (most recent call last): File "D:\workspace\3gg\Python\voice\voice_test.py", line 1, in import voicetools File "C:\Python36\lib\site-packages\voicetools\__init__.py", line 13, in from .api import Wolfram, TuringRobot, BaiduVoice File "C:\Python36\lib\site-packages\voicetools\api.py", line 97 except...