Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voice typing is only available via Google Voice Typing #927

Open
Kaljurand opened this issue Mar 13, 2017 · 9 comments
Open

Voice typing is only available via Google Voice Typing #927

Kaljurand opened this issue Mar 13, 2017 · 9 comments

Comments

@Kaljurand
Copy link

Steps to reproduce

  1. Click on the mic button
  2. Google Voice Typing pops up

Expected behaviour

The user should be asked (in the settings or upon pressing the mic button) which form of voice typing they want to use. In general, there are 3 different possible forms: SpeechRecognizer service, RecognizerIntent activity, IME (with voice subtype). Each of these can have multiple installed implementations on Android. The user should be given a choice.

Actual behaviour

If Google's infrastructure is not installed on the device (e.g. CyanogenMod without Google Play services) then RecognizerIntent pops up. (That's a sensible behavior, although a SpeechRecognizer service based solution would be nicer, like done in SlideIT keyboard.) However, if Google's infrastructure is on the device (e.g. Nexus 5X) then no choice is given.

Android OS version:
Android 7.1.2

Device manufacturer and model:
Nexus 5X

The fix should probably start with generalizing the line:
https://github.com/AnySoftKeyboard/AnySoftKeyboard/blob/master/app/src/main/java/com/google/android/voiceime/ImeTrigger.java#L38

As an alternative service/activity/IME to test against, one could consider https://github.com/Kaljurand/K6nele.

Kaljurand added a commit to Kaljurand/K6nele that referenced this issue Mar 21, 2017
New behaviour:

- single tap: switch to previous IME (before: next IME)
- long tap: switch to next IME (before: open IME chooser)

The IME chooser can now only be accessed from the system menu (keyboard button in the lower corner).

The new behaviour seems more useful as it improves compatibility with IMEs that do not support `switchToNextInputMethod`, as one can now switch back to them via a single tap.

It also simplifies switching between AnySoftKeyboard and Kõnele provided that
AnySoftKeyboard/AnySoftKeyboard#927 gets fixed.
@ramack
Copy link

ramack commented Oct 9, 2017

Support if different voice services would be great. Another option should be the complete removal og the button.

@Kaljurand
Copy link
Author

Returning to this issue...

The simplest fix to this issue (with least GUI overhead) is to change the line
https://github.com/AnySoftKeyboard/AnySoftKeyboard/blob/master/app/src/main/java/com/google/android/voiceime/ImeTrigger.java#L38 from

private static final String VOICE_IME_PACKAGE_PREFIX = "com.google.android";

to

private static final String VOICE_IME_PACKAGE_PREFIX = getThePrefixFromTheSettings();

The settings could have a simple EditText (pre-populated with ""com.google.android", if you wish), or ideally a drop-down with all the available IMEs that have a "voice" type.

This fix is trivial to implement and would solve the main issue here, that an open source app like AnySoftKeyboard is locked in to using a closed-source app like Google's IME...

@anysoftkeyboard-bot
Copy link
Member

This issue is stale because it has been open 400 days with no activity. Remove stale label or comment or this will be closed in 8 days

@Kaljurand
Copy link
Author

This issue is still relevant:

private static final String VOICE_IME_PACKAGE_PREFIX = "com.google.android";

@Kaljurand
Copy link
Author

Why was this closed without any meaningful explanation?

@AnXh3L0
Copy link
Member

AnXh3L0 commented Feb 22, 2020

@kalujrand the bot has some issues and needs manual label removal. Reopening.

@AnXh3L0 AnXh3L0 removed the Stale label Feb 22, 2020
@AnXh3L0 AnXh3L0 reopened this Feb 22, 2020
@theoden8
Copy link

theoden8 commented Mar 23, 2020

There's also kaldi, android demo is here. The code doesn't seem long.

@xplosionmind
Copy link

Hello, I was surprised to find out that after installing Kõnele ASK opened the service, but then typed nothing. I’m not a developer, but is there any way to speed up this improvement? It’s really important to me.

@ewheelerinc
Copy link

The issues #2686, #1672, and #927 are all related or possibly duplicate issues so I'm cross-posting them in each issue. (Sorry for the duplicate content.)

The crux of the issue is that a voice provider needs to be available for those who use android without the google suite, like with microG or just without any google services at all.

Related information:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants