yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] GermainZ:
I see what you mean now, I had completely forgotten about a little check that was there since the beginning…

Some comments from the code that provide some info about the problem:

// Google Search initiated this if mApplicationId equals "voice-search"; if we continue,
// recognition will succeed but Google Search will show an error about not being able to
// connect. The user can then press "Resend audio" and it'll work, which is a hassle.
// I couldn't figure out how fix this, so I'm disabling it.

No one complained about it and it didn't seem useful to me anyway, so I disabled it. I didn't think other apps would use it this way. I've attached a build without that extra check, you can give it a try and see if it's any better.
[Xposed Framework Modules] Zheen:
Well I tried it and it still does not work. Should there be a resend audio button after it fails to search offline? Because I am not seeing one. I think the button was there in previous versions of Google Search. What should I do? Thank you for your time and for responding to consumers.
[Xposed Framework Modules] GermainZ:
I'll have to test it later then. Thanks. :)
[Xposed Framework Modules] Zheen:
Can I disable the module but at the same time enable it for voice typing? I know there is blacklisting but it doesn't work for me so if there is another way around it would be great. Thanks in advance
[Xposed Framework Modules] GermainZ:
How does blacklisting not work for you?
[Xposed Framework Modules] Zheen:
Well, what I know is that when the module is enabled, Google Search does not listen at all whether I'm online or offline. When I blacklist Google Search, it still does not listen. But when I disable the module, everything works correctly and Google Search is listening online or offline.
[Xposed Framework Modules] waterdaan:
GREAT

Thanks for this beautiful hack

Gonna save me some data

I'm trying to set something up with taker and auto voice

It's working

+1

It says something like it doesn't recognise that command

I'm on slimkat rom galaxy s4
[Xposed Framework Modules] GermainZ:
I can't reproduce this. Can you test it with all other modules disabled, please?

If it still doesn't work, can you provide *detailed* instructions of your problem, and how I can reproduce it? Thanks.
[Xposed Framework Modules] waterdaan:
Okay

Disabled all the other modules

I say- ok Google

I say- what's the time

Google shows- Didn't catch that. Try speaking again.

If I type my question in instead of speaking it, it shows me the results, no problem

I've got 3 languages installed

Block offensive words off

Location settings turned off

Don't know what other information to give you,.
[Xposed Framework Modules] GermainZ:
If you're talking about using Google Search while offline then that's not what the module does. This module is to force offline voice recognition when you do have an internet connection.

See OP for some additional notes.

Also pinging [MENTION=5839495]Zheen[/MENTION] because I think I might have misunderstood his issue, and he's actually having the same problem (using this module with the wrong expectations).

If this is happening while online then it might be an issue.
[Xposed Framework Modules] waterdaan:
Thanks for your quick reply

I am online

Voice recognition without using data works with tasker, at least voice recognition works

But voice recognition stops working on Google search (I'm online)

Excuse me for my inability to explain

I'll keep on testing it

If I find something new I'll let you know
[Xposed Framework Modules] waterdaan:
Uninstalled Google search

Reinstalled it

Downloaded 1 language

Now the error is different

I say OK Google

Response is

Can't reach Google at the moment.

Here's a log of me opening Google search and saying ok Google

https://www.dropbox.com/s/b4w834ifbv9f8zi/logcat_3.txt

By the way

Disabeling the module without rebooting works well

Edit [MENTION=4775688]GermainZ[/MENTION]

I don't think it works, I mean when I use a voice command in tasker the voice recognition does use data over the net

This is me giving a voice command several times

https://www.dropbox.com/s/9r82j8xmlu7wrg9/Screenshot_2014-06-13-13-42-14.png
[Xposed Framework Modules] Zheen:
[MENTION=4775688]GermainZ[/MENTION] is the offline voice typing/recognition more accurate than online or is it just possibly faster and uses less data?

By the way I reinstalled the module and now the blacklisting works! :) I don't know what the problem was
[Xposed Framework Modules] GermainZ:
I'll look into the Google Search compatibility when I can. If Tasker uses Google Search then it might not be affected.

Read the first 10 posts or so.
[Xposed Framework Modules] waterdaan:
Cool

If you look at the better battery stats screenshot,(52 second) you can see that Google search was using data

Ergo

