Can we use amazon echo dot with raspberry pi for the purpose of voice synthesis and recognition?
Related
So I recently stumbled upon this link, which allows the use of some kind of Google TV on the pi. A combination of sets including, static IP, Node JS and some Javascript enable a smart phone etc to control what is being played from the pi. Took me about 6 hours to get it up and running, ( Mainly because I haven't used any distro of linux in a while lol). I decided to do a quick video of my impressions of the device and GoogleTv ruunning. Enjoy!!
Not sure if this is interesting to anyone else or not looking for a harmony remote solution but..
Because you can control the Fire TV Stick over ADB: ( sigh.. can't post links, aftnews + how-to-remotely-control-an-amazon-fire-tv-or-fire-tv-stick-via-adb/ )
There are also a few more commands available which you can see here: ( search android KeyEvent ) (for media buttons mainly, but many interesting buttons that might come in handy on the stick)
My setup for this includes.. Logitech Harmony Remote using a Media Center IR receiver on an HTPC using Windows 7, and a Fire TV Stick
I made batch files for each of the remote commands, with an adb connect to the IP of the Stick just incase (it timesout after a while and if it's already connected it ignores the command). Then I setup AutoHotkey to look at my chosen remote commands, there is another autohotkey script that I use that tracks all button presses, so that you can just press the button on the remote and see the code to create a keybinding with. So now I have a script of all of the remote commands that I want which run the corresponding batch file. Then I setup one final script to turn on/off the keybinding script. I chose to use my Guide button to toggle this because I have no DVR in my HTPC anyway.
So the end result is that I can control my Fire TV stick via Harmony Remote -> IR Receiver on HTPC -> Autohotkey keybinding grabs the input when running -> Runs the ADB command for it. When I press Guide it goes into "Fire TV mode", and when I press it again it goes back to normal (so that I can control my HTPC again)
It's not the cleanest and there is a delay because the adb commands take about half a second to trigger, but it works and I'm satisfied for now. Because I haven't seen anyone else with a setup like this I thought I'd share. Just let me know if you want me to provide the scripts I have and go into more detail. I plan on refining it some too because I know next to nothing about batch files (I could probably just have one with different arguments, the only argument is the command number you want to send anyway) or autohotkey.
I have an RK3066-based generic 2-DIN Android head unit (see here). I've managed to install a rooted image on it (Yay!).
I want to connect it to a vehicle CAN bus, and I'm trying with an ELM327-based USB to OBD2 adaptor (which includes CAN as one of its protocols).
When I plug it into Ubuntu desktop, I get a "/dev/ttyUSB0". I can access it with Putty terminal and send commands as per the ELM documentation. For primitive access from the command line, I can do this (just to see whether it works at a basic level, without any terminal program):
Code:
sudo stty -F /dev/ttyUSB0 speed 38400
sudo cat /dev/ttyUSB0
And in another terminal:
Code:
sudo sh -c "echo "\r\n">/dev/ttyUSB0"
This produces "> ?" in the first terminal, in line with the expected prompt from the device. Good!
However, I can't get it to work on my Android device.
When plugged in, dmesg reports a Prolific USB-Serial device found and added to /dev/ttyUSB0.
"ls /dev/ttyUSB0" shows that it exists and is owned by "radio".
"stty -F /dev/ttyUSB0 speed" shows the speed is set to 9600 (this is also the default on Ubuntu desktop, and if not changed, the above test doesn't work).
However, I can't change the speed, and the test of sending a character to the decide doesn't work.
I've tried changing the permissions of the serial device (see this post) but it didn't help. I also tried changing to 'radio' with "su radio" but that also didn't work.
Whenever I try "stty -F /dev/ttyUSB0 speed 38400" I get either:
stty: /dev/ttyUSB0: cannot perform all requested operations
Or:
stty: /dev/ttyUSB0: cannot perform all requested operations: No such file or directory
I also tried with a couple of terminal programs including the "Serial Port API sample" app. The device never responds, and I think it is for the same reason (the baud rate isn't set to 38400). Note I can select the baud rate in these programs but I don't think it is actually set - stty still reports 9600.
I feel like I am very close to at least talking to the ELM327 but I am missing something. The Torque app claims to have found the OBD2 adaptor, but I can't actually connect it to a vehicle right now so I don't know if it actually works. In any case I need to access it from my own app.
Wondering if anyone knows the answer to this problem... I can write my own app to access /dev/ttyUSB0 (in theory...) but don't want to waste my time if it's hopeless!
Similar Problem
Hi There --- I'm interested in doing a similar thing to what you're doing...communicating with a usb serial device via the command line in android --- I'm wondering if there's any way to do that without rooting the phone. Like you, I can do it successfully on an ubuntu desktop. I'm specifically trying to do this, you can read about it below.
Thanks and Cheers!
Big Picture: I've attached an arduino uno to an android phone via the micro-usb connection on the phone. My goal is to SSH into the phone over its network or internet connection and then run commands from terminal such as this:
echo -n "h" > /dev/ttyACM0
where h is the character actually sent to the arduino and /dev/ttyACM0 is the hypothetical arduino device as it appears in the linux /dev folder.
Unfortunately i'm stuck and i'm wondering if it's because i need a rooted device in order for this to work.
What I've succeeded in doing so far:
-I successfully sent commands to the arduino uno as above (echo -n "h" > /dev/ttyACM0) using a desktop ubuntu 14.04 linux machine
-I can successfully SSH into the android phone via Putty on a windows computer, while also using the SSHDroid host app from google play on the phone itself. but I cannot access the /dev folder...well, I've looked around using an app that claimed it could show all root accessible files and folders (smart kit 360 on google play) and there were no tty items in the /dev folder. I got an app called "list usb devices" and it gave some other path for the device that was /sys ...but it said i didn't have permission to access that.
-I can successfully send individual character commands from the phone to the arduino uno using another google play app called "DroidTerm" ...similar to the old windows hyperterminal program.
So I've verified that all the individual pieces of this puzzle should work each in a particular context. However, when I try to SSH into the phone and then run the command "echo -n "h" > /dev/ttyACM0"
it throws an error regarding permissions, though I'm surprised it didn't throw an error regarding the existence of /dev/ttyACM0, given the missing tty files i mentioned earlier..I was hoping they were just hidden (if this is the device name "file" on one linux machine, will it be the same on a different linux machine (since android is technically linux?)? I was hoping it would be.
Ideas, known solutions, and alternatives are very welcome!
Alternatives I've tried instead of SSH:
remote control the android device with rc software and control the app droidterm.
I tried that, and it's quite expensive in terms of bandwidth (i don't need to send the whole screen constantly), doesn't allow multi-tasking applications on the phone which i need (yes, I know that android nougat supports multi-tasking but my phone is old and won't load it without serious intervention at the level of rooting that I'd rather not do), and has several other issues that will be problematic.
Amazon have updated there Alexa skills page.All the instructions for getting Ask Google onto the Echo are dated.Does anyone know of new up to date instructions explaining how to do it??
Search Youtube for "The Alexa skill you're not supposed to have" to view a good video tutorial on "How to get Google Assistant on Alexa devices" or pm me for the direct Github links.
Hi to all,
is it possible to open on the screen of our Alexa Echo Show 5, a webcam link from outside, webcam world just like:
www.skylinewebcams.com
using my voice, just like: ALEXA PLEASE OPEN BEACH VIDEO.... or something like that
I can do now by Firefox on Alexa but is it a way to do directly by voice?
Thanks
It looks like they added support for opening URLs from skills. You would have to make your own custom Alexa skill, but it seems possible now. I saw this info here:
https://stackoverflow.com/questions/57171495/display-a-hyperlink-in-alexa-skill
I opened the site webcams-hd.live