Kaljurand / K6nele

An Android app that offers speech-to-text user interfaces to other apps
http://kaljurand.github.io/K6nele/
Apache License 2.0
267 stars 83 forks source link

Recognition mostly fails with "general app error" / "not connected to the recognition service" (error 5) in recent Android v14 updates #115

Closed Kaljurand closed 3 months ago

Kaljurand commented 4 months ago

With recent updates to Android 14 (e.g. AP21.240119.009, see https://developer.android.com/about/versions/14/release-notes), recognition initiated by pressing the Kõnele micorphone button mostly (but not always) fails with the Kõnele message "general app error", which is caused by the SpeechRecognizer client error (error id 5), for which the following message is logged "not connected to the recognition service".

    private boolean checkOpenConnection() {
        if (mService != null) {
            return true;
        }
        mListener.onError(ERROR_CLIENT);
        Log.e(TAG, "not connected to the recognition service");
        return false;
    }

  See also: