Random Thoughts – Randocity!

Google Android: How to fix Speech to Text “Couldn’t Connect” error

Posted in Android by commorancy on April 3, 2012

[UPDATE: 2019-06-25]: Google seems to have retired its legacy speech-to-text (S2T) services for older Android versions including Gingerbread (2.4) and below. If you have Gingerbread and S2T is no longer functioning for you, this is likely the cause. This service retirement likely impacts some newer Android versions, which also rely on this older service. Because Google has retired the service, it will no longer function ever. If you need this feature, you’ll need to upgrade to a device that can run a newer version of Android which supports the “Ok, Google” assistant. It seems that Google is moving forward by replacing this older S2T functionality with its newer “Ok, Google” voice assistant. If you have a Samsung, you may be able to use Bixby. This is Samsung’s own voice assistant. On with the article…

While this isn’t an overly common problem that I’ve found with Android, it is a problem that I have run into that has entirely baffled me.. until now. Note, I am running Android 6.0.1 on my Samsung S5. Even on my S5, the keyboard microphone button links to and uses the “Ok, Google” engine, not the legacy service. Note that this article was written in 2012. Some of the below, particularly as it pertains to downloading keyboard packages likely won’t help older devices. However, the portion discussing why this feature doesn’t work (i.e., Internet) is still valid. If you have an older device, you may find this functionality no longer works even if you DO have Internet available. This is because Google seems to have retired its legacy Android S2T service as of spring 2019.

To use the speech to text functionality (specifically voice search or voice keyboard input), you are required to download a package onto Android initially. After downloading, I thought that I would be able to use this functionality all of the time. Let’s explore why this isn’t true.

Text to Speech Input Troubles

On the Android Keyboard (that is, the non-Swype keyboard input), there is a small microphone symbol. Why this isn’t on the Swype keyboard is anyone’s guess? If you click the little microphone, the microphone feature activates and allows you to speak your text. The phone is then supposed to convert your speech into text. This is particularly handy while driving. Unfortunately, most of the time I always seemed to see the error ‘Couldn’t Connect’ when attempting using this functionality. After all, I had downloaded the necessary packages. At first I thought it had something to do with the microphone. So, I plugged in different headsets and different bluetooth devices, but it still only randomly works. Sometimes it works perfectly and other times not. I also tried restarting my phone thinking there was some kind of service that was not working properly. No luck with any of this. For a while, I had given up on even using it. However, I finally decided to get to the bottom of this issue.

This would seem to be a very handy feature while in the car. And, it is, when it works. In my car, however, most of the time it doesn’t work. I couldn’t figure this one out at all. I kept thinking how lame it is that the one feature you absolutely need while driving is Speech to Text. Yet, it is the single feature that is the most unreliable. However, today I have finally realized why this functionality only intermittently works. It requires the Internet to function.

The Internet?

Why would this service need the internet? Apparently, whatever data was downloaded only enables the feature, but it doesn’t actually do the speech to text conversion in the phone. Apparently, the audio input is sent off to one of Google’s servers on the Internet (can you say, “Privacy Issue”) to be processed and the text sent back to the phone after conversion. The phone doesn’t actually do the conversion.

My Rant

While I understand the audio processing needed to decode an audio file may not be capable within the phone (although, Siri seems to do a great job offline in the iPhone), the phone should at least have some offline capabilities. However, the error message here is just absolutely stupid. It doesn’t explain anything. If the Internet is not available and this service requires it, the phone should pop up a message that either explains that no Internet is available or it should simply remove that functionality from the keyboard (grey it out) until the Internet is available. Why try to allow use of this functionality when the Internet is not available? This is both a confusing and stupid design. Google, you need to fix this design fast.

So, you’re probably asking why it periodically worked in my car? First, my phone is not Internet enabled. Second, I refuse to pay $80 a month for a 3G data plan that’s half the speed of my cable service and offers half or less the amount of data at twice the price. Instead, I pay for an ‘unlimited’ MiFi device that I don’t always turn on in my car. Sometimes it’s on, sometimes it isn’t. That explains why this functionality sometimes works and sometimes not.

I use the MiFi specifically because it works with all of my devices and is not locked to only one device. It allows for more data throughput, due to the plan rate. It is also a non-contract prepaid service, so I don’t have to worry about being stuck in a hugely long contract. If something better comes along, I just stop payment and walk away with no penalties. Specifically, I use Virgin Mobile’s MiFi that is actually using the Sprint 3G Network. I digress.

How To Fix

If you’ve been searching all over the Internet trying to figure out why this functionality only sparsely works and how to fix it, this feature requires the Internet. If your phone is not 24/7 Internet capable and you use WiFi for connectivity in select places, like myself, you will run into this problem when trying to use ‘Speech to Text’ from the Android keyboard while there is no Internet connectivity. To fix this issue, you either need to subscribe to a phone dataplan so you have ‘Always On’ Internet service or carry a MiFi device around with you and turn it on when you want to use Speech to Text. A hassle yes, but complain to Google as they are the ones that designed it to require the use of a Google server to decode the audio.

