Kris Gesling
21eabceb29
Do not create a 'None' cache directory
...
The persistent_cache_dir was assigned None if no preloaded_cache existed.
This was then created as a directory when it's clearly not needed.
2021-06-25 14:26:14 +09:30
Åke Forslund
5d3393b935
Make TTSCahce safer
...
Add __contains__ method to TTSCache, The cache contains a SHA if the SHA is
known and all expected files exists on disk.
This is handles unexpected system events in a more consistent manner and
will still be fast for the case where a new sentence needs to be
synthetisized.
2021-06-10 09:33:06 +02:00
Kris Gesling
e75a05557b
docstring cleanup
2021-05-11 15:10:32 +09:30
Åke Forslund
344999d003
Remove option to save phonemes in string format
...
String format can't be loaded so it shouldn't be written either
2021-04-05 08:28:38 +02:00
Åke Forslund
0b857e92f9
Sync tts cache dict of cached sentences on curate
...
This will make sure the dict of caches gets updated when curate_cache
removes files.
2021-03-21 13:33:08 +01:00
Kris Gesling
7d3cb2d53e
Merge pull request #2869 from forslund/refactor/tts-cache-curation
...
Move TTS cache curation to TextToSpeechCache
2021-03-19 11:41:54 +09:30
Åke Forslund
9b4544dc7d
Move cache curation to TextToSpeechCache
2021-03-18 23:02:26 +01:00
Chris Veilleux
9c864de866
Convert phoneme to a list before being passed on. ( #2865 )
...
* The phoneme needs to be converted to a list before being passed on.
2021-03-18 15:23:20 +09:30
Chris Veilleux
62d277d612
Refactored to fix error where persistent cache directory was used when the temporary cache directory should have been.
2021-03-10 21:16:11 -06:00
Chris Veilleux
86febca6a3
Fixed a bug passing None to an instance of Path
2021-03-10 15:35:38 -06:00
Chris Veilleux
5996fdbf08
Fixed a minor linting issue
2021-03-10 13:46:48 -06:00
Chris Veilleux
5e90940896
new code to consolidate TTS cache handling into one module.
2021-03-10 13:38:17 -06:00