(I've always wanted to say that, hope this is the appropriate occasion)

The module doesn't block Google voice from using/connecting to internet data,

While using tasker and auto voice

Yes it's voice recognition that this module is for, right?

By the way I used the last link/app from this thread
[Xposed Framework Modules] GermainZ:
Read the first 10 posts or so in this thread, one of them explains what exactly is affected.
[Xposed Framework Modules] waterdaan:
[MENTION=4775688]GermainZ[/MENTION]

How can I check if it's working

I mean how can I see if an app is using data

Is there a shell command that can monitor if a certain app is receiving data?

So I can test it

---------- Post added at 03:42 AM ---------- Previous post was at 03:24 AM ----------

I am using the voice recognition to the rightwrite this message volvo also I've set a custom ends reference in better battery stepsstats so I can see if google voice recognition is using any.com.com beta data I'm very sorry for all the mistakes in this little text test I am going to look better battery status now

https://www.dropbox.com/s/b23hw119u48wrq2/Screenshot_2014-06-14-03-32-12.png

In the screenshot of BBS you can see that Google quick search box used 14kbytes while I was dictating this message

So for me this module unfortunately doesn't seem to work

I think it's a great idea though cause I have a limited amount of data and always use too much

Hope you understand what I'm trying to say
[Xposed Framework Modules] GermainZ:
Alright, so I've just tested it with Tasker/AutoVoice, utter!, SwiftKey and NextApp Keyboard. It works as intended.

You must keep in mind that GoogleOfflineVoice forces offline voice recognition. It does not stop the application from using the Internet for other purposes… in other words, if you want to check if it's working, you'll need to do a comparison: read a long text with GoogleOfflineVoice disabled and check the data usage, then do the same with GoogleOfflineVoice enabled.
[Xposed Framework Modules] golomb igor:
Where to get Russian voice?
[Xposed Framework Modules] GermainZ:
Elsewhere.
[Xposed Framework Modules] waterdaan:
Thanks [MENTION=4775688]GermainZ[/MENTION]

I've tested it reading out a page of a book using tasker, auto voice and k7 mail

with the module enabled and then disabled and the module does work!

That's great!
[Xposed Framework Modules] :
Thank you, I am glad to have found this module. I use a Straight Talk prepaid SIM and the network data goes through quasi-proxy, and has lag. This solves it.
[Xposed Framework Modules] famewolf:
I realize the title indicates the module is android 4.1+ however I thought you should know it shows up as available for install on ICS....I thought the xposed installer weeded out modules you couldn't install....in my case it told me the apk was not valid or incompatible after downloading. I mention this because I noticed some kitkat only modules did not appear in the list even though they do show up on my kitkat devices so assume there might be a setting that needs tweaking.

I picked up 3 kyocera hydro smartphones for $15 each with the intent to use them on some projects offline so was really in hopes to use the google offline voice recognition instead of online. Can you tell me what ICS is missing feature wise or recommend some alternate solutions?

Your module works great on my other devices and is greatly appreciated!
[Xposed Framework Modules] GermainZ:
AFAIK, the Xposed Installer knows nothing about that so it can't hide modules. I'm guessing you'd see them if you searched. Can't do anything about that.

Google doesn't support offline voice recognition at all pre-JB. I don't know if this is intentional or because of API limitations, but I'm guessing it's the latter.
[Xposed Framework Modules] Hirishiolo:
some solution for my problem? thank you...
[Xposed Framework Modules] GermainZ:
Sorry, I fixed it locally but forgot to push an update. Try the attached build and let me know if it works.
[Xposed Framework Modules] nursoda:
You might want to update your 1st post (changelog only reflects 1.0and 1.1 there).

Samsung Note N7000, Galaxy S I9000, Galaxy Ace S5830
[Xposed Framework Modules] Hirishiolo:
thank you! my error message problem resolved, but I don't see any difference on the icon when I click on it...
[Xposed Framework Modules] paulle:
swiftkey vs standard android keyboard

your googleofflinevoice works well with swiftkey for me, but with normal google (android) keyboard not. Does googleofflinevoice only work with third party keyboards ? Aside from this it's a great app (or module).
[Xposed Framework Modules] GermainZ:
1.2.1 uploaded to the repo. Changes:

The widget now uses images to indicate the module's state. This should fix text getting cut off on some devices.
[Xposed Framework Modules] Hirishiolo:
ok very nice it works very well finally! ;)
[Xposed Framework Modules] jeffsf:
SwiftKey prompts for installing com.google.android.voicesearch, not googlequicksearchbox. The voicesearch package appears to operate in "online" mode at all times, even with your module active.

