From a2bad196935bd9151cb864955ed48819667d39cc Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 20 May 2024 12:20:54 -0700 Subject: [PATCH] Update to use webrtcvad by default Add changelog updates to automation Cleanup logging --- .github/workflows/publish_test_build.yml | 1 + neon_nodes/configuration/system.yaml | 2 +- neon_nodes/websocket_client.py | 3 ++- requirements/voice_client.txt | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_test_build.yml b/.github/workflows/publish_test_build.yml index de99eed..b03636d 100644 --- a/.github/workflows/publish_test_build.yml +++ b/.github/workflows/publish_test_build.yml @@ -15,6 +15,7 @@ jobs: with: version_file: "neon_nodes/version.py" publish_prerelease: true + update_changelog: true trigger_os_build: runs-on: ubuntu-latest needs: publish_alpha_release diff --git a/neon_nodes/configuration/system.yaml b/neon_nodes/configuration/system.yaml index 185993d..4b4749f 100644 --- a/neon_nodes/configuration/system.yaml +++ b/neon_nodes/configuration/system.yaml @@ -16,7 +16,7 @@ listener: min_seconds: 1 max_current_ratio_threshold: 2 initial_energy_threshold: 1000.0 - module: ovos-vad-plugin-silero + module: ovos-vad-plugin-webrtcvad mute_during_output: true instant_listen: false enable_stt_api: false diff --git a/neon_nodes/websocket_client.py b/neon_nodes/websocket_client.py index e3ff05f..04a65c7 100644 --- a/neon_nodes/websocket_client.py +++ b/neon_nodes/websocket_client.py @@ -74,6 +74,7 @@ def ws_connect(*_, **__): def ws_error(_, exception): self.error_hook(exception) raise ConnectionError(f"Failed to connect: {exception}") + ws_address = server_addr.replace("http", "ws", 1) self.websocket = WebSocketApp(f"{ws_address}/node/v1?token={auth_data['access_token']}", on_message=self._on_ws_data, @@ -111,7 +112,7 @@ def ws_error(_, exception): started_hook() self.run() - LOG.info("Waiting for WS connection") + LOG.debug("Waiting for WS connection") self._connected.wait() ready_hook() diff --git a/requirements/voice_client.txt b/requirements/voice_client.txt index b120eab..aca0bef 100644 --- a/requirements/voice_client.txt +++ b/requirements/voice_client.txt @@ -1,6 +1,6 @@ neon-utils[network]~=1.9 ovos-dinkum-listener==0.0.3a29 -ovos-vad-plugin-silero~=0.0.1 +ovos-vad-plugin-webrtcvad~=0.0.1 ovos-microphone-plugin-alsa~=0.0.0 # ovos-microphone-plugin-sounddevice Not working on Mark2 where alsa is ovos-ww-plugin-precise-lite[tflite]~=0.1