Android as a Speech/Alarm Device released! And Updated!

Thank you for reporting this. I haven’t been having that issue and can’t reproduce it; I’m using SoundPool in the documented fashion, which should handle resources (especially since there’s only a few.) But I have made changes that should proactively protect against this. They’re in Version 12, which should be live in a bit.

I’m using the version off Google Play. I’m not familiar with sideloading apps, but I’ll figure it out and give it a try. (The Android device is rooted so that could be the cause of issues too. I’ve seen other app developers saying they could make no guarantees about their apps running custom ROMs.)

There’s a new version on Google Play now too. Please let me know how it turns out. All my devices are running custom ROMs. The one thing I won’t support is Marshmallow; I can’t stand the changes to external SD Card access.

So if we are running marshmallow we should not upgrade to the new version?

Oh, nothing like that! I haven’t broken anything in Marshmallow. I simply gave up on running it on my devices, so I won’t support attempts to deal with the SD Card or Dropbox support on Marshmallow. It all should work fine. But, in the ideal world, Google wouldn’t remove access to external SD cards either.

1 Like

@bravenel 's Rule Machine supports cameras… which now LANnouncer is one. You can tell it to take a photo directly from the Android camera using LANnouncer. That photo will appear in the SmartThings notifications area, and in the carousel in the LANDroid device page. (Yes, the naming is a bit inconsistent. Thanks, Google.)

But… LANdroid can also take photos from other cameras, IP Cameras, such as the AMCrest PRO HD. Just configure it up on the Camera settings page, and in Rule Machine, set up a rule that says… @#RETRIEVE=camera name from LANnouncer
Your photo will be taken and dumped in your dropbox folder under apps/LANnouncer!

2 Likes

This is so cool.

I’ve now got it running with just one contact sensor (the fridge) on a Nexus 7 Android tablet. I paired the tablet it with our Amazon Echo, so the audio runs through that, which is a better speaker than the tablet. My wife is rolling her eyes as I open and close the fridge and the Echo announces, “the fridge is open. The fridge is closed. The fridge is open…”

The Android audio isn’t as good as the Alexa voice, but there are a few premium voice synthesis apps in the Google Play Store that you can use as the default voice renderer in Android. The one I installed, Acapela, sells decent voices for only a few dollars. (I’m testing a British English one that’s sort of Jarvis-ish, which isn’t too bad.)

Probably not a good question… .but what would it take to get to get this to run under JellyBean or Kitkit? All of my Android devices are old and none run Lollipop. I think there are custom Lollipop ROMs for 2 of them; I’m looking into that.

1 Like

To answer my own question, you wrote this on your web page:

LANnouncer requires SDK 21, which means Lollipop, Android 5.0, or
above.  This isn't capricious; because I've updated all of my devices
and because I initially wasn't even considering publishing this (it was
just to solve an annoyance), I used Android methods supported by my
devices.  Specifically, the AudioAttributes.Builder class,
added in SDK 21.

I now know I can update at least one of my old phones to 5.0, so I’m all set.

It’s running fine on my Nexus 7 with 6.1. The only problem I have that if the device is not plugged in all the time, it sometimes does not say anything. I have all the settings set to stay on wifi and everything. Can’t figure this out.

I grabbed an old smart phone, put it on Wi-Fi, plugged it in and stuck it under my recliner where no-one will see it or touch it… Works great!

[quote=“matt, post:61, topic:30282”]I paired the tablet it with our Amazon Echo, so the audio runs through that, which is a better speaker than the tablet.
[/quote]@matt Please elaborate. How?

I got the idea from @bamarayne in this thread: Amazon Echo DOES Voice Notifications!

If you direct Echo to “pair” it will prompt you to turn on the Bluetooth on your device and connect to a specific Echo device. Then the Echo is basically a plain old BT speaker. It’s been a documented Echo feature from early on, but alas, audio only goes one way. You can’t get anything out of Echo to another device.

I have my Kindle Fire HD 10 set up the same way over BT for this application to the Echo.

It’s more centralized than my tablet’s locations. Plus, it’s louder and a quality speaker.

Anybody have a good way to AUTOMATICLY run LANnouncer for every boot, without root?

Automatically how? As in on device boot up or when you arrive at a certain location?
Trying to figure out exactly what you’re looking for.

EDIT: Actually… Regardless of how you are trying to set it up, Tasker will be capable of this. It supports Location, Wifi Status, Uptime, Date, Time, etc

LANnouncer/LANdroid has to start once, and run on the device in the background, so I forget to start it one time, every time I reboot the tablet or phone.

I’ll try tasker.

I just now set this up on a factory reset S4 without a need to be rooted. It really wasn’t too difficult to get going.

Now I just need to wait until morning when my wife hears Echo say the door was unlocked… This may take her over the edge a bit. She’s been quite patient with all the ST and Echo stuff to date, but I don’t know about this one. I wish the voice was the Echo’s vs the phone’s.

Definitely go with Tasker.
You can use the Uptime option in there for Launch App.

I have the same issue…and can’t figure out… Seems when there is no activity, and then a sensor is triggered there is a huge delay. Like the device or service is waking up.