GithubHelp home page GithubHelp logo

Comments (8)

sivaraam avatar sivaraam commented on June 5, 2024 4

@rohit9625 How about changing the color of the icon (may be to a Gray) if service is not available, unclicking the icon we can show the Toast to indicate the status of service.

I think it might be ideal to just hide the icon altogether when no speech-to-text services are available. I don't see any point with bothering the user about it when their device doesn't have speech-to-text services. If I'm right, the Wikipedia app does the same.

I ran this code (https://stackoverflow.com/a/32596376) I was able to get the engines available

This is good. If it's helpful, this seems like the snippet that the Wikipedia app uses in order to recognize if speech-to-text services are available. We could consider using the same too. if it seems better πŸ™‚

from apps-android-commons.

kanahia1 avatar kanahia1 commented on June 5, 2024 2

@rohit9625 How about changing the color of the icon (may be to a Gray) if service is not available, unclicking the icon we can show the Toast to indicate the status of service.

from apps-android-commons.

nicolas-raoul avatar nicolas-raoul commented on June 5, 2024 1

For now the important thing is probably: How to find out in advance whether service is available or not.

from apps-android-commons.

kanahia1 avatar kanahia1 commented on June 5, 2024 1

Hey @nicolas-raoul, I ran this code (https://stackoverflow.com/a/32596376) I was able to get the engines available

Here are the results

WhatsApp Image 2024-04-21 at 14 17 05_3c703a78

These are the same I got on going to settings of my phone

WhatsApp Image 2024-04-21 at 14 17 05_c76f056b

from apps-android-commons.

rohit9625 avatar rohit9625 commented on June 5, 2024

I have question, i.e., what is the case or device that doesn't have speech to text feature?

from apps-android-commons.

sivaraam avatar sivaraam commented on June 5, 2024

I have question, i.e., what is the case or device that doesn't have speech to text feature?

Just try uninstalling / disabling Google's speech-to-text app and other similar apps from your device. Your device would no longer have any of those services.

from apps-android-commons.

rohit9625 avatar rohit9625 commented on June 5, 2024

I got it, thanks :)

I guess these two ways can be helpful:-

  1. Change visibility to none after checking if services are available or not.
  2. When tapped on the icon and service is unavailable, then we can ask user to enable or install speech to text services.

from apps-android-commons.

rohit9625 avatar rohit9625 commented on June 5, 2024

@rohit9625 How about changing the color of the icon (may be to a Gray) if service is not available, unclicking the icon we can show the Toast to indicate the status of service.

That's a great idea :)

Let's see @sivaraam's thoughts also.

from apps-android-commons.

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.