Constant Speech Recognition With Hotword Detection - Java for Android App Development

I am looking to develop and application that will work offline that will be used whilst the user is driving. The app will allow the user to say a user-defined hot work such as 'Ok Sony' and then perform a variety of functions such as sending a text or making a phone call. What I am looking for is a way to have offline, hot word speech recognition to allow this app to work properly in the car.

Usually this kind of app needs to be turned on by user to make it "listen" to the user (Siri, Google).
In your case, you have to have the phone plugged in to a charger, otherwise battery will be depleted very fast, because the phone has to analyze every noise in your car.

Related

Magic Word for voice commands

on my last phone (sagem) there was a feature that recognised a 'special' word at all times ( an unusual word, not likely to pop up in conversation - mine was hippopotamaus). this then activated the voice command, you spoke the name of the person you wanted to ring etc.
in otherwords it was a voice recogniser without the need to press any buttons at all. it was a great addition, although it did reduce the battery power.
is this kind of application available on the wizard?
I would be very interested in seeing this aswell. I'm sure my old Ericsson had something like this too for answering calls handsfree many years ago.
I had this on my last phone. However, i hardly ever used it because if i forgot to turn it off it would often hear, or think it heard, my magic word in my pocket in noisy environments. Would be handy in the car, a time out to automatically turn it off after it had not been used for a while would be handy too

[APP] Voice Runner (Another GPS APP)

Hi All
Well this is another GPS App and my first so as people say "please be gentle".
I wrote this for my wife and me for when we are running or cycling.
The idea behind it was to know how fast, far, average speed and time travelled while listening to music without have to look at your phone. It basically says the info you want, the voice is a basic computer voice. It will also say any sms that come in while in use but it can only say words and numbers not any text speak but which I might be able to add later.
My biggest problem is because the voice isn’t particularly loud of clear I need to be able to pause the HTC music software while it’s speaking. If anyone knows how to do that please help I was hoping the pause button on the wired headphones might have a virtual key number but I haven't found it yet.
If I can get the above problem solved am hoping to add a lot of useful info to the display and to the spoken info such as a buddy runner based on a previous run or target settings.
In the setting menu the only item that’s functional at the mo is the repeat voice setting. As you may see the whole program is at a very early stage at the mo so again please be gentle.
http://rapidshare.com/files/187741228/Voice_Runner_0.2.CAB.html
Sir if you can find a way to pause or mute music with hardware button on wired earphones, You will make me really up...

Disabling the screen while active and enabling text to speech.

Afternoon folks, as a newbie to Android I'm wondering if anyone can help with a couple of random questions (yes, I have googled extensively but so far had no luck finding solutions or even hopeful looking workarounds).
I'm a biker and use my phone as a hub for satnav, entertainment, communications etc. Because I'm on a bike and not in a car I have no need for the screen to be running whilst CoPilot sits in the pocket and happily munches battery life, there's no need for graphics on the screen. Is there a way to turn off the screen to conserve battery yet leave the phone itself running and not in standby mode?
The next question is regarding SMS, is it possible to configure the Desire to convert incoming SMS to voice and read them out automatically? Say for example when a headset is plugged in the phone would alert and then read the message directly rather than just notify.
Cheers.

[POLL] Snapdragon vs Exynos. Does "OK Google" work if screen is OFF & not charging?

