shin1m / alexaagent Goto Github PK
View Code? Open in Web Editor NEWAlexa Voice Service Agent
Alexa Voice Service Agent
EDIT: the reconnecting issue might be my own fault, ignore it.
when I leave the program running for a while, it will throw an error:
@session(0x7b82e8) on error: asio.ssl error |
reconnecting...
session(0x7b82e8) created
directives GET(0x82eb20) on close: 2
@session(0x7b82e8) on error: asio.ssl error |
reconnecting...
Segmentation fault
in order to compile this project, some changes must be made:
configure.ac
-AC_CONFIG_SRCDIR([alexaagent.cc])
+AC_CONFIG_SRCDIR([main.cc])
and the configuration folder is missing so I have to create a session.json from scratch.
If this line set the signal:
boost::asio::signal_set signals(*server.io_services().front(), SIGINT);
The program will crash upon any server requesting on http://localhost:3000
according to: https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/reference/timers-and-alarms-conceptual-overview
the product must have the ability to act on previously set timers or alarms if internet connectivity is lost, this works if we keep the alexaagent running. However, it won't check existed alerts when there is no internet.
BTW. When alexaagent starts without a good connection, it should retry until internet recovers.
when capture_force is true, i think it means capture should start immediately and current dialog should stop as well. however now it will wait for active dialog ends.
When asked for tune-in stations, it will return a URL with content-type of "audio/x-mpegurl", then ffmpeg will fail to play it.
Also, it won't recover from this status. the AudioPlayer.PlaybackFailed event got a 200 response with new directive to play the same URL, repeated again and again, which I think might be a problem of alexa api.
sometimes, I got a segmentation fault with this.
Reproduce with "play economist radio on tune-in", then we got a url:
"http://opml.radiotime.com/Tune.ashx?id=s223220&formats=aac,mp3&partnerId=4JqugguZ&serial=AFPFRQBP3Y34KMJYVH6JHY4YL3UA&latlon=47.631863,-122.34427"
and this URL will return a playlist content.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.