Skip to content

Commit 1296335

Browse files
authored
Merge pull request #72 from svrooij/build
Build
2 parents 93854d1 + dbc237f commit 1296335

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
language: node_js
2+
os: linux
23

34
node_js:
45
- 10
6+
- lts/*
57
- 13
68

79
branches:
@@ -15,9 +17,8 @@ jobs:
1517
node_js: lts/*
1618
if: branch = master
1719
# Advanced: optionally overwrite your default `script` step to skip the tests
18-
# script: skip
20+
script: echo "No tests in deploy step"
1921
deploy:
2022
provider: script
21-
skip_cleanup: true
22-
script:
23-
- npx semantic-release
23+
cleanup: false
24+
script: npx semantic-release

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,24 @@ services:
5757
- SONOS2MQTT_DEVICE=192.168.50.4 # Service discovery doesn't work very well inside docker, so start with one device.
5858
- SONOS2MQTT_MQTT=mqtt://emqx:1883 # EMQX is a nice mqtt broker
5959
- SONOS_LISTENER_HOST=192.168.50.44 # Docker host IP
60+
- SONOS_TTS_ENDPOINT=http://sonos-tts:5601/api/generate # If you deployed the TTS with the same docker-compose
6061
depends_on:
6162
- emqx
63+
64+
# You can skip the TTS server if you want. See https://github.com/svrooij/node-sonos-ts#text-to-speech
65+
# Set the amazon keys to your own
66+
# Set the SONOS_TTS_CACHE_URI to http://[ip_of_docker_host]:5601/cache
67+
sonos-tts:
68+
image: svrooij/sonos-tts-polly
69+
ports:
70+
- "5601:5601"
71+
environment:
72+
- SONOS_TTS_AMAZON_KEY=your_key_id_here
73+
- SONOS_TTS_AMAZON_SECRET=your_secret_access_token_here
74+
- SONOS_TTS_AMAZON_REGION=eu-west-1
75+
- SONOS_TTS_CACHE_URI=http://192.168.30.20:5601/cache
76+
77+
# Optional MQTT server (I like emqx over mosquitto)
6278
emqx:
6379
image: emqx/emqx
6480
restart: unless-stopped
@@ -93,6 +109,7 @@ Options:
93109
[boolean] [default: false]
94110
-h, --help Show help [boolean]
95111
--tts-lang Default TTS language [default: "en-US"]
112+
--tts-endpoint Default endpoint for text-to-speech
96113
--device Start with one known IP instead of device discovery.
97114
--version Show version number [boolean]
98115
```

0 commit comments

Comments
 (0)