yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] brandall:
V2.2.4.1A up!

Hey folks, as far as you’ll be able to tell, this is a small update, but there are MASSIVE behind the scenes changes. It’s the latest framework I’m using for the Kickstarter video (contains memory stack and conversation code (although they remain disabled! (sorry to disappoint!))), so I thought I may as well throw it out here.

This is my very last attempt to run utter! in the background without a persistent notification icon to prevent Android from killing it. I like to think all of my test devices purr like kittens, but still Android kills utter! when resource is required. It’s normal behaviour, but still annoying! Desperately want to avoid the persistent icon, for only reasons of users associating it with an application draining battery.. Not that it actually makes any difference at all.. but hey.

Anyway, there’s a complete rebuild of the way utter! is clinging on to the speech engine – hopefully the IVONA silences will be less frequent, but their update didn’t resolve the issue.

There’s a rebuild of the custom listener to try and avoid loops and ‘unresponsive’ server time-outs…

I think both of the above work a lot better, but do let me know either way!

Included:

Search for videos of ‘blar blar’

I’ve just realised I haven’t properly handled the YouTube app not being installed – Oops.

Shake or LPS or launcher shortcut will cancel the current speech request without needing to say ‘cancel’.

Coding/speed/algorithm improvements a plenty and I’ve stripped out older code - utter!’s diet continues as the apk is down to 313KB.

All commands should be lightening quick... should be...

I best crack on...
[Android Apps and Games] mahootzki:
Maybe I'll sound stupid, but is this actually supposed to do anything? Whatever I do, nothing happens. It keeps on saying "really sorry but I didn't understand that request" even though the right request shows up on top...

sent from Brooklyn NY using a Jelly Beaned Galaxy S lll
[Android Apps and Games] brandall:
It's definitely supposed to work as normal... When you say 'shows up top' do you mean you have the visual results enabled? Have you tried typing your command in manually?

Were you running Jelly Bean when you tried the last version?

Let me know!

Sent via xda premium
[Android Apps and Games] mahootzki:
I guess I have it enabled, where do I have the option to type it?

I'm on AOKP JB for Galaxy S3

sent from Brooklyn NY using a Jelly Beaned Galaxy S lll
[Android Apps and Games] brandall:
There's a text box at the top in the advanced testing menu. You can disable the visual results in there too, if you want.

Sent via xda premium
[Android Apps and Games] lorawithano:
I can't get the advanced testing menu to open. Repeatedly says "permission denied". What am I missing?

SwiftKeyed from my Skyrocket using XDA Premium
[Android Apps and Games] brandall:
Drop me a PM for the password. There are/will be a few things in there I want to keep locked away until release.

Sent via xda premium
[Android Apps and Games] Royz:
will try..
[Android Apps and Games] Blurrix:
I'm also getting "sorry cannot understand that request" (poor voice interpretation). The only commands that work well are weather and time. I'm running JB too. I guess I'll wait for an update for the JB ROM to see if it fixes, considering it's a preview build.
[Android Apps and Games] brandall:
Thanks for letting me know. If you get a moment, could you uninstall Google Voice Search and install the Play Store Version please, then reboot. See if that solves the problem?

A Nexus 7 is on my shopping list for JB testing...

