On Sun, 22 Nov 2020 08:31:04 -0600, kelown wrote:
>> o Hacker's Keyboard (the mic button doesn't work at all)
>
> The mic on my Hacker's Keyboard launches the native Google voice typing
> app and works fine. Perhaps your anti-Google tweaks have something to do
> with it?
Hi kelown,
Thank you for your purposefully helpful information that the hacker's
keyboard mic likely launches a google speech-to-text API of some sort.
o <
https://i.postimg.cc/9FmRKqnz/stt01.jpg>
I hadn't thought about it, but I guess they _all_ use the Google STT API,
where, for sure, I must have multiple scores of anti-Google settings, any
one of which could be blocking their access to the SST API (perhaps GSF?).
It's interesting that the Google Gboard is the only mic that works for SST,
but it could simply be that Gboard uses either a built-in API, or, it could
be that Gboard calls a private SST API, or that it calls the public SST API
differently than do the other virtual keyboard apps.
Running a subsequent search, I find your hint is likely correct:
o How to integrate Android Speech To Text?
<
https://www.tutorialspoint.com/how-to-integrate-android-speech-to-text>
"Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
See also:
o How to create a simple dictation app
<
https://www.androidauthority.com/converting-speech-to-text-voice-dictation-app-976732/>
o Android: Speech To Text using API
<
https://www.viralpatel.net/android-speech-to-text-api/>
What I "might" do, to test this out, is try to integrate that myself:
o Report: My first "hello world" using Android Studio freeware
<
https://groups.google.com/forum/#!topic/alt.comp.freeware/qEqThtRwZAg>
It would be a lot of work just to debug a keyboard though, but I might get
more information about what 3rd-party keyboards do differently than Gboard.
Btw, there appear to be _two_ Speech-to-Text "services", based on this:
o Android – Enable Speech-to-Text (Voice Input) Keyboard Feature
<
https://www.ryadel.com/en/android-speech-to-text-voice-input-keyboard-feature-enable-setup/>]
1. Enhanced Google Service
2. Basic Google Recognition
Which also claims a "Google app" must be running for STT to work:
"The first thing that you should check is that the Google App
is up and running, because it's required for the speech-to-text
feature to be available"
Checking with "App Manager" (which is _great_ by the way!), I
see I have it permanently disabled - so I need to experiment a bit.
o <
https://i.postimg.cc/9FmRKqnz/stt01.jpg>
For example, this guy sought an Android keyboard with STT outside GSF:
o Android keyboard with speech-to-text that does not use Google services
<
https://softwarerecs.stackexchange.com/questions/26732/android-keyboard-with-speech-to-text-that-does-not-use-google-services>
That quest led, partly to this app with internal speech-to-text code:
o Speech to Text Keyboard - Voice to Text Typing, by Innovative World
<
https://play.google.com/store/apps/details?id=com.language.English.voicekeyboard.chat>
"This voice typing keyboard uses a built-in speech recognition
method which turns your speech to text."
However, after installing & pressing the red mic button, it errored:
"Your system don't support speech input" [sic]
In addition to that (failed) app, that quest led to Dragon STT software:
o <
https://www.nuance.com/dragon.html>
Where I had recently run into Dragon in the Windows newsgroup:
o Recommended Speech-to-Text (STT) Windows freeware to transcribe a YouTube audio stream to text?
<
https://groups.google.com/forum/#!topic/alt.comp.microsoft.windows/zzLfgMs0AKc>
In summary, I think you're correct, given I have most Google services
disabled, where I guess I can stoop so low as to temporarily enable some of
these Google services just to test if that's what's killing the STT API.
--
App Manager is fantastic!
o <io.github.muntashirakon.AppManager> [mine is version 2.5.17 (368)]