Comments (2)
This wouldn't happen at the Alexa Skill layer, but you could add some code to the Lambda service to read from a list of aliases (simple text file mapping alias name to real name), and then send the real name to node-sonos-http-api when it detects the alias.
from echo-sonos.
One reason you might want this is because the lambda is not guaranteed to return something that is actually in your presets. For example, half the time when I way play "thunder toads" the lamda sends "Thunder Tones" as the preset value which of course doesn't work. Yes you could put in a function in the lambda which does some kind of lookup and finds the right preset value but its a PITB to edit that list and upload the lamda again. What I do is simply duplicate the preset value in presets.json with the alias name and restart the sonos service. It would be nice if the sonos http api supported aliases because that is where it needs to be, not in the Alexa Skill. I think I'll go write that. The same is true for room names, you can get something that is not actually a room name. But there is no good way to alias those in the sonos http api. You probably would have to do that in the lamdba as suggested.
from echo-sonos.
Related Issues (20)
- "Unexpected token" error with SQS proxy HOT 2
- Exposing service to outside world - mandatory? HOT 1
- Invalid Music Service HOT 7
- Invocation HOT 1
- Alexa Skill error "Unknown slot type" HOT 2
- Speaker Aliases HOT 1
- echo-sqs-proxy settings.json file HOT 1
- intent error
- SQS proxy help HOT 1
- Lambda Test Error: Cannot read property 'System' of undefined HOT 1
- having problem using 'livingroom'
- Cannot read property 'System' of undefined HOT 2
- Help Adding intent for english(india)
- Will this work with the latest node-sonos-http-api presets folder functionality?
- unable to get DEFAULT_MUSIC_SERVICE = spotify to work.
- New Alexa skill builder interface HOT 2
- Settings.json error
- Lambda Test Error: "Cannot read property 'System' of undefined" HOT 2
- Feature Request: Improve documentation for working with presets and limitations of Favorites
- Skill invocation now requires 2 words
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echo-sonos.