Sent via xda premium
[Android Apps and Games] Drifternz:
What did you do? :(

Since 2.2.4 1a I have had alot of trouble getting utter to find my apps. It seems to find settings and system stuff fine, but keeps loosing the other installed apps like angry birds. After opening one of the system apps like settings first, it seems to have a better chance of finding the other apps (not guaranteed though) until it miss hears a request. after that it can no longer find the other apps. The version before this one had no trouble finding any of the apps on my phone.

Galaxy S2 standard, not rooted. ICS system
[Android Apps and Games] brandall:
I must've changed something for the worse! But I'm not sure what... Can you try opening the main (n)utter! app. Wait 30 seconds and then test the opening app commands again please to see if they are any better? Thanks for letting me know!

ANNOYING WARNING! Thanks to user ~kyle who pm'd me about the recognizer error loop being back! Oops! Sorry if this happens to you... You'll have to kill the app in a Task Manager to get it to shutup...

On this subject, by coincidence, I've completely solved the recognizer loops and 'busy' states. WHOOP! I took the plunge into Google's source code and found that if you receive a recognizer error and react to it by stopping the recognizer, the act of stopping the recognizer throws an error, to which I react by stopping the recognizer..... And so on and so forth...

I bet you're all glad I shared that with you...

Fix coming tomorrow!

Sent via xda premium
[Android Apps and Games] Drifternz:
Sorry.. opening the app commands for 30 seconds didn't really seem to make any difference to it.
[Android Apps and Games] brandall:
hmmm.... Had a look back through the code and can't see anything I've done. Do the visual results work for you in the advanced testing menu? If so, can you confirm if the voice command is heard correctly but not processed correctly? Ta

Edit: I have just thought of something I've changed that's possibly related. I'll check.

Sent via xda premium
[Android Apps and Games] brandall:
V2.2.4.2A up!

Hey folks, BIG thanks to ~kyle for pm’ing me (not enough posts to join us here in the dev thread just yet!) with the recognizer loop. I’m pretty certain they are a thing of the past now – if an error does occur, I believe I handle it in a way to avoid problems...

We shall see…

BIG thanks to Drifternz for reporting utter! not recognising the app names properly – turned out to be quite a major flaw in my coding to do with external storage, that extended to other features too. Good work!

The above fixes are in this version along with some more intelligent coding that you probably won’t notice…. So nothing very exciting really…. Sorry!

Working on plenty of other features that I’ll be chucking out very soon!

Let me know if there are any issues you spot.
[Android Apps and Games] Drifternz:
Heaps better..thanks

Sent from my Galaxy SII
[Android Apps and Games] brandall:
V2.2.4.3A up!

Hey folks, this is my latest test build that appears to be running more smoothly, again you probably won’t notice any difference (boring!), but important changes have been made ready to slot the next load of commands in...

Added:

Go to +’website name’

Example: “go to android police dot com”.

It’s not been too easy to get this command working to a good standard, but it’s about ready for you to give it a run out.

I’ve changed the root commands from ‘Android System’ to ‘Superuser’ – it seems to roll off the tongue more easily… So it’s now:

‘Superuser reboot recovery’

‘Superuser hot reboot'

‘Superuser reboot'

‘Superuser reboot bootloader'

EDIT: I'm going to add an option in for whether or not you want utter! to confirm the Superuser permissions.

Best get back to it!
[Android Apps and Games] Blurrix:
Thank you that seemed to work, but the problem reoccurred again when I changed the speech engine. I found it's a bug in the ROM where the speech engine isn't changing properly. Its using half and half. So I guess I'll have to leave it at default for now...

I'm getting a nexus 7 as well, but in a few weeks. So I can do testing on both my GS2 and N7 if that helps.
[Android Apps and Games] Drifternz:
Whoa !

Version 2.2.4 3a Keeps going in to a loop every time it speaks..no matter if it is started from the shortcut, shake to wake or even just turning shake to wake on in the command panel.

The only way I can stop it is to restart the phone..

The it happens the very next time I try it.

Edit..Ok..uninstalled and wiped out the utter folder and reinstalled..Seems to be working fine now..let you know if it acts up again.
[Android Apps and Games] Drifternz:
Ok..hit another bump..utter started answering me,but would do nothing after I spoke. opened application settings and cleared data and now it is working fine again.

Sent from my Galaxy SII
[Android Apps and Games] brandall:
Good news on the extra test devices! :) I'm actually to blame for refusing to release the voice engine in my code - to avoid the initialization issues of particularly IVONA, I'm not letting go of the current engine even if it's changed in the Android Settings. I'll post a fix in the next release. I hadn't actually checked if this caused issues with the recognition... Thanks, I'll see if I can replicate.

Whoa! That's not good... Right now I can't think of a possible cause...

hmmm.... Ok, can you leave the logging enabled in the advanced menu and if you hit one of these problems again can you grab the log from the advanced menu please. It'll save the output to the root of your storage card. If you could email it to me (email in the app) I'd be very grateful. Thanks in advance.

Sent via xda premium
[Android Apps and Games] MemoryController:
What's the advanced testing menu item? It always says permission denied

Sent from my GT-I9100 running CM10
[Android Apps and Games] brandall:
Drop me a PM for the password.

