Commit Graph

222 Commits (sj201r5)

Author SHA1 Message Date
Kris Gesling b8d2599fee Fix pycodestyle errors 2022-03-30 11:46:10 +09:30
Michael Hansen 60b8e5804c Fix dummy TTS 2022-03-22 23:22:42 +00:00
Michael Hansen 9d04226e7f Convert TTS cache WAV to FLAC 2022-02-28 21:57:35 +00:00
Michael Hansen 1b780e8a5c Add TTS caching to skills and audio service 2022-02-22 22:04:14 +00:00
Michael Hansen d9414c1bd3 Fix multi-chunk TTS session/stopping 2022-02-10 17:08:09 +00:00
Michael Hansen 9912c1a5bd Send TTS events with listen flag 2022-01-25 03:18:44 +00:00
Michael Hansen 83c5e213c0 Actually handling TTS now 2022-01-21 15:50:13 +00:00
Kris Gesling 4c0b28e2e7 Revert "Make TTS queue a singleton (#3051)"
This reverts commit f99347c704.
2021-12-24 07:42:31 +09:30
ken-mycroft f99347c704
Make TTS queue a singleton (#3051) 2021-12-17 22:30:24 +09:30
Kris Gesling be45edb54f autoformat 2021-12-01 09:32:24 +09:30
Genei180 ef56d71462
Added Possibility for ESpeak Config (#3020)
Added Possibility for ESpeak Config
2021-11-09 15:07:33 +09:30
Kris Gesling 8a68c88bcf Add warning for anyone loading GoogleTTS 2021-08-27 09:49:40 +09:30
Kris Gesling 4df863633d Merge dev pre-XDG into feature/mark-2
This includes all commits up to but not including PR #2794
2021-08-17 15:56:42 +09:30
Ken Smith ff01b7388b add pause and resume ability to tts playback thread and use it during barge in 2021-07-02 12:12:07 -04:00
Åke Forslund 0ae02b5939 Fix TTS using the returned path 2021-07-02 08:34:03 +02:00
Kris Gesling 6099da18b3
Merge pull request #2934 from MycroftAI/bugfix/tts-audio-file-path
Fix #2929: use returned TTS audio file path
2021-06-30 07:03:01 +09:30
Kris Gesling 0394568704 Use returned TTS audio file path
This reverts an unintentional breaking change.
A TTS engine may return a different file path than was requested.
This again uses the returned path but adds a deprecation warning
that this behaviour will no longer be supported in an upcoming release.

Fixes #2929
2021-06-29 21:53:53 +09:30
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 1cc25da144
Merge pull request #2898 from MycroftAI/bugfix/docstring-cleanup
Cleanup of documentation
2021-06-01 12:16:44 +09:30
Kris Gesling 891784a454
Merge pull request #2888 from forslund/refactor/mimic_tts-dont-load-config-on-import
Refactor mimic_tts to not load config when importing
2021-05-28 15:24:13 +09:30
Kris Gesling e75a05557b docstring cleanup 2021-05-11 15:10:32 +09:30
Kris Gesling 0fb90edd28 Rename to get_temp_path and add docstring 2021-04-30 16:49:59 +09:30
dzekem christa 7765d11224 ran autopep8 2021-04-30 14:48:15 +09:30
dzekem christa 3f745c52ad created temp path function 2021-04-30 14:47:49 +09:30
dzekem christa 621b4ab650 spaces added and uniformity in code 2021-04-30 14:46:36 +09:30
dzekem christa 9252158829 rectified pep8 issues 2021-04-30 14:46:36 +09:30
dzekem christa 32f666edd4 Issue-2727 - fixing hard coded /tmp 2021-04-30 14:46:36 +09:30
dzekem christa a174c3c822 replaced hard coded /tmp 2021-04-30 14:46:36 +09:30
Åke Forslund d884da5b56 Be more defensive when loading mimic config
Default config will generally always have a mimic block but in
combination with newer Mycroft variants a more defensive approach is
probably good
2021-04-28 22:31:30 +02:00
Åke Forslund 5d68309523 Refactor mimic_tts to not load config when importing
Hitting the entire configuration fetching routine with call to the
backend is not polite to do when just importing the file. This moves the
config lookup out of the global scope and into special functions for
finding the mimic binary and looking up the data path for the subscriber
voices.
2021-04-28 22:31:10 +02:00
Å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 bea3bac2bf Make mimic get_tts() return phonemes pre-parsed
This makes the phonemes json de/encodable like mimic2
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
Åke Forslund 46a1de9b12 Remove unused import 2021-03-18 22:45:19 +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 ea013b26af Fixed failing unit test. 2021-03-10 21:16:34 -06:00
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 469b1d3458 Changed ordering of adding a file to cache to make more sense. 2021-03-10 15:55:21 -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 48e691a66f add deprecation warnings to the logic the new cache logic replaces. 2021-03-10 13:39:30 -06:00
Chris Veilleux 2f34df6603 enhance to use new cache logic 2021-03-10 13:39:01 -06:00
Chris Veilleux 5e90940896 new code to consolidate TTS cache handling into one module. 2021-03-10 13:38:17 -06:00
Kris Gesling fa5576adf4
Merge pull request #2831 from MycroftAI/bugfix/google-voice
Upgrade gTTS to fix Google voice
2021-02-10 11:16:43 +09:30
Kris Gesling c8494932ac Remove deprecated Google TTS lang codes 2021-02-09 21:27:59 +09:30
Åke Forslund 9173e22460 Send correct conf to mimic when used as fallback
- Mimic is now sent the correct config when used as a fallback
- Tests updated to ensure this
2021-02-08 22:09:55 +01:00
Kris Gesling 5a19fc0716 Add Mozilla TTS connection validation
Replication of PR #2719
Original code from JarbasAl
2021-02-08 20:17:59 +09:30