From 841f0552ff1548faa132db1d5320e845586b318f Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Mon, 2 Oct 2023 16:39:55 -0500 Subject: [PATCH] Update assist microphone to 1.2 --- assist_microphone/CHANGELOG.md | 4 ++++ assist_microphone/DOCS.md | 2 +- assist_microphone/README.md | 2 +- assist_microphone/build.yaml | 2 +- assist_microphone/config.yaml | 4 +++- .../rootfs/etc/s6-overlay/s6-rc.d/assist_microphone/run | 1 + assist_microphone/translations/en.yaml | 4 ++++ 7 files changed, 15 insertions(+), 4 deletions(-) diff --git a/assist_microphone/CHANGELOG.md b/assist_microphone/CHANGELOG.md index 216d1db..2cc209b 100644 --- a/assist_microphone/CHANGELOG.md +++ b/assist_microphone/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.2.0 + +- Add `volume_multiplier` + ## 1.0.0 - Initial release diff --git a/assist_microphone/DOCS.md b/assist_microphone/DOCS.md index 48f3a1c..6725837 100644 --- a/assist_microphone/DOCS.md +++ b/assist_microphone/DOCS.md @@ -1,6 +1,6 @@ # Assist Microphone -Works with the [openWakeWord add-on](https://my.home-assistant.io/redirect/supervisor_addon/?addon=47701997_openwakeword&repository_url=https%3A%2F%2Fgithub.com%2Frhasspy%2Fhassio-addons) +Works with the [openWakeWord add-on](https://my.home-assistant.io/redirect/supervisor_addon/?addon=core_openwakeword) Requires a long-lived access token from Home Assistant. To create a token: diff --git a/assist_microphone/README.md b/assist_microphone/README.md index b38d12b..a363872 100644 --- a/assist_microphone/README.md +++ b/assist_microphone/README.md @@ -2,4 +2,4 @@ Use [Assist](https://www.home-assistant.io/voice_control/) voice control with a USB microphone. -Works with the [openWakeWord add-on](https://my.home-assistant.io/redirect/supervisor_addon/?addon=47701997_openwakeword&repository_url=https%3A%2F%2Fgithub.com%2Frhasspy%2Fhassio-addons) +Works with the [openWakeWord add-on](https://my.home-assistant.io/redirect/supervisor_addon/?addon=core_openwakeword) diff --git a/assist_microphone/build.yaml b/assist_microphone/build.yaml index c93ac6c..85560a8 100644 --- a/assist_microphone/build.yaml +++ b/assist_microphone/build.yaml @@ -6,4 +6,4 @@ codenotary: signer: notary@home-assistant.io base_image: notary@home-assistant.io args: - HOMEASSISTANT_SATELLITE_VERSION: v1.0.0 + HOMEASSISTANT_SATELLITE_VERSION: v1.2.0 diff --git a/assist_microphone/config.yaml b/assist_microphone/config.yaml index 74b12cb..c05c21e 100644 --- a/assist_microphone/config.yaml +++ b/assist_microphone/config.yaml @@ -1,5 +1,5 @@ --- -version: 1.0.0 +version: 1.2.0 slug: assist_microphone name: Assist Microphone description: Stream microphone audio to Assist @@ -19,6 +19,7 @@ options: done_sound: "/usr/src/sounds/done.wav" noise_suppression: 0 auto_gain: 0 + volume_multiplier: 1.0 wake_buffer_seconds: 0.0 udp_mic: false debug_logging: false @@ -31,6 +32,7 @@ schema: volume: float noise_suppression: int auto_gain: int + volume_multiplier: float awake_sound: str done_sound: str wake_buffer_seconds: float diff --git a/assist_microphone/rootfs/etc/s6-overlay/s6-rc.d/assist_microphone/run b/assist_microphone/rootfs/etc/s6-overlay/s6-rc.d/assist_microphone/run index c0e5504..36e3e2e 100755 --- a/assist_microphone/rootfs/etc/s6-overlay/s6-rc.d/assist_microphone/run +++ b/assist_microphone/rootfs/etc/s6-overlay/s6-rc.d/assist_microphone/run @@ -25,5 +25,6 @@ exec python3 -m homeassistant_satellite \ --wake-buffer-seconds "$(bashio::config 'wake_buffer_seconds')" \ --noise-suppression "$(bashio::config 'noise_suppression')" \ --auto-gain "$(bashio::config 'auto_gain')" \ + --volume-multiplier "$(bashio::config 'volume_multiplier')" \ --vad "$(bashio::config 'vad')" \ --debug-recording-dir "$(bashio::config 'debug_recording_dir')" ${extra_args[@]} diff --git a/assist_microphone/translations/en.yaml b/assist_microphone/translations/en.yaml index 0dbd445..6fbcc40 100644 --- a/assist_microphone/translations/en.yaml +++ b/assist_microphone/translations/en.yaml @@ -16,6 +16,10 @@ configuration: name: Auto gain description: >- Automatic volume boost for microphone (0 is disabled, 31 is max) + volume_multiplier: + name: Volume multiplier + description: >- + Multiply volume by fixed value (1.0 = no change, 2.0 = twice as loud) wake_buffer_seconds: name: Wake buffer seconds description: >-