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

Fix audio service startup without Internet #2598

Merged
merged 1 commit into from
May 28, 2020

Conversation

forslund
Copy link
Collaborator

Description

If started up without Network connection the audio service would crash
importing the google_tts module as it tried to fetch language list from
google.

This restructures it to be a just-in-time check. It also adds a cached
list of supported languages to use if an error occurs fetching language
codes.

A small fix allowing "en-US" to be matched to "en-us" instead of the
generic "en" is also included.

How to test

Insert a raise Exception at L74 and make sure that the audio service process can start.

Contributor license agreement signed?

CLA [ Yes ]

If started up without Network connection the audio service would crash
importing the google_tts module as it tried to fetch language list from
google.

This restructures it to be a just-in-time check. It also adds a cached
list of supported languages to use if an error occurs fetching language
codes.

A small fix allowing "en-US" to be matched to "en-us" instead of the
generic "en" is also included.
@forslund forslund requested a review from krisgesling May 27, 2020 19:34
@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label May 27, 2020
@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

@krisgesling
Copy link
Contributor

Looks good and tested on Linux and Picroft. Merging.

@krisgesling krisgesling merged commit 97b1e0f into MycroftAI:dev May 28, 2020
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) Type: Bug - complex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants