Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Conversation

@forslund
Copy link
Collaborator

Description

Add extra error handling to speech client

  • Catch and log errors starting up the mic / STT threads
  • Catch errors creating the STT backend interface
  • Catch invalid responses from the server when getting the account id.

How to test

Make sure the speech client is still usable. Inject an exception in a STT backend interface's __init__() and make sure it falls back to MycroftSTT

Contributor license agreement signed?

CLA [ Yes ]

If a STT backend fails to load log the exception and fallback to the
MycroftSTT.
Account ID will now be refetched if invalid the first time.

This also adds some general exception handling to avoid client crashing due
to the servers invalid 204 response.
@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Oct 26, 2019
@forslund forslund merged commit 024274a into MycroftAI:dev Oct 31, 2019
@forslund forslund deleted the feature/speech-error-handling branch November 7, 2019 22:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants