mycroft-core/test/unittests/audio
Åke e7ddd51256
TTS playback queue singleton (#3055)
* fix issues when remote excepts out

* Remove explicit clear_cache from MimicTTS

* Updates for using singleton TTS playback thread

- Cache is called on all tts's registered as using the thread
- Begin audio and end audio is handled by the playback thread
- Further changes from self.playback to TTS.playback for consistency

* Remove redundant try/except

* Consolidate general and TTS-specific sentence splitting

This performs all sentence-splitting at the same stage. This fixes a
subtle issue where a TTS splits a sentence into chunks and throws an
error on only one of those chunks. The fallback would generate a
sentence for the original un-chunked sentence. possibly saying the same
parts twice.

This also pre-compiles the regexes used to speed things up a bit.

Co-authored-by: Ken <ken.smith@mycroft.ai>
2022-03-02 09:59:57 +09:30
..
services Add audioservice method tests 2020-01-15 09:06:50 +01:00
__init__.py Move audio tests to unittest dir 2017-08-17 02:05:02 -05:00
test_service.py Make audioservice load backends without callback 2021-01-15 13:49:40 +01:00
test_simple_backend.py Improve logic when waiting for play calls 2021-02-01 23:02:34 +01:00
test_speech.py TTS playback queue singleton (#3055) 2022-03-02 09:59:57 +09:30
test_utils.py Rename to get_temp_path and add docstring 2021-04-30 16:49:59 +09:30
test_vlc_backend.py Add tests for vlc audio backend 2020-01-15 09:06:50 +01:00