1162| 5
|
[求助] [已解决]行空板不能播放语音合成的文件音频 |
from unihiker import * from pinpong.board import * from aip import AipSpeech import json audio = Audio() cilent = AipSpeech("","","") text = cilent.synthesis("你好", "zh", 1, {"vol": 5,"spd": 5,"pit": 3,"per": 0}) with open("record.mp3","wb") as fp: fp.write(str(text).decode()) audio.play("record.mp3") Board().begin() pin1 = Pin(Pin.D24,Pin.IN) dht = DHT11(pin1) gui = GUI() t = gui.draw_text(text=dht.temp_c(),x=0,y=0,color="#0000FF") while True: t.config(text=dht.humidity()) |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed