def record(file='test.wav'): rgb.write() audio.recorder_init() rgb[0] = (255, 0, 0) # 用LED指示录音开始结束 rgb.write() audio.record(file, 1) rgb[0] = (0, 0, 0) rgb.write() audio.recorder_deinit()
def init(): audio.recorder_init() audio.set_volume(0)
def init(): audio.recorder_init()