Looking at the source, your module only appears to hook com.google.android.googlequicksearchbox

public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {
if (!lpparam.packageName.equals("com.google.android.googlequicksearchbox"))

Is there a reason why the voicesearch package isn't hooked as well?
[Xposed Framework Modules] fenchai:
is it possible to make this work on google voice/now? because sometimes i just want it on things like, wake me up in 10 minutes, or set alarm at...simple things like that, i dont know why i should even need internet for that, if anyone knows which app lets me do those 2 things offline, im uninstalling google now..ok no xD but tell me :)
[Xposed Framework Modules] GermainZ:
If I recall correctly, voicesearch needs googlequicksearchbox. See OP for some info on what keyboard usually use.

That's different, so no (not in this module). I'd suggest you use something like utter! though.
[Xposed Framework Modules] jeffsf:
SwiftKey is quite happy with just the voicesearch package installed.

Unfortunately I found that, in digging into things, it turns out that package doesn't reveal offline capabilities in its settings menu as does the googlequicksearchbox package, nor does it seem to work offline (without your module active).

I may look into this in the future.

Thanks for your quick response!
[Xposed Framework Modules] fenchai:
Utter does not have theses features from google now, It cant even guess that i need to "wake me up" in --ish minutes, hours, this is very important. I dont know why only google has it T.T
[Xposed Framework Modules] hillz:
Does this only work in English? I tried Indonesian language and it still needed an active internet connection to work. I'm using the default google keyboard on android kitkat
[Xposed Framework Modules] boogie16345:
great app

this app works great however only in the English language other languages are not supported probably because they are not downloaded to device . other languages or only online . any help would be great for the Greek language especially thank you
[Xposed Framework Modules] XxD34THxX:
Thanks a bunch. Now my data won't skyrocket on trips.
[Xposed Framework Modules] ill13:
Thank you!

I have a nexus 5 and the online speech-to-text conversion process / accuracy is horrendous and rage inducing. By forcing offline recognition I'm back to getting close to 100% correct dictation results!

Thank you very much!!!
[Xposed Framework Modules] s.sakti:
Hi, I have some question.

do I need to have a root access before I can use this module?

do I need to install the XposedFramework to make it works?

do you use any software to monitor the traffic to make sure it really work offline? if you do, can you tell me what is the software you use??

Thanks Before :)
[Xposed Framework Modules] GermainZ:
I use Bytes Insight. Please read the OP (and linked threads) for your other questions.
[Xposed Framework Modules] ozmenmurat:
this mod is working...
[Xposed Framework Modules] MordyT:
Hello, been using this mod for a long while (almost year maybe). Recently it seems to have stopped working as expected. Whenever I do voice typing I always see data go active even if there's nothing else going on, stopping voice typing immediately kills the data connection. It also is just as slow as when I was using online mode before this mod. Where should I start troubleshooting this? Nexus 5 stock rom, 4.4.4 latest stable xposed.

Sent from my Nexus 5
[Xposed Framework Modules] martuseich:
I've been searching "Google Voice Search Not working" for answers with no success as yet.

When I attempt to use the voice recognition typing via Swiftkey (wifi connected) I get the "Speak Now" popup with the Mic icon changing as I speak indicating it is indeed "hearing" me speak, then I get a "Connection Problem" popup as expected being that I have Voice Search(10345) blocked via AFWall app (AFWall is also posting a toast telling me it has blocked Voice Search).

Shouldn't GoogleOfflineVoice function in this state?

I'm using Xprivacy as well, which shows what permissions apps are requesting and allows me to allow or deny permissions requests. I can see that Voice Search is requesting the following permissions:

-accounts/getAccountsByType com.google

-internet/connect www. google. com:80

-location/RequestLocationUpdates

-location/RequestLocationUpdates network

-internet/networkinfo is.connected

-media/audio.startrecording

-accounts/gethAuthtoken

-internet/inetaddress.getbyname 74.125.196.103

-internet/connect 74.125.196.103:80

-internet/inetaddress.getbyname 74.125.196.104

-internet/connect 74.125.196.104:80

-internet/inetaddress.getbyname 74.125.196.105

-internet/connect 74.125.196.105:80

-internet/inetaddress.getbyname 74.125.196.106

-internet/connect 74.125.196.106:80

-internet/inetaddress.getbyname 74.125.196.99

-internet/connect 74.125.196.99:80

-internet/inetaddress.getbyname 74.125.196.147