So, there you have it. Problem solved, mostly. At least, it’s solved for Android 2.2. If your have a later version of Android, your mileage may vary.

[UPDATE: 2012-05-04]

My bad. It appears that Siri does, in fact, require the Internet for Speech to Text conversion just like Android. This also goes for Alexa, Bixby, Cortana and even “Ok, Google”. So, I guess this article applies to the iPhone and all other voice assistant devices as well.

49 Responses

Subscribe to comments with RSS.

  1. Dennis said, on May 29, 2019 at 9:44 am

    My android phone is still stuck on version 2.3.6 Gingerbread (thanks to samsung refusing to support their products) and was working fine with the speech recognition until just about a week ago. Now it ALWAYS says “Couldn’t connect” even when there is a known good wifi connection. Newer versions of android have at least some degree of voice recognition built in. I am wondering if google has decided to shut down the server for voice recognition.

    Like

    • commorancy said, on May 29, 2019 at 11:44 am

      Hi Dennis,

      Thanks so much for your comment and I’m glad you asked this question.

      Unfortunately, Google “end of lifed” Gingerbread back in 2017 for Google Play. This means that eventually, services may also stop working. It’s more likely that Google’s newest OS versions support an updated protocol for “speech-to-text” with Google shutting down its older legacy support. On 6.0.1, speech-to-text is still working, so I know this service is still online. This is just a guess, however.

      Because of the age of this phone and because of your issues, this also means I can’t rule out physical problems with your device. It is quite old and electronic components can break and wear out. Sometimes when batteries get old, some components might not even have enough power to function. I might suggest that you try hooking up a headset or a Bluetooth headset and try speech-to-text one more time. It’s possible the built-in microphone has decided not to work. You might also consider a new battery, but be sure to get a return policy on the battery in case that’s not the issue.

      Good Luck..

      Like

      • Dennis said, on May 29, 2019 at 7:44 pm

        The hardware is still fine. I did change the battery a few times, but the rest of the phone is working good. So its definitely not a hardware issue. I do have another phone (android 4.4) that isn’t activated and it will do voice recognition without wifi.

        I do suspect some funny business by google and others. When the phone was new, it was very snappy and responsive. Now, it can take a minute just to make a call. I certainly wont be getting another samsung since they don’t keep their customers updated to the latest version of android.

        Like

      • Dennis said, on May 30, 2019 at 4:54 am

        One thing that would say for sure is if someone else with a samsung phone that hasn’t been upgraded past android 2.4 tried the voice recognition microphone and it fails when it used to work.

        I tried to capture the IP traffic using my router, but the router only captures successful connects – so I wasn’t able to get the IP address used by google for voice to text services.

        Like

        • commorancy said, on June 11, 2019 at 7:04 am

          This sounds like Google may have retired the servers and the phone is receiving a “connection refused” message. For this reason, you likely can’t capture the traffic easily. This would also seem to confirm Google’s shutdown of services for legacy Android devices.

          Like

        • RF said, on June 25, 2019 at 10:45 am

          *Raises hand*

          My 2.3.4 Gingerbread Samsung Android stopped recognizing speech-to-text a few weeks ago and I only tried to figure out why today. After trying every troubleshooting procedure I can find, I am inclined to believe Google has disabled the feature.

          Like

          • commorancy said, on June 25, 2019 at 10:52 am

            Hi RF,

            It seems that Google has retired its legacy text-to-speech engine from service without recent notice. That doesn’t mean Google didn’t notify us at some point in the past, but Google’s notifications surrounding retirement of OS services is severely lacking. I will update the article regarding this retirement so that anyone who comes looking will understand what’s going on. Thanks for your report, also.

            Like

  2. mehong said, on October 6, 2016 at 8:49 pm

    awesome post!

    Like

    • Ben said, on October 8, 2016 at 2:09 am

      I realize this is an old post but I was trying to figure this out myself using a new lg g4 that I could not speech to text unless I used wifi or data but yet I owned an htc one x and an htc one m8 and both could speech to text without any data or wifi, it worked flawless so I was and still am very disappointed that I can’t do the same on my newest phone.

      Like

      • commorancy said, on October 19, 2016 at 2:53 am

        Hi Ben,

        Some of it may be to do with the keyboards installed on your device. Apparently, some keyboards have more speech-to-text capabilities than others. It’s possible the HTC shipped with an HTC custom keyboard that didn’t require WiFi/Data plans. However, many Android devices ship with the standard Google keyboard which does. If you still have access to your old device, you might check under preferences to see which keyboard it is using… then compare that to your LG G4 and see what keyboards it supports.

        Good Luck.

        Like


Comments are encouraged under these rules: 1. No personal attacks allowed. 2. Comments with personal attacks will not be posted. 3. Please keep your words civil. Thank you for contributing!

This site uses Akismet to reduce spam. Learn how your comment data is processed.