wyoming-piper 2.2.1__py3-none-any.whl → 2.2.2__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.
- wyoming_piper/__main__.py +17 -6
- {wyoming_piper-2.2.1.dist-info → wyoming_piper-2.2.2.dist-info}/METADATA +2 -2
- {wyoming_piper-2.2.1.dist-info → wyoming_piper-2.2.2.dist-info}/RECORD +7 -7
- {wyoming_piper-2.2.1.dist-info → wyoming_piper-2.2.2.dist-info}/WHEEL +0 -0
- {wyoming_piper-2.2.1.dist-info → wyoming_piper-2.2.2.dist-info}/entry_points.txt +0 -0
- {wyoming_piper-2.2.1.dist-info → wyoming_piper-2.2.2.dist-info}/licenses/LICENSE.md +0 -0
- {wyoming_piper-2.2.1.dist-info → wyoming_piper-2.2.2.dist-info}/top_level.txt +0 -0
wyoming_piper/__main__.py
CHANGED
|
@@ -5,6 +5,7 @@ import json
|
|
|
5
5
|
import logging
|
|
6
6
|
from functools import partial
|
|
7
7
|
from pathlib import Path
|
|
8
|
+
import signal
|
|
8
9
|
from typing import Any, Dict, Set
|
|
9
10
|
|
|
10
11
|
from wyoming.info import Attribution, Info, TtsProgram, TtsVoice, TtsVoiceSpeaker
|
|
@@ -222,14 +223,24 @@ async def main() -> None:
|
|
|
222
223
|
_LOGGER.debug("Zeroconf discovery enabled")
|
|
223
224
|
|
|
224
225
|
_LOGGER.info("Ready")
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
226
|
+
server_task = asyncio.create_task(
|
|
227
|
+
server.run(
|
|
228
|
+
partial(
|
|
229
|
+
PiperEventHandler,
|
|
230
|
+
wyoming_info,
|
|
231
|
+
args,
|
|
232
|
+
voices_info,
|
|
233
|
+
)
|
|
231
234
|
)
|
|
232
235
|
)
|
|
236
|
+
loop = asyncio.get_running_loop()
|
|
237
|
+
loop.add_signal_handler(signal.SIGINT, server_task.cancel)
|
|
238
|
+
loop.add_signal_handler(signal.SIGTERM, server_task.cancel)
|
|
239
|
+
|
|
240
|
+
try:
|
|
241
|
+
await server_task
|
|
242
|
+
except asyncio.CancelledError:
|
|
243
|
+
_LOGGER.info("Server stopped")
|
|
233
244
|
|
|
234
245
|
|
|
235
246
|
# -----------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wyoming-piper
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: Wyoming Server for Piper
|
|
5
5
|
Author-email: Michael Hansen <mike@rhasspy.org>
|
|
6
6
|
License: MIT
|
|
@@ -19,7 +19,7 @@ Description-Content-Type: text/markdown
|
|
|
19
19
|
License-File: LICENSE.md
|
|
20
20
|
Requires-Dist: wyoming<2,>=1.8
|
|
21
21
|
Requires-Dist: regex>=2024.11.6
|
|
22
|
-
Requires-Dist: piper-tts<2,>=1.4.
|
|
22
|
+
Requires-Dist: piper-tts<2,>=1.4.1
|
|
23
23
|
Requires-Dist: sentence-stream<2,>=1.2.0
|
|
24
24
|
Provides-Extra: dev
|
|
25
25
|
Requires-Dist: black; extra == "dev"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
wyoming_piper/__init__.py,sha256=z1dsCtGazHHufHQpoVgNtMObt25qYBSOM85o7xgbIJA,139
|
|
2
|
-
wyoming_piper/__main__.py,sha256=
|
|
2
|
+
wyoming_piper/__main__.py,sha256=AmLg4iAvAPOyNQFZJm7_bAUFrZp1qe5m-tOGa89JyCc,8464
|
|
3
3
|
wyoming_piper/const.py,sha256=04sCdtJ2QGuF1BQGkOuQW10og61PgH3fCnPhaYu-YoU,1015
|
|
4
4
|
wyoming_piper/download.py,sha256=At1RBaVKsTTAO71LAJn8bDeJnvJXBS0vA6iCIo6BqZs,6349
|
|
5
5
|
wyoming_piper/file_hash.py,sha256=HMuwrgEIg-bCOXHG0wE3vtjrqGD7QaA_UNfvBMXeUcY,1107
|
|
6
6
|
wyoming_piper/handler.py,sha256=LHbJLmhq9j4rZE7fBrDJhPGm1nFIegNXfRlsjFOGhno,10195
|
|
7
7
|
wyoming_piper/voices.json,sha256=Fkqd82jiQGWAZrD_q6_5adVRMaPEAWh1ehezFeGkeFw,217559
|
|
8
|
-
wyoming_piper-2.2.
|
|
9
|
-
wyoming_piper-2.2.
|
|
10
|
-
wyoming_piper-2.2.
|
|
11
|
-
wyoming_piper-2.2.
|
|
12
|
-
wyoming_piper-2.2.
|
|
13
|
-
wyoming_piper-2.2.
|
|
8
|
+
wyoming_piper-2.2.2.dist-info/licenses/LICENSE.md,sha256=E3RtUJ105V6iJl--8gS7fNv4SoMVsCB-mIMmy1Q4cCg,1071
|
|
9
|
+
wyoming_piper-2.2.2.dist-info/METADATA,sha256=YEOMiW6ORTGxzFmkoNFKe51iG1up_-MDHspU-VuW7iQ,2612
|
|
10
|
+
wyoming_piper-2.2.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
11
|
+
wyoming_piper-2.2.2.dist-info/entry_points.txt,sha256=n2UgsOCQitQ5Itr20aITTWZLL2dAtaVKn5pdecXdDHE,61
|
|
12
|
+
wyoming_piper-2.2.2.dist-info/top_level.txt,sha256=t7U7-u1sK_4xy_qbTJhxQRbxle3cLQfPq2oVLezHVNU,14
|
|
13
|
+
wyoming_piper-2.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|