mycroft-core/test/unittests/tts
Å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
..
__init__.py add SSML support 2018-04-18 14:45:09 -05:00
test_cache.py Add test cases for tts cache __contains__ 2021-06-10 09:33:12 +02:00
test_espeak_tts.py Add basic unittest for espeak 2020-05-11 16:14:24 +02:00
test_google_tts.py Remove deprecated Google TTS lang codes 2021-02-09 21:27:59 +09:30
test_mimic2_tts.py Add test case for Server error 2020-02-17 15:11:55 +01:00
test_mimic_tts.py Refactor mimic_tts to not load config when importing 2021-04-28 22:31:10 +02:00
test_tts.py TTS playback queue singleton (#3055) 2022-03-02 09:59:57 +09:30