GithubHelp home page GithubHelp logo

Can't get locales on Android about speech_to_text HOT 6 OPEN

FaFre avatar FaFre commented on August 14, 2024
Can't get locales on Android

from speech_to_text.

Comments (6)

sowens-csd avatar sowens-csd commented on August 14, 2024

Is this on a real device or a simulator? If real which device?

I'm definitely not happy with that method of getting the locales. Sure wish Android with fix the default previously working method or implement their suggested new method consistently. However, I've never seen it just hang. That's very surprising. Can you do a run with debugLogging: true in the initialize call and post the log output?

from speech_to_text.

FaFre avatar FaFre commented on August 14, 2024

This is on a real device Xiaomi Poco F3 (M2012K11AG). I use LineageOS 20 (Android 13) with all available Android patches until 05.04.2024, so the System is very up-to date.

This is the output:

D/SpeechToTextPlugin(11005): Start initialize
D/SpeechToTextPlugin(11005): Checked permission
D/SpeechToTextPlugin(11005): has permission, completing
D/SpeechToTextPlugin(11005): completeInitialize
D/SpeechToTextPlugin(11005): Testing recognition availability
D/BluetoothHeadset(11005): Binding service...
D/SpeechToTextPlugin(11005): sending result
D/SpeechToTextPlugin(11005): leaving complete
D/SpeechToTextPlugin(11005): leaving initializeIfPermitted
D/BluetoothHeadset(11005): Proxy object connected
D/SpeechToTextPlugin(11005): Found a headset: android.bluetooth.BluetoothHeadset@1be0189
I/Gralloc4(11005): Adding additional valid usage bits: 0x546c08202000

I should have everything set up:

Screenshot_20240411-092222_Settings
Screenshot_20240411-092159_Google
Screenshot_20240411-092140_Google
Screenshot_20240411-092131_Speech Recognition and Synthesis from Google

from speech_to_text.

sowens-csd avatar sowens-csd commented on August 14, 2024

So on newer Android builds locales are retrieved using on device speech recognition if it is available. From what I've seen in the past some devices, possibly including Xiaomi do not fully implement all parts of Android. I think there is/was some disagreement with Google that blocked it. I wonder if the on device speech recognition is not working. I'll have a look at the way it looks up the on device and see if maybe it's failing to catch an exception or something there.

from speech_to_text.

FaFre avatar FaFre commented on August 14, 2024

I'm using LineageOS which should be almost vanilla Android.

from speech_to_text.

FaFre avatar FaFre commented on August 14, 2024

@sowens-csd when you can give me a bit of guidance on how to debug it, I will happily do it. I'm just not really familiar with native android to build up a small test application with ease.

from speech_to_text.

sowens-csd avatar sowens-csd commented on August 14, 2024

Thanks for the offer. I’d love to work with you on it. Unfortunately it will be a few weeks. I’ll post again when I can work on it. Sorry for the delay.

from speech_to_text.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.