1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-06 14:52:50 +08:00

feat: 新增 OH2 型号的支持

This commit is contained in:
涵曦
2025-05-18 14:25:35 +08:00
parent eead12643d
commit 22704e15fd
2 changed files with 4 additions and 1 deletions

View File

@@ -29,10 +29,13 @@ NEED_USE_PLAY_MUSIC_API = [
"X8F",
"X4B",
"LX05",
"OH2",
"OH2P",
]
# 有 tts command 的设备型号
TTS_COMMAND = {
"OH2": "5-3",
"OH2P": "7-3",
"LX06": "5-1",
"S12": "5-1",

View File

@@ -1935,7 +1935,7 @@ class XiaoMusicDevice:
# 有 tts command 优先使用 tts command 说话
if self.hardware in TTS_COMMAND:
tts_cmd = TTS_COMMAND[self.hardware]
self.log.debug("Call MiIOService tts.")
self.log.info("Call MiIOService tts.")
value = value.replace(" ", ",") # 不能有空格
await miio_command(
self.xiaomusic.miio_service,