Anyone else welcome too.

Sent via xda premium
[Android Apps and Games] morg01:
Yep same here, caught in a loop, eventually it stops. Happened even after an un install and reinstall.

Using super su if that makes any difference

Sent via courier pigeon
[Android Apps and Games] brandall:
Damn... Thanks for letting me know. Could you enable logging and export and email me the log if it happens again please?

If I haven't already given you the advanced testing password, please drop me a PM for the password.

Thanks in advance.

Sent via xda premium
[Android Apps and Games] brandall:
V2.2.4.4A up!

Hey folks, really appreciate all of the reports of the loops, both here and by PM. I think I’ve caught the problem….

Let me know if it’s solved please!

In this version you can change your CPU Governor (if you’re rooted):

‘Superuser set the CPU governor to +governor name’.

There is only a VERY basic algorithm applied to this and it will need a lot of tweaking to recognise governors such as ‘smartass’ or any others that aren’t actually real words… I’m not even sure if ‘ass’ will make it through the ‘block offensive words’ filter in the Voice Search Settings!? – there’s a link from the main app if you want to check your current setting.

Enjoy!

Ps. If you want an app/widget to check/monitor your CPU governors, I highly recommend System Tuner (Pro). It’s a beast of an app for many purposes.
[Android Apps and Games] brandall:
Thanks for letting me know. Can you test your voice engine files please by following the link in the app to the tts settings. Press listen to an example and see what happens. Check if additional voice files are required to be downloaded too.

As it's behaving normally with the correct icons, it suggests that the maybe an issue with your media stream... Does it initially say 'yes master?'

Let me know and we'll get it working!

Sent via xda premium
[Android Apps and Games] Drifternz:
Ok..the logging in the advanced menu does not work for me. Both Capture Logcat and toggle logging both just crash the app..

Logging gives me a blank screen that I can do nothing with nor get out of untill the app crashes and Capture logcat gives me a blank screen with the keyboard that to is stuck untill the app crashes.
[Android Apps and Games] brandall:
Not having much luck are we! Did the latest release fix the loops for you though?

When the main app is open there is a lot of background code going on, which will work your cpu pretty hard. When you have a spare two minutes, could you say the developer password outside of the main app and get confirmation that it is accepted. Open the main app and wait until the Superuser prompt or toast has happened. Then open the advanced menu and try the logging option.

I'm wondering if your device is freezing because there is too much going on. Waiting until after the superuser confirmation means it has all completed.

Let me know and thanks in advance!

Sent via xda premium
[Android Apps and Games] Dtrieb:
Brandall I would test more for you but its hard to use everything on english. If you get german out I can test a lot more.
[Android Apps and Games] Drifternz:
Umm Superuser prompt or toast? I don't get any superuser prompt or toast after opening the main app. Does the phone need to be rooted to get the logging? If so, there is the problem, I am not rooted.

The looping problem has stopped, but I was trying to catch the problem of it answering occasionally but not accepting an input. It seems to be an intermittent problem. But once it has happened it can last for 5 or 6 or for input attempts before it actually gets anything.

What happens is.

1 I press the shortcut or shake the phone.

2 Utter answers "yes master" and the listening prompt comes up.

3 I say something but the prompt stays. then after a moment the prompt goes and nothing else happens. No "didn't hear anything" or " couldn't find the app" or "didn't understand" just nothing.
[Android Apps and Games] brandall:
Oh right, yeah I just assume that everyone here is rooted! You do need root to be able to get the log output. I'll see if I can find a workaround... I'll also check if the non-root'ness is causing the black screen issue.

Thanks for the report of what's happening. I've a feeling this may be Android killing utter! mid command... Do you get an 'Android murdered utter!' toast much?

Cheers

Sent via xda premium
[Android Apps and Games] brandall:
Thanks. Command construction is running flawlessly on my device now, so it will be out very soon. The commands can be in any language. Hope this will work for you!

Sent via xda premium
[Android Apps and Games] Drifternz:
Sorry to say that the only time I saw the toast of android murdering utter was when I was trying to get the logs...
[Android Apps and Games] brandall:
I replied to this, but xda app quoted something random not even from this thread!? My response:

Thanks. Command construction is running flawlessly on my device now, so it will be out very soon. The commands can be in any language. Hope this will work for you!

Sent via xda premium
[Android Apps and Games] brandall:
Question for you folks:

How is your music organised on your external storage? Is it always in a main folder called 'music' then sub folders of Artists, followed by their sub album folders and finally the tracks?

Trying to work out how best to handle the 'play music' command. My mp3s aren't all tagged correctly, so it's a nightmare to identify exactly what 'track 3' (of which there are loads called that) is!

Sent via xda premium
[Android Apps and Games] jonas2295:
I have mine named correctly but they are not really sorted. Go a folder called music and then i have put all my music together over the time.

I use spotify quite often since a few months and I think there is an api or sth like this to play music with the spotify player (sound Hound let's you do this).

Hope that helps you :)
[Android Apps and Games] eisenbathb:
I personally have all mine in just the music folder. No sub folders.
[Android Apps and Games] ironlood:
My music is sorted all random like. No notable organization. I do have a lot of mp3 tagged tracks I have OCD like that but nothing else other then that
[Android Apps and Games] Drifternz:
Hi Brandall

Found another bug.

When trying to do a reboot on a unrooted phone. The phrase "Your device does not apper to have root permisions" goes in to an endless loop.
[Android Apps and Games] Dtrieb:
So i have wait a little time. Thx for the answer.
[Android Apps and Games] brandall:
Thanks for letting me know, I've had a really good look and can't see anything that could cause a loop... I know it's annoying to find out, but can you try and replicate please - does it happen every time?

If you have a task manager open when you do it, killing your voice engine and (n)utter! should save you having to reboot.

--------

Thanks for the replies about the music, looks like I'm going to have to check all eventualities to establish the correct track. That's going to be a little bit tricky... Doh!
[Android Apps and Games] Drifternz:
Yep..every time without fail. It is OK on other commands so it must be something to do with the root functions as it only does it with the root commands.

It tells me it it feeling sleepy then goes in to the "your device does not appear to have root permissions loop"
[Android Apps and Games] brandall:
Thanks for confirming. Knowing the order of the speech output gives me more to go on. I'll investigate further.

Sent via xda premium
[Android Apps and Games] IAmAN00bie:
Looking forward to this. And a free bump so more people can see this awesome idea.
[Android Apps and Games] Blurrix:
Awesome

Good to see a new update. Received my nexus 7 so will begin testing on both. :D
[Android Apps and Games] NotEnoughMinerals:
Looking awesome, just post the link when the kickstarter is up and my pledge will be on its way.
[Android Apps and Games] morg01:
@brandall

Installed the latest apk, seems to be working as in nutter listens for commands but returns no information or dialogs or sound?

Also I should mention that the previous version did pop up a lot of toast notifications about android killing nutter.

Anyway I'll keep testing and try the ivona suggestion and report back

Anyway nice to see you back, keep it up!

Edit

Yep working

Sent via courier pigeon
[Android Apps and Games] frenzyboi:
Doesn't work on my phone . Just crash on startup. Using Xperia Ray 2.3.4.
[Android Apps and Games] eddykuhan:
hi brandall,

V2.2.4.5A FC on my htc wildfire at startup!

i had a (n)Utter! shortcut created via previous version..When i hit the shortcut (n)utter listening and completing command as normal..But when ever i hit (n)utter! app or the utter! quietly waiting notification in notification bar it FC..
[Android Apps and Games] brandall:
Lucky you! Thanks.

You're very kind thank you.

Thanks for letting me know - Do you think it was just an IVONA issue? It's good to be back!

Damn... Any chance you could grab me a log? +1 Thanks meter waiting...

Ok.. damn. The app won't work correctly if the main app can't be opened - any change of a log? Thanks meter waiting too!

Forget to mention that I've dropped 2.2 compatibility, but I don't think that's the problem here...
[Android Apps and Games] RoboJoe:
Utter! seems to get killed almost immediately. I uninstalled the old one, installed the new one and tapped the on/off switch. A red (red? Please make it consistent with the ICS theme!) icon shows up saying utter has become self aware.. Then after a few seconds, it simply goes away. I didn't even see anything about utter in the logcat.

Let me know what I can do to help you get to the bottom of this.