-phone/Configuration.MCC

-phone/Configuration.MNC

-shell/LoadLibrary voicesearch

-identification/serial (Original serial#)

-internet/inet

-storage/sdcard

When I grant access to Google Voice Search through AFWall (with internet connection, GoogleOfflineVoice disabled in Xposed) it functions without issue & types whatever I say.

When I try to use voice typing through Swiftkey with no internet connection and GoogleOfflineVoice disabled in Xposed I get the "Connection Problem" error message.

That suggests Android Offline Voice option isn't functioning properly.

Is there a setting somewhere that I need to adjust? Any ideas what the issue might be?

Sprint Samsung Note 4

Rooted

X-Note ROM Kitkat 4.4.4

Xposed 2.6.1

Google Offline Voice v 1.2.1
[Xposed Framework Modules] JoaoMarcos:
Working with Xposed Lollipop?
[Xposed Framework Modules] GermainZ:
Thanks for the reports. It probably isn't working with the latest Google Search app (this has nothing to do with Lollipop), but I won't me able to take a look before some time, once Xposed is compatible with my device/ROM.
[Xposed Framework Modules] martuseich:
Bummer

I HATE Big Brother Google forcing me to grant them access to however they want to use my camera & mic permissions (they probably access them elsewhere through the OS anyway). Call me conspiracy theorist but since Google maintains records of everything we ever search & NSA has been found to spying on U.S. citizens & recording all we ever do as well, I'd like to do whatever I can to thwart their every effort. I have nothing to hide but my privacy is mine (or at least should be).

I love using your mod so I'm not forced to go through Google. Until then, cutting off Swiftkey's access to the internet & Google's & other apps access to my mic, camera & storage (where I can) & continuing to type.

Thanks for all your effort. Looking forward to any updates you may offer. If I can help in troubleshooting in any way, give me a shout.
[Xposed Framework Modules] xxBrun0xx:
Do does anybody know if this works with lollipop? Used to use this module on my moto x and was fantastic! As far as I know, if you have Internet, Google will always use it to decipher your voice commands, which can be slow. So testing in airplane mode really doesn't tell you anything. This module forces Google voice search to always search offline, even when there is a network connection, which is much faster than using the Web to translate voice to text.
[Xposed Framework Modules] GermainZ:
http://xdaforums.com/showpost.php?p=59070977&postcount=91
[Xposed Framework Modules] eyesore123:
Doesn't work with Samsung G360H 4.4.4
[Xposed Framework Modules] aniruddha999:
NOT working

i have installed as u mentioned , but after rebooting its say same" "offline mode unavailable " ,. i am using jelleybean samsung gt s7262" help me
[Xposed Framework Modules] chiruscan:
Any updates on this? I just discovered this module yesterday lol

Downloaded and tried it. Not sure if its working or not. I put it in airplane mode and was able to voice dial a call and open apps successfully then turned on wifi and it did it as well.
[Xposed Framework Modules] timjosten:
It doesn't work with the latest Google Search app.
[Xposed Framework Modules] Izzysoft:
No pressure, just asking: As your statement was made more than a year ago, are there any plans to make the module working again? Maybe even an "expected time" when an update might be available?
[Xposed Framework Modules] GermainZ:
Honestly no idea :(
[Xposed Framework Modules] Izzysoft:
Thanks for the fast response, [MENTION=4775688]GermainZ[/MENTION] – though I was hoping for a slightly different answer ;) Maybe some other dev shows interest to fill the gap; your code is open (Github) and thus can easily be forked (and result in a corresponding PR ;) If someone does so, please don't forget to mention it here when an update is available – either in the current repo or as a fork.

Meanwhile, I've asked for alternatives at Stack Exchange: Using Google Voice Recognition offline. Fingers crossed for solutions!
[Xposed Framework Modules] Styleboila:
Ich would also be glad to have this.
[Xposed Framework Modules] ninestarkoko:
Maybe the "easiest" thing would be to simulate Airplane mode on per-app basis.

There's already a module that makes apps believe that there's a wifi connection even if on mobile data.

What about making apps believe that phone is in airplane offline mode?

I don't know if xposed is able to do such things.
[Xposed Framework Modules] inguna:
Solution

Xprivacy - Google Search App (Google App) - Internet - NetworkInfo.isConnected - check

Voice input will always use offline recognition.

Google search is not a system app on my device. Maybe it won't work if it is on the system partition on your device.
[Xposed Framework Modules] GermainZ:
Nice use of XPrivacy, love that module. Doesn't that break other Google Search functionality, tho? (e.g. searching)
[Xposed Framework Modules] inguna:
Damn, it totally slipped my mind. You are right. The reason is I use modified version of Google Search app 5.13.31.16 by Antonbeard from 4PDA forum, he disabled all components apart from voice input. If anyone is interested I will attach it here.
[Xposed Framework Modules] sandeshdroid:
Definitely. I am searching this from forever.
[Xposed Framework Modules] inguna:
Google App 5.13.31.16 (Voice Input Only by Antonbeard)

Apparently I am not allowed to post links yet. PM me for a link.

There is no icon to launch it. You can access it by going to Settings - Language and input - Google voice input.

There you can download offline dictionaries. To remind you nothing else is working apart from voice input. All he did was removed unnecessary components from manifest, cleaned up resources and patched signature verification in smali.

I had newer Google search app in my system partition installed, so I had to remove it, remove all corresponding libs from system/lib and I installed this mod as a user app.
[Xposed Framework Modules] sandeshdroid:
I basically need this for autovoice which needs google voice synthesis to work.
[Xposed Framework Modules] inguna:
Sent you a link.

Download offline dictionaries first.

After restricting access to NetworkInfo.isConnected in Xprivacy voice recognition works without delay, as if your phone is offline.

I am running Lollipop 5.1.1 on my phone, also this modded Google Search app works on Kitkat 4.4.4.

Don't know whether it will work on newer Android versions.
[Xposed Framework Modules] sandeshdroid:
Works with some compromisation. I have to train it again since I am not native English speaker and It cannot sync old voice data. Thanks for app.
[Xposed Framework Modules] washwash:
Can i have it too?
[Xperia Z1 Q&A, Help & Troubleshooting] NiM72NiK:
I want to buy the dock charger for my Z1 but there is no information about the exact charging time.i heard its 3000mAh @5v but because the dock only has a usb connector it means you have to connect it to the AC charger .and the AC charger is 1500mAh.

so if anyone can tell me the exact charging time on magnetic dock i would be so glad!
[Xperia Z1 Q&A, Help & Troubleshooting] Avantiel:
The dock has to plug into a wall plug for it to be used effectively. The wall plug determines how much mAh the phone will be charging at. 3000 i think is over the limit the phone can safely charge at...

I use a 2000mAh charger with my Z1 and the dock is connected to the stock sony 1500mAh wall plug and ive noticed its only slightly slower.
[Xperia Z1 Q&A, Help & Troubleshooting] NiM72NiK:
so you mean that it can charge by 3000mAh when its connected to the wall plug directly.is there any way to connect it to the wall plug directly? i mean is there any kind of USB to ac kit that doesnt limit the current ? because if we connect it to a charger(like the z1 1500mAh) it will be limited to charge the device at 1500mAh.so is there a direct kit or a 3000mAh charger should be used to charge it
[Xperia Z Q&A, Help & Troubleshooting] mromantan:
Hi all,

I have a few questions that burn me. Just received the OTA notification that .569 is available (304.4 MB)

I am running .67 with stock recovery, root and phone encryption. Will those be preserved if i OTA update ?
[Xperia Z Q&A, Help & Troubleshooting] Howell:
AFAIK root is lost and recovery is rewritten. I don't use phone encryption but I guess it is ok (or it would be stupid of Sony).
[Xperia Z Q&A, Help & Troubleshooting] brokeasshachi:
My experience has always been that OTA updates break root, and most of the time you wont be able to get it back until there is an exploit for the new firmware
[Xperia Z Q&A, Help & Troubleshooting] jerryhou85:
4.3 OTA update will take away root and you will be unable to root under 4.3 directly.

You have to use the root methods shown as below(root under 4.2-flash another recovery-flash pre-root 4.3).

http://xdaforums.com/showthread.php?t=2565850

http://xdaforums.com/showthread.php?t=2590088
[Xperia Z Q&A, Help & Troubleshooting] droidhd:
OTA left my root as it is. Check my post, how I did it:

http://xdaforums.com/showpost.php?p=50052461&postcount=36
[Xperia Z Q&A, Help & Troubleshooting] Heinous:
This was the first OTA that broke my root, even with supersu in survival mode.
[Xperia Z Q&A, Help & Troubleshooting] technaudio:
I updated ota from 4.2 to 4.3 and kept root.