mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
Add support for new audo layer (#1153)
* Add support for new audo layer * Add layer * restucture * better struct * Improve devcontainer * Fix container * Fix LN * disable lint * ignore
This commit is contained in:
@@ -1,45 +1,51 @@
|
||||
# Changelog
|
||||
|
||||
## 1.0
|
||||
## 1.1.0
|
||||
|
||||
- Renaming Home Assistant
|
||||
- Convert to s6-overlay
|
||||
- Support new audio backend
|
||||
|
||||
## 1.0.0
|
||||
|
||||
- Support aarch64 in armv7 combat mode
|
||||
|
||||
## 0.9
|
||||
## 0.9.0
|
||||
|
||||
- Corrected link to documentation inside the add-on
|
||||
- Adjust source links in Dockerfile
|
||||
- Update add-on documentation to match current state
|
||||
|
||||
## 0.8
|
||||
## 0.8.0
|
||||
|
||||
- Fix API url for access to Home Assistant
|
||||
|
||||
## 0.7
|
||||
## 0.7.0
|
||||
|
||||
- Add missing options
|
||||
|
||||
## 0.6
|
||||
## 0.6.0
|
||||
|
||||
- Update Ada to 0.7
|
||||
- Add options to change TTS / STT Home Assistant provider
|
||||
|
||||
## 0.5
|
||||
## 0.5.0
|
||||
|
||||
- Update Ada to 0.6
|
||||
|
||||
## 0.4
|
||||
## 0.4.0
|
||||
|
||||
- Update Ada to 0.5
|
||||
|
||||
## 0.3
|
||||
## 0.3.0
|
||||
|
||||
- Update Ada to 0.4
|
||||
|
||||
## 0.2
|
||||
## 0.2.0
|
||||
|
||||
- Update Ada to 0.3
|
||||
- Add armhf support
|
||||
|
||||
## 0.1
|
||||
## 0.1.0
|
||||
|
||||
- Initial support
|
||||
|
||||
@@ -8,6 +8,7 @@ ARG ADA_VERSION
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
portaudio19-dev \
|
||||
libasound2-plugins \
|
||||
libsndfile1 \
|
||||
mplayer \
|
||||
libffi-dev \
|
||||
@@ -32,6 +33,4 @@ RUN apt-get update \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /
|
||||
COPY data/run.sh /
|
||||
|
||||
CMD ["/run.sh"]
|
||||
COPY rootfs /
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"name": "Hey Ada!",
|
||||
"version": "1.0",
|
||||
"version": "1.1.0",
|
||||
"slug": "ada",
|
||||
"description": "Voice assistant powered by Home Assistant",
|
||||
"url": "https://github.com/home-assistant/hassio-addons/blob/master/ada",
|
||||
"arch": ["armhf", "armv7", "amd64"],
|
||||
"init": false,
|
||||
"startup": "application",
|
||||
"boot": "auto",
|
||||
"audio": true,
|
||||
"homeassistant": "0.102.0.dev",
|
||||
"homeassistant": "0.102.0",
|
||||
"homeassistant_api": true,
|
||||
"options": {
|
||||
"stt": "cloud",
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/usr/bin/env bashio
|
||||
|
||||
STT=$(bashio::config 'stt')
|
||||
TTS=$(bashio::config 'tts')
|
||||
|
||||
exec python3 -m ada --url "http://hassio/homeassistant/api" --key "$HASSIO_TOKEN" --stt "$STT" --tts "$TTS"
|
||||
8
ada/rootfs/etc/services.d/ada/finish
Normal file
8
ada/rootfs/etc/services.d/ada/finish
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/execlineb -S0
|
||||
# ==============================================================================
|
||||
# Take down the S6 supervision tree when Ada fails
|
||||
# ==============================================================================
|
||||
if { s6-test ${1} -ne 0 }
|
||||
if { s6-test ${1} -ne 256 }
|
||||
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
8
ada/rootfs/etc/services.d/ada/run
Normal file
8
ada/rootfs/etc/services.d/ada/run
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Start Ada service
|
||||
# ==============================================================================
|
||||
STT=$(bashio::config 'stt')
|
||||
TTS=$(bashio::config 'tts')
|
||||
|
||||
exec python3 -m ada --url "http://supervisor/core/api" --key "$SUPERVISOR_TOKEN" --stt "$STT" --tts "$TTS"
|
||||
Reference in New Issue
Block a user