Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error type "timeout" should be separated, to identify if input or network problem #42

Closed
peterweb2005 opened this issue Mar 9, 2020 · 3 comments

Comments

@peterweb2005
Copy link

peterweb2005 commented Mar 9, 2020

thanks

https://developer.android.com/reference/android/speech/SpeechRecognizer

ERROR_NETWORK_TIMEOUT
Network operation timed out.

ERROR_SPEECH_TIMEOUT
No speech input

@peterweb2005
Copy link
Author

IE

  case "error_audio_error":
  case "error_client":
  case "error_no_match":
  case "error_speech_timeout":
    return '輸入錯誤'; // input error
  case "error_network":
  case "error_network_timeout":
  case "error_busy":
  case "error_server":
    return '網絡問題'; // network error
  default: // never?
    return '未知問題';

@sowens-csd
Copy link
Contributor

Thanks, that's a good catch. I'll patch that and put out a new version.

@sowens-csd
Copy link
Contributor

1.1.0 is out now with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants