xiaogpt 2.82__py3-none-any.whl → 2.83__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xiaogpt/tts/base.py +1 -1
- xiaogpt/xiaogpt.py +2 -2
- {xiaogpt-2.82.dist-info → xiaogpt-2.83.dist-info}/METADATA +1 -1
- {xiaogpt-2.82.dist-info → xiaogpt-2.83.dist-info}/RECORD +7 -7
- {xiaogpt-2.82.dist-info → xiaogpt-2.83.dist-info}/WHEEL +0 -0
- {xiaogpt-2.82.dist-info → xiaogpt-2.83.dist-info}/entry_points.txt +0 -0
- {xiaogpt-2.82.dist-info → xiaogpt-2.83.dist-info}/licenses/LICENSE +0 -0
xiaogpt/tts/base.py
CHANGED
@@ -118,7 +118,7 @@ class AudioFileTTS(TTS):
|
|
118
118
|
continue
|
119
119
|
logger.debug("Playing URL %s (%s seconds)", url, duration)
|
120
120
|
await asyncio.gather(
|
121
|
-
self.mina_service.play_by_url(self.device_id, url),
|
121
|
+
self.mina_service.play_by_url(self.device_id, url, _type=1),
|
122
122
|
self.wait_for_duration(duration),
|
123
123
|
)
|
124
124
|
await task
|
xiaogpt/xiaogpt.py
CHANGED
@@ -325,7 +325,7 @@ class MiGPT:
|
|
325
325
|
# WTF xiaomi api
|
326
326
|
is_playing = (
|
327
327
|
json.loads(playing_info.get("data", {}).get("info", "{}")).get("status", -1)
|
328
|
-
|
328
|
+
== 1
|
329
329
|
)
|
330
330
|
return is_playing
|
331
331
|
|
@@ -333,7 +333,7 @@ class MiGPT:
|
|
333
333
|
is_playing = await self.get_if_xiaoai_is_playing()
|
334
334
|
if is_playing:
|
335
335
|
# stop it
|
336
|
-
await self.mina_service.
|
336
|
+
await self.mina_service.player_pause(self.device_id)
|
337
337
|
|
338
338
|
async def wakeup_xiaoai(self):
|
339
339
|
return await miio_command(
|
@@ -1,7 +1,7 @@
|
|
1
|
-
xiaogpt-2.
|
2
|
-
xiaogpt-2.
|
3
|
-
xiaogpt-2.
|
4
|
-
xiaogpt-2.
|
1
|
+
xiaogpt-2.83.dist-info/METADATA,sha256=Cc4zadPOurP1qm4vPTQRe8TmaumjvdtL21ccYUbw8I4,29678
|
2
|
+
xiaogpt-2.83.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
|
3
|
+
xiaogpt-2.83.dist-info/entry_points.txt,sha256=zLFzA72qQ_eWBepdA2YU5vdXFqORH8wXhv2Ox1vnYP8,46
|
4
|
+
xiaogpt-2.83.dist-info/licenses/LICENSE,sha256=XdClh516MvlnOf9749JZHCxSB7y6_fyXcWmLDz6IkZY,1063
|
5
5
|
xiaogpt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
xiaogpt/__main__.py,sha256=MSmt_5Xg84uHqzTN38JwgseJK8rsJn_11A8WD99VtEo,61
|
7
7
|
xiaogpt/bot/__init__.py,sha256=BDGvj1JuWVw47qfREWGKnSXeiFg6DVJJAz2rHVryqmc,1160
|
@@ -22,9 +22,9 @@ xiaogpt/langchain/chain.py,sha256=z0cqRlL0ElWnf31ByxZBN7AKOT-svXQDt5_NDft_nYc,14
|
|
22
22
|
xiaogpt/langchain/examples/email/mail_box.py,sha256=xauqrjE4-G4XPQnokUPE-MZgAaHQ_VrUDLlbfYTdCoo,6372
|
23
23
|
xiaogpt/langchain/examples/email/mail_summary_tools.py,sha256=6cWvBJUaA7iaywcHdbUoww8WiCtaNw3TmwyxyF4DY7E,1561
|
24
24
|
xiaogpt/tts/__init__.py,sha256=xasHDrmgECirf1MSyrfURSaMBqtdZBi3cQNeDvPo_cQ,145
|
25
|
-
xiaogpt/tts/base.py,sha256=
|
25
|
+
xiaogpt/tts/base.py,sha256=k0ZUcLJZWU5U_fXu_w-cLFgZpE2KkV89ARbVDXLqTck,4665
|
26
26
|
xiaogpt/tts/mi.py,sha256=1MzCB27DBohPQ_4Xz4W_FV9p-chJFDavOHB89NviLcM,1095
|
27
27
|
xiaogpt/tts/tetos.py,sha256=fkuOSYGqAfJyyPEXbsiOS--CewGf1JUiahoN33nzOAA,1058
|
28
28
|
xiaogpt/utils.py,sha256=B7NCH7g19hcwHDXsnBJPTU6UcWnXoEntKWm-pgcet2I,2072
|
29
|
-
xiaogpt/xiaogpt.py,sha256=
|
30
|
-
xiaogpt-2.
|
29
|
+
xiaogpt/xiaogpt.py,sha256=UfpKGJK95CcYSdZIgQEcyS4uwD77DcS8BAXtq_KxS8c,16525
|
30
|
+
xiaogpt-2.83.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|