Post Reply

[MOD][XPOSED][4.1+] GoogleOfflineVoice - Force offline voice recognition/typing

OP GermainZ

Yesterday, 07:25 PM   |  #81  
hillz's Avatar
Senior Member
Flag Indonesia
Thanks Meter: 14
 
136 posts
Join Date:Joined: Jun 2012
Quote:
Originally Posted by GermainZ

Introduction
The voice recognition API does not allow apps to choose whether they want to use offline voice recognition or not. There's no setting for the user either. Instead, if there's an internet connection, it'll always use the online services.
This module allows you to force offline voice recognition/typing. This is useful if you're using a slow connection, if you're connected to a local network (without internet access,) etc.

What does this module do?
This module can force offline voice recognition for apps that use Google Voice. It'll work if the app uses one of the following:

  • Voice typing (used by keyboards, e.g. SwiftKey)
  • Voice recognition (for apps that use RecognizerIntent such as utter!)
It does so by setting a variable that indicates whether a network connection is available or not to false.
Voice commands inside the Google Search app aren't affected. Note that if offline voice recognition doesn't work for you in the first place, this module won't fix that.

Requirements:
Broadcasts:
You can toggle some settings from e.g. Tasker using broadcasts. Just use these action names:
  • com.germainz.googleofflinevoice.enable - Enables the module.
  • com.germainz.googleofflinevoice.disable - Disables the module.
  • com.germainz.googleofflinevoice.enable_voice_ime - Enables the module for voice typing.
  • com.germainz.googleofflinevoice.disable_voice_ime - Disables the module for voice typing.
Example from the shell:
Code:
am broadcast -a "com.germainz.googleofflinevoice.disable"
Source code:
https://github.com/GermainZ/GoogleOfflineVoice

Download:
http://repo.xposed.info/module/com.g...leofflinevoice

Changelog:
Code:
1.2.1: The widget now uses images to indicate the module's state. This should fix text getting cut off on some devices.
1.2: Fix for the latest Google Search. Revamped blacklist. Added a simple widget to toggle module status (useful to quickly enable/disable GoogleOfflineVoice from e.g. your home screen).
1.1:
The voice typing setting wasn't working correctly (because of a typo - offline voice typing was never forced.) Also, there was another typo in strings.xml, as a reboot is actually *not* required for the settings to apply.
1.0: Initial release.
Thanks:
  • rovo89 for the Xposed Framework.

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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Xposed Framework Modules by ThreadRank