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:
Pascal Vizeli
2020-03-01 13:08:12 +01:00
committed by GitHub
parent 9f04efe3fa
commit c853fcef65
30 changed files with 238 additions and 187 deletions

View File

@@ -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

View File

@@ -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 /

View File

@@ -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",

View File

@@ -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"

View 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

View 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"