How to use APL on Alexa Multimodal Devices with Python? [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed yesterday.
Improve this question
I have created an Alexa skill in python which is working fine for my expected intents.
Now I want to add a functionality in that skill such that if my skill is opened/triggered on any device with a display (ex: Echo show) then it will show either my whole conversation on Display or the final part or some part of chat that I want to deliver on the display device.
I have gone through the official documentation of the Alexa skill it says something like that "you have to use APL", but it doesn't clearly mention how to do it in python from scratch, can you tell me the process to build the feature from scratch.
A step-by-step guide using the Alexa developer console for Python would be beneficial.

You can develop the screen directly within the developer console.
Then, when you respond to the request received by a user interaction, you have to include the directive to add this APL document.
(Only if the device support it: context.System.device.supportedInterfaces.Display)
I recommend you to be familiar with the Alexa Skills kit SDK for python on the official documentation (it includes examples and sample skills).
And you should also follow the zero to hero video tutorials about developing an Alexa skills. It usually respond to 99% of all your actual & future questions.

Related

How can some services read what you type into the dialpad while you're on a phone call? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Today I was calling USPS and got redirected to their over the phone bot. I was wondering what they use that can detect what you type into the dialpad, for example "press 1 for main menu". I was also wondering if I could replicate the same thing in python.
Assuming by "over-the-phone but" you mean it's a bot that you can interact with during an actual phone call; they use DTMF tones to detect the numbers you press, by listening to the actual tones in the phone call. In the past, you could usually hear the actual tones when pressing the numbers, such as when on a landline, but nowadays, phones tend to play a generic sound and mute the DTMF tones when you dial them.
There are probably lots of ways. Here's one I have heard of:
You can use Twilio along with python to create a phone bot. The Twilio API should provide you with most things that you need for the phone. The rest will probably be much the same, for example,
if phoneinput == button-1:
...
Here is a quick tutorial I found online for reference: https://www.fullstackpython.com/blog/make-phone-calls-python.html

Web development for smart switches IoT [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have many jinvoo light switches in my house. I control them from the app in my cell or using alexa echo gen 3 and everything works perfect.
Now I am trying to create a local web page that allows me to know the status and to interact with the switches.
I have been looking an api and found nothing. I also thought about creating an Alexa skill to interact with my page or to use and arduino ESP8266.
Any suggestion will be appreciated.
If you know how to control them from a skill, you can create custom tasks for different operations within a skill, then trigger them using Quick Links for Alexa.
Custom tasks: https://developer.amazon.com/en-US/docs/alexa/custom-skills/implement-custom-tasks-in-your-skill.html
Link to custom tasks from a web page: https://developer.amazon.com/en-US/docs/alexa/custom-skills/create-a-quick-link-for-your-custom-task.html#

How to build a simple mobile app based on a simple python program? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I recently participated in the company's internal Hackathon, using Python and Azure's image processing API to make a simple program to scan products. The basic idea is to place a specific product in front of the camera and the program will redirect to the product page with more details.
Our product manager is quite interested in this project, asking if I can make a mobile app. I am a data engineer and has almost zero experience on the mobile side. Just wondering if there is an easy way to migrate / re-do the project I just described and make it preferably an app compatible with both Android and IOS. What tech stack do I need to learn to achieve this? Thanks in advance!
you can try it with https://kivy.org/#home - this should work with python.
If you do not want to stick to python, there are lots of frameworks, that might fit your needs:
Flutter https://flutter.dev/
Kotlin https://kotlin.org/
Xamarin https://dotnet.microsoft.com/apps/xamarin
React Native https://www.reactnative.com/
this list is growing fast...

run python code using html5 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Basically I want to create a sexy GUI using HTML5 then call code that I wrote in python. I have just discovered some tutorials about web2py, however I am getting the videos now from youtube so I can only watch when I get home. (Life of a student with no internet at home).
So basically I have written a python script, now I want to use a webpage to interact with that script instead of terminal as I have been doing. So I have a webpage provide me the GUI to my python app.
Hope this makes more sense.
Any help and direction will be greatly appreciated.
Thanks in advance
You need to flip that around, you want to run server-side python code that renders your sexy HTML5 GUI. There are many Python frameworks that are suitable to this, including web2py, django, and my personal favorite flask.
Any of these frameworks will let your python code run, then render the HTML with python variables/functions available by using a templating engine (for example Flask uses Jinja template). Tutorials are readily available for all of these python libraries, but if you want to take a look at Flask, I can recommend Miguel Grinberg's excellent tutorial series.

nodejs python or twisted [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm new to web development and going to make a website which responses with data received from request to web-service(facebook for e.g.) and how to choose what is more useful here:
nodejs has an callback model which allows not to wait while gathering data for user from other services (but i've broken my fingers and my brain after trying to make a kind of class in javascript with inheritance and the whole server drops after unhandled error in script)
python is very convinient in working with diff. kinds of data, it's more convinient for me, former C++ developer
yesterday i've read about twisted python that also uses callbacks
Help me please to choose what to use, better - performance, simple code
The callback model might make your code more verbose but WAIT! there is a solution! Check out
waitfor.
Anyway, if it's a personal project then no one is forcing you to use node.js for webapp development.You should go with what makes you more comfortable. If you like developing in python then go for it! :)
why don't you try django; it uses python (which you said is more convenient) and is also very commonly used for web development.

Categories

Resources