[POLL] Snapdragon vs Exynos. Does "OK Google" work if screen is OFF & not charging?
there seems to be NO consensus when it comes to ALWAYS-ON hotword detection regarding the S7. Let's establish one. Simply put, does Google's hotword gets triggered in your S7 even if the screen is OFF and phone is not charging?
_________________________________________________________________
I have dug into this. The snapdragon variant has two chips dedicated to audio, it's a DSP Group D4A1A (DBMD4) A/V Processor parried with a Qualcomm WCD9335 Audio Codec. But the Exynos variant has only one chip, the Cirrus Logic CS47L91 Audio Codec. Can the CS47L91 perform the same functions, more specifically always-on hotword detection, that the D4A1A (DBMD4) can?
I also wonder if the D4A1A (DBMD4) only detects the hotword from Samsung's S Voice or if it also detects third party hotwords such as the one from Google which is "Okay Google". We need to go deeper guys.
More info here =
I would imagine considerable battery drain if it was listening 24/7 even with the screen off, and would probably disable Doze from working
For some weird reason, Google Assistant showed up on my phone (the language on my phone is set to EN-US, but my search language is PT-BR) and screen off detection was enabled and working, later the entire Assistant (with the screen off detection) disappeared.
Besides for pleasing NSA, I don't see any sense in a permanently listening device. So I am happy that this is not the case with my Exynos S7.
Best, maris
I spent a few hours trying to figure this crap out, I'm kinda pissed it's this difficult to get it working or even to get correct/proper information regarding this specific subject. I didn't think it would be so niche in the actual days.
I discovered recently that Samsung's app S Voice has direct access to the hardware audio-dedicated chip that is ALWAYS LISTENING for a hotword. The standard hotword is "Hey Galaxy" for english, but it varies and it seems to be based on the language of the OS. I can confirm that even the Exynos variant has this functionality so the chip CS47L91 can be utilized to be always listening for a hotword without significantly impacting battery life. All the doubts regarding the capabilities of the chip CS47L91 are therefore disregarded, this is important!
One has to open the S Voice app at least once to set it up, only then the always listening function will be activated. When the hotword is recognized, the low-watt chip wakes the chipset which then follows with standard procedure. In fact it is so cool the word can be changed from "Hey Galaxy" and customized to any couple of words one desires. I just changed my hotword to HAKUNA MATATA, and even if the screen is OFF and the phone is not charging the hotword still gets triggered, the phone wakes up promptly able to receive voice commands.
That's the good part. THe sad part is that, so far, the S7's always-on hotword detection only work with Samsung's S Voice app. For unknown reasons third party apps, including Google's Assistant, do not work if the screen is OFF. But we know the hardware is there on both variants, period. I'm guessing third-party devs get no jelly because the access to the chip is encrypted by first-party devs. It could also be pure bureaucracy bs. It's very evident and clear that S Voice at its current state can't compete with Google's Assistant, it doesn't even scratch the surface.
Since it's potentially a chronic and eternal problem for this particular device, meaning a patch may never arrive, enter workarounds. The current workaround I'm playing with is using Samsung's S Voice to unlock and wake the phone, staying silent for a couple of seconds till it stops registering commands and right after it stops I say Google's hotword to activate Google's Assistant, then I proceed with what I wanted in the first place. It's not perfect, it's kinda horrible actually. But it gets the job done which is relevant, of course it can very frustrating if you are in a hurry or use the service multiple times a day.
I'll try to contact a Google Assistant dev to see what is really up, but for now, that's it.
Excellent thread and info. I'm guessing for the majority of S7 users as well as phone users this functionality doesn't seem to be of concern. However in my particular job as a delivery driver I use OK Google all day long. I really wish screen off detection would work.
My work around is just using my bluetooth headset. I simply hold a button down for a few seconds Ok Google is activated even with the screen off.

Great Use for your Retired EVO

I was responding to a few emails about people retiring their much beloved EVO phones.
I still use mine, and argue for its time it was the BEST phone made. With that said I still use mine as a media player at the gym and on long trips (the kickstand comes in handy on planes) thanks to the removable and swappable batteries.
However, I got a 2nd one and wanted to throw out how to use it as a security/monitor device at home or away.
First, download 3 apps..
A sound detector https://play.google.com/store/apps/details?id=dk.mvainformatics.android.sounddetector
Security Camera App https://play.google.com/store/apps/details?id=com.ivuu
VOIP dialer that can act as a NATIVE DIALER and provide a calling service. https://play.google.com/store/apps/details?id=com.talkatone.android
1. Load Sound Detector.
This app will continue to monitor the area for noise. How loud, and how long the noise happens is up to you. With this app you can also set it to text or call you if the noise level is reached per your settings.
2. Load Alfred.
I like Alfred because it is dead simple and free. It will give you all the main things you want out of a service like take a video and allow 'push to talk' over the system to chat with whomever is on camera (say your kids or wife is still at home, you can just 'pop' in and talk with them and they can hear and talk with you and not have to mess with 'answering the phone'. Alfred also will alert to motion etc if no one is there.
3. Load the VOIP. I recommend this one because it is free AND more importantly will act as a 'native dialer' so the phone will automatically make a call over WiFi (assuming you aren't keeping this this phone as a primary active line and have it in airport mode).
And there you have it. A free security system that will alert you if the smoke detector goes off, someone breaks a window, or ruffles around in your hotel room.
Hope this gives new purpose to a GREAT phone..
Dave

Categories

Resources