2023-06-09 15:46:46 +00:00
|
|
|
diff --git a/setup.py b/setup.py
|
2023-08-03 01:10:53 +00:00
|
|
|
index 05e42c1..8347acb 100644
|
2023-06-09 15:46:46 +00:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
2023-08-03 01:10:53 +00:00
|
|
|
@@ -41,4 +41,9 @@ setup(
|
2023-06-09 15:46:46 +00:00
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
],
|
|
|
|
keywords="rhasspy wyoming piper",
|
|
|
|
+ entry_points={
|
|
|
|
+ 'console_scripts': [
|
|
|
|
+ 'wyoming-piper = wyoming_piper:__main__.run'
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
)
|
|
|
|
diff --git a/wyoming_piper/__main__.py b/wyoming_piper/__main__.py
|
2023-08-03 01:10:53 +00:00
|
|
|
index ab1580b..4c0a143 100755
|
2023-06-09 15:46:46 +00:00
|
|
|
--- a/wyoming_piper/__main__.py
|
|
|
|
+++ b/wyoming_piper/__main__.py
|
2023-08-03 01:10:53 +00:00
|
|
|
@@ -143,8 +143,12 @@ def get_description(voice_info: Dict[str, Any]):
|
2023-06-09 15:46:46 +00:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+def run():
|
2023-08-03 01:10:53 +00:00
|
|
|
+ asyncio.run(main())
|
2023-06-09 15:46:46 +00:00
|
|
|
+
|
|
|
|
+
|
2023-08-03 01:10:53 +00:00
|
|
|
if __name__ == "__main__":
|
|
|
|
try:
|
|
|
|
- asyncio.run(main())
|
|
|
|
+ run()
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
pass
|