Commit Graph

57 Commits

Author SHA1 Message Date
rany2
3e3828c04a more typing 2023-01-05 00:59:16 +02:00
rany2
c4c3dc5a13 add more typing 2023-01-05 00:56:15 +02:00
rany2
efe0cbedde lint 2023-01-05 00:15:48 +02:00
rany2
fe8b86c7f5 add docstring to VoicesManager's create() 2023-01-05 00:10:27 +02:00
rany2
8c356a000c Slightly cleanup some more 2023-01-05 00:07:08 +02:00
rany2
e54e09dfcb Add newline for edge_tts __init__.py 2023-01-04 23:53:06 +02:00
rany2
7a9e4a62e3 Specify encoding on metadata fname open in save() 2023-01-04 23:52:35 +02:00
rany2
3a3a872899 Merge remote-tracking branch 'origin/master' into simplify 2023-01-04 23:50:29 +02:00
rany2
23370b4c27 Simplify edge_tts library usage 2023-01-04 23:49:29 +02:00
Vuizur
0dc5154b06 Add shortcut to VoicesManager 2023-01-04 20:37:00 +01:00
Vuizur
6d2bc68933 Add voices manager to find voices 2023-01-04 20:31:57 +01:00
rany2
142b4f6457 Fix #23 2022-11-18 13:14:27 +02:00
rany2
93f2e452ce lint 2022-07-27 20:17:42 +03:00
rany2
3a4595d6d6 Fix "ValueError: the metadata doesn't contain a Duration field"
* seems like microsoft updated their API to include this metadata type

Fixes #16
2022-07-27 20:15:17 +03:00
rany2
68a9e191d7 drop custom SSML support 2022-06-19 21:07:05 +03:00
rany2
797d04f182 Update edge-tts to version 4.0.11
* Add pylint check for lint.sh
* Change overlapping default from 5second to 1second for SubMaker and util.py
* Default to WordBoundary for edge-playback (from SentenceBoundary)
* Drop SentenceBoundary support (never works properly and too many hacks)
  - No longer actually supported by Azure's official SDK for a few years
    already
* Stop attempting to correct broken offsets sent back to us by Azure
  - Fixes never work properly because AI voice sometimes takes odd pauses
    at the start and sometimes doesn't do so. It's never predictable and
    cannot be fixed on the library's end.
  - Solution is for Microsoft to fix the integer overflow bug they are facing
    in the {Word,Sentence}Boundary offsets. It doesn't affect us until we reach
    30min long TTS anyway.
* Have edge-tts --list-voices use the configured HTTP proxy
* More misc changes and fixes
2022-05-29 18:17:48 +03:00
zhisenyang
863c545f9a add proxy 2022-04-24 16:58:01 +08:00
rany
393233ecf9 fix for windows users 2022-03-13 13:25:41 +02:00
rany
7d03764943 fix unbound local variable python error 2022-03-11 17:46:44 +02:00
rany
911e8a5083 Cleaner fix for #6 2022-03-09 20:36:09 +02:00
rany
b25cf501c2 Revert "Fix #6"
This reverts commit 9cfb9cc1e5.
2022-03-09 20:35:24 +02:00
rany
9cfb9cc1e5 Fix #6 2022-03-09 20:23:31 +02:00
rany
e2e3f26928 fix broken offset a bit, it is still bad 2022-03-04 20:48:50 +02:00
rany
8caf678f7a accurately limit to 79 chars 2022-03-01 22:12:12 +02:00
rany
1d8d56793d its already escaped by the service 2022-03-01 22:09:44 +02:00
rany
16d5dc273c fix sentence boundary 2022-03-01 21:42:01 +02:00
rany
cbc6ca1b11 Fix bug with split_text_by_byte_length 2021-12-07 22:36:03 +02:00
rany
4fcecddaf0 Update to edge-tts 4.0.0 2021-12-07 22:09:43 +02:00
rany
f6fa6f606b Remove characters the service does not support 2021-12-05 10:05:15 +02:00
rany
4b7f04dc4c Update to edge-tts 3.0.1 2021-12-04 00:57:45 +02:00
rany
6fbf875673 Actually fix 2021-07-11 17:17:03 +03:00
rany
5f02c6a5cc Fix subtitles accuracy after 1hour 2021-07-11 17:01:03 +03:00
rany
9e876711c7 Fix bug 2021-06-18 02:31:27 +03:00
rany
66511837ab Switch to aiohttp 2021-06-18 02:29:43 +03:00
rany
a38cacce87 Add __main__ package 2021-06-17 22:10:54 +03:00
rany
a9d513ba56 Fix broken regular text 2021-06-10 20:55:40 +03:00
rany
8d022ff230 Fix custom SSML support 2021-06-10 20:51:00 +03:00
rany
f5bde41eab Fix subtitles and version bump 2021-06-09 17:33:17 +03:00
rany
7ced20885c Fix some bugs 2021-06-09 14:16:51 +03:00
rany
8235b8a57e Fix potential bug 2021-06-08 20:40:00 +03:00
rany
6a1d991dd7 Use subprocess instead of bash 2021-06-08 20:34:18 +03:00
rany
12af8629ca add overlapping option 2021-06-08 19:16:13 +03:00
rany
4de0a646fa Switch to new Edge's default 2021-06-08 18:52:55 +03:00
rany
3fdb6507d7 Major update 2021-06-08 18:46:08 +03:00
rany
9b6a901957 Fix up logging and use Windows UA 2021-06-08 02:17:05 +03:00
rany
9f8a965a1f Improve message handling 2021-06-06 20:12:49 +03:00
rany
fb591c54aa make removeIncompatibleControlChars more accurate 2021-06-06 16:38:21 +03:00
rany
ed981ee6e5 Update convenience script 2021-06-06 14:54:57 +03:00
rany
fd9e8c04e8 Switch to httpx for http2 support 2021-06-06 12:39:21 +03:00
rany
c8103c35ce Look more like the Edge web browser 2021-06-06 12:09:58 +03:00