优化。

This commit is contained in:
2025-04-26 01:34:04 +08:00
parent 52af9e397f
commit 8aa87900bf
2 changed files with 53 additions and 58 deletions

View File

@@ -40,12 +40,6 @@ def init_i2s():
class InterphoneHandler:
def new_voice(self, data):
print(f"[Interphone] 接收到新数据: {data}")
i2s = init_i2s()
url = "http://iot.julecn.com/interphone/get_voice?name=" + data['name'] # 替换为音频文件的URL
print(url)
self.play_audio_stream(i2s, url)
def play_wav_file(self, data):
try: