Anki/pylib/anki
RumovZ cdfb84f19a
Implement TTS using windows crate (#2371)
* Implement TTS using windows crate

* Use API calls instead of SSML

* Properly stop player in case of TTS error

* Add context to WindowsErrors

* Validate available voices

* Remove TTS text from synthesize error

* Limit maximum buffer size

* Make validation optional and list it in tts filter

* We no longer need the winrt module (dae)

* Use a separate request object so the meaning of the bool is clear (dae)

* Slightly shorten runtime error message (dae)

The default message appears to clip slightly.

* Alternate buffer implementation (dae)

* Use array instead of vec

* Drop the max buffer size to 128k (dae)
2023-02-17 12:26:07 +10:00
..
_vendor Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
foreign_data Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
importing Fix typos (#2210) 2022-11-24 20:18:57 +10:00
scheduler Enable state-dependent custom scheduling data (#2049) 2022-09-05 16:48:01 +10:00
_backend.py Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00
_legacy.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
_rsbridge.pyi Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00
browser.py
cards.py Add card meta for persisting custom scheduling state (#2040) 2022-09-02 11:22:49 +10:00
collection.py Implement TTS using windows crate (#2371) 2023-02-17 12:26:07 +10:00
config.py
consts.py Fix mypy not picking up on missing attributes 2022-11-04 14:56:36 +10:00
db.py
dbproxy.py
decks.py Fix mypy not picking up on missing attributes 2022-11-04 14:56:36 +10:00
errors.py Refactor error handling (#2136) 2022-10-21 18:02:12 +10:00
exporting.py Narrow typehints within pylib (#2003) 2022-08-05 14:48:07 +10:00
find.py
hooks.py
httpclient.py
lang.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
latex.py Make dvipng use transparent background by default (#2036) 2022-08-31 18:49:22 +10:00
media.py Narrow typehints within pylib (#2003) 2022-08-05 14:48:07 +10:00
models.py
notes.py Narrow typehints within pylib (#2003) 2022-08-05 14:48:07 +10:00
py.typed
rsbackend.py
sound.py
stats.py Fix some more RTL issues (#2244) 2022-12-08 22:29:56 +10:00
statsbg.py
stdmodels.py Fix mypy not picking up on missing attributes 2022-11-04 14:56:36 +10:00
storage.py
sync.py
syncserver.py Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00
tags.py
template.py
types.py
utils.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00