diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 212d48d..c8bd676 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,7 +31,7 @@ jobs: Write-Output "::endgroup::" - name: build - run: pyinstaller --onefile --noconsole --exclude torch --exclude numpy --exclude tensorflow --exclude pandas --add-data "./resources;resources" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/pykakasi/data;pykakasi\\data" --add-data "./modules;modules" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/customtkinter;customtkinter" --icon resources/logo.ico OSC-SRTC.py + run: pyinstaller --onefile --noconsole --exclude torch --exclude numpy --exclude tensorflow --exclude pandas --add-data "./resources;resources" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/pykakasi/data;pykakasi\\data" --add-data "./modules;modules" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/customtkinter;customtkinter" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/CTkMessagebox;CTkMessagebox" --icon resources/logo.ico OSC-SRTC.py - name: upload uses: actions/upload-artifact@v1 diff --git a/modules/SRTC_Recognizer.py b/modules/SRTC_Recognizer.py index 82c489c..b5485c2 100644 --- a/modules/SRTC_Recognizer.py +++ b/modules/SRTC_Recognizer.py @@ -105,7 +105,7 @@ def ListenAndRecognize(self, recognizer: str, language: str, stop_event: threadi return "" time.sleep(0.1) - playsound(resource_path("resources\\1.wav").replace("\\", "/"), block=True) + playsound(resource_path("resources\\1.wav").replace("\\", "/"), block=False) self.__print_log("[SRecognizer][Info] Listening...") try: diff --git a/modules/SRTC_Utils.py b/modules/SRTC_Utils.py index 0fde015..c191d9d 100644 --- a/modules/SRTC_Utils.py +++ b/modules/SRTC_Utils.py @@ -2,6 +2,10 @@ import os import json +import requests +from bs4 import BeautifulSoup +from CTkMessagebox import CTkMessagebox + default_settings = ''' { "osc_ip" : "127.0.0.1", @@ -9,6 +13,7 @@ "osc_serv_ip" : "127.0.0.1", "osc_serv_port" : 9001, + "http_ext_port" : 9002, "azure_key" : "", "azure_location" : "", @@ -47,9 +52,6 @@ def clear_screen(): os.system("cls" if os.name == "nt" else "clear") def update_check(ver: int) -> None: - import requests - from bs4 import BeautifulSoup - from CTkMessagebox import CTkMessagebox try: url = "https://rera-c.booth.pm/items/4217922" res = requests.get(url)