Running a tweaked ICS Touchwiz ROM on a GS3.

---------- Post added at 07:55 AM ---------- Previous post was at 07:38 AM ----------

Ugh. I jumped the gun, a reboot resolves the issues that I was having. Unfortunately, now utter just "computes" forever, though it seemed to detect when I stopped talking just fine. In fact, it's computing as I write this, on the command "Call me Joe".

I should have noted that I'm running the latest hacked version of Google Now. I'm willing to bet that it's causing the issue.

Anyway, let me know if I can do anything to help.
[Android Apps and Games] brandall:
V2.2.4.6A up!

Thanks for letting me know. The icon is only temporary! It'll be replaced with something more subtle soon. Same with the on/off switch in the app - it's ugly. The bug about the notification icon disappearing is here. Please star it! It doesn't seem to alter the behaviour though.

I'm not sure what effect having the latest Google Now installed will have... You're my guinea pig! If you go to the troubleshooting tab in the main app and type a command in, does it work? This type of issue is usually associated with the Google Voice Search app - If you're running a Google Now/hacked version of it, that is most probably the cause...

I've fixed the crash on opening - It was a compatibility issue. Should work now.

For new commands see this post and see the command list in the app for instructions.
[Android Apps and Games] frenzyboi:
The latest version works on my phone - 2.3.4 Xperia Ray! :laugh: but the wave-to-wake doesn't work. I on-ed Utter, then enable this. Kept waving but it doesn't work. Am I doing something wrong here?
[Android Apps and Games] brandall:
Glad it's working ok :)

The wave rhythm might take a little practice... I wasn't really sure how I could let a user know they were on the right rhythm or not!?

First off, disable and then re-enable it just to make sure. Then with your hand almost covering the device wave across it in a windscreen wiper fashion... Start off wiping back and forth fast and very gradually slow down until hopefully it vibrates! Good luck! Do let me know if you can't get it as there might be a bug...

Please can anyone let me know if any command is slow for them. All the released ones should be lightening fast!

Sent via xda premium
[Android Apps and Games] morg01:
@brandall

Had a problem with the previous apk, I couldn't exit nutter, the new one exits fine, ivona doesn't seem to be a problem for me at least?. . . I'll do more testing

Good stuff!

Sent via courier pigeon

---------- Post added at 05:00 PM ---------- Previous post was at 04:48 PM ----------

@brandall

Yeah there seems to be some disconnect between the off and on screen icon, I installed the latest, then turned it off via the app, then pressed the shortcut button which started the process to listen but obviously the app was off, so tried to go into the app but was presented with a blank screen with just the nutter symbol on top.

Edit

Yep definitely something weird with turning off the app and then pressing the shortcut button

Sent via courier pigeon
[Android Apps and Games] brandall:
Mistake in my code not updating the application status to on via the launcher not the main app - beginners error! Great spot, thank you +1

I can't replicate the blank screen though, just the button still showing off, even though the app is clearly on. Can you replicate the blank screen, or was it a one-off? I'll get a fix out shortly for the button. Thanks again.
[Android Apps and Games] morg01:
Nope did a reboot, and it's seems to be fine now apart from the disconnect between shortcut and app

Cheers

Sent via courier pigeon
[Android Apps and Games] ironlood:
Quick question... is the red icon at the top gonna be persistent as long as utter is "Quietly Waiting"
[Android Apps and Games] brandall:
It has to be, otherwise Android can kill the app whenever it likes... even mid calculation... I'll make it so the icon can be customizable, but the app wont function properly or be instantaneously available otherwise...

Sent via xda premium
[Android Apps and Games] ironlood:
well that makes plenty of sense to me and since you have planned for it to be customizable you have already answered my second question :D

This may have been asked before but do have any plans to have a phrase execute multiple commands? For example... you shake-to-wake the phone and the for the command you say "Activate Omega Squad" in turn this triggers a few things that have been set by the user turn off bluetooth... turn on wifi... and make ringer silent
[Android Apps and Games] BaYRiCaN:
Can't seem to get it to work. Used to work on my last galaxy nexus but not on my new one. When i give it commands it just shows the notification Utter is working... but nothing happens. Any help would be awesome

Swyped From My G-Nex via Xparent Red Tapatalk 2