2023-07-15 17:15:38 +00:00
|
|
|
diff --git a/setup.py b/setup.py
|
2023-08-04 22:07:22 +00:00
|
|
|
index 04eedbc..ee0b495 100644
|
2023-07-15 17:15:38 +00:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
|
|
|
@@ -35,4 +35,9 @@ setup(
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
],
|
|
|
|
keywords="rhasspy wyoming whisper",
|
|
|
|
+ entry_points={
|
|
|
|
+ 'console_scripts': [
|
|
|
|
+ 'wyoming-faster-whisper = wyoming_faster_whisper:__main__.run'
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
)
|
|
|
|
diff --git a/wyoming_faster_whisper/__main__.py b/wyoming_faster_whisper/__main__.py
|
2023-08-04 22:07:22 +00:00
|
|
|
index 8a5039f..bd1e7b6 100755
|
2023-07-15 17:15:38 +00:00
|
|
|
--- a/wyoming_faster_whisper/__main__.py
|
|
|
|
+++ b/wyoming_faster_whisper/__main__.py
|
2023-08-04 22:07:22 +00:00
|
|
|
@@ -131,8 +131,12 @@ async def main() -> None:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+def run():
|
2023-08-04 22:07:22 +00:00
|
|
|
+ asyncio.run(main())
|
2023-07-15 17:15:38 +00:00
|
|
|
+
|
|
|
|
+
|
2023-08-04 22:07:22 +00:00
|
|
|
if __name__ == "__main__":
|
|
|
|
try:
|
|
|
|
- asyncio.run(main())
|
|
|
|
+ run()
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
pass
|