rany2
c78e49d28e
Cleanup SentenceBoundary support ( #396 )
...
- Default to SentenceBoundary
- Modify boundary argument to lowercase to match other options.
- Drop merge_cues support as SentenceBoundary renders it obsolete.
Signed-off-by: rany <rany2@riseup.net >
2025-08-05 14:30:30 +03:00
rany2
36d3006df5
Bundle srt module with edge-tts ( #393 )
...
Fixes https://github.com/rany2/edge-tts/issues/383
Signed-off-by: rany <rany2@riseup.net >
2025-08-05 13:43:57 +03:00
chnyangjie
f78c8ece0a
Add option to configure SentenceBoundary ( #348 )
...
* Create FUNDING.yml
* add setence boundary which is more friendly to Chinese users
---------
Co-authored-by: Rany <ranygh@riseup.net >
2025-08-05 13:06:03 +03:00
Rany
3942edeb13
Add back words-in-cue support ( #342 )
...
Closes https://github.com/rany2/edge-tts/issues/335
Closes https://github.com/rany2/edge-tts/issues/336
Signed-off-by: rany <rany2@riseup.net >
2024-12-07 22:34:50 +02:00
Rany
063957683c
Improve type support a bit more ( #333 )
...
Also fix default voice for util.py
Signed-off-by: rany <rany2@riseup.net >
2024-11-23 19:59:39 +02:00
Rany
144215496a
Cleanup subtitle related code and make it easier to use SubMaker ( #329 )
...
Also don't output subtitles to STDERR by default.
Signed-off-by: rany <rany2@riseup.net >
2024-11-22 22:57:54 +02:00
Rany
4f5d79ed57
Drop words_in_cue code for SubMaker and switch to SRT ( #323 )
...
WebVTT isn't a very common format in the first place
and attempting to make WordBoundary play nice with
input text is very hard.
Instead we now just display the word that the TTS
is saying at a given time. In the future, we could
try to enable SentenceBoundary but there is a risk
that it will be banned by Microsoft as it is not used
by Microsoft Edge itself.
Closes: https://github.com/rany2/edge-tts/issues/118
Closes: https://github.com/rany2/edge-tts/issues/171
Closes: https://github.com/rany2/edge-tts/issues/229
Closes: https://github.com/rany2/edge-tts/issues/234
Signed-off-by: rany <rany2@riseup.net >
2024-11-22 20:58:47 +02:00
Rany
3f2b635ff6
Use tabulate to pretty print voices ( #321 )
...
Signed-off-by: rany <rany2@riseup.net >
2024-11-22 20:07:15 +02:00
Rany
48c7f3ad2e
Accept - as a valid input parameter ( #319 )
...
We won't do the same for the output parameter as it is the default
behavior when --write-media is not set.
Closes: https://github.com/rany2/edge-tts/issues/216
Signed-off-by: rany <rany2@riseup.net >
2024-11-22 18:37:44 +02:00
Rany
6bc3a9e20f
Clean up code comments and docstrings ( #318 )
...
Signed-off-by: rany <rany2@riseup.net >
2024-11-22 18:28:43 +02:00
rany
580f880bda
Fix #190
...
Signed-off-by: rany <rany2@riseup.net >
2024-05-21 16:36:52 +03:00
Jack Cheng
e82a2d1d86
Simplify asyncio main loop setup
2024-04-08 09:57:20 +08:00
rany2
df6bac8b54
Fix pylint config and reformat
...
Signed-off-by: rany2 <rany2@riseup.net >
2024-02-16 18:05:02 +02:00
scott306lr
84a4a091cc
added --pitch back in argparse
2023-08-31 05:27:23 +08:00
rany2
5f27018c87
Remove type: ignore comment
...
The bug in mypy that required this comment has been fixed.
Signed-off-by: rany2 <rany2@riseup.net >
2023-07-09 15:40:14 +03:00
rany2
ca6e7b0669
Fix support for Python 3.10
...
Signed-off-by: rany2 <rany2@riseup.net >
2023-06-02 20:05:38 +03:00
rany2
6c55e815bb
Provide warning before writing binary to stdout
...
* Writing binary data to terminal could cause unintended behavior
and mess up a terminal. Print a warning before doing such a thing.
2023-04-30 23:41:12 +03:00
RaSan
4f70613c03
Fix Waiting before exiting in #78 ( #79 )
...
* Fix Waiting before exiting
The eventloop is not closed and waits a second on every call (idk the reason)
* Refactor
---------
Co-authored-by: rany2 <rany2@riseup.net >
2023-04-27 00:38:47 +03:00
rany2
1169574cce
Add support for customizing number of words in cue
2023-04-05 17:00:29 +03:00
rany2
58307ded26
Update edge_tts to v6.1.3
...
* Sort voices in util's --list-voices
* Disable overlapping subtitles by default
* Try to fix subtitles for many hour long TTS generation
* Match Microsoft Edge connection behavior more
* Bump edge_tts version
2023-01-25 18:36:59 +02:00
rany2
b68b27103f
Resolve *almost* all pylint complaints and setup pylint
2023-01-05 07:52:51 +02:00
rany2
b5b7a42354
Slight cleanup of util code & misc changes
2023-01-05 07:52:51 +02:00
rany2
4862ec8517
Remove pitch option as it no longer has any effect
...
* Most likely Microsoft started ignoring it along with the custom SSML
purge
2023-01-05 03:13:40 +02:00
rany2
66d3e61c1a
Hide more items in edge_tts util's --list-voices
2023-01-05 02:58:59 +02:00
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
8c356a000c
Slightly cleanup some more
2023-01-05 00:07:08 +02:00
rany2
23370b4c27
Simplify edge_tts library usage
2023-01-04 23:49:29 +02:00
rany2
142b4f6457
Fix #23
2022-11-18 13:14:27 +02: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
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
16d5dc273c
fix sentence boundary
2022-03-01 21:42:01 +02:00
rany
4fcecddaf0
Update to edge-tts 4.0.0
2021-12-07 22:09:43 +02:00