41 Commits

Author SHA1 Message Date
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
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
a3d468c7c9 Cleanup examples and fix VoicesManager types (#332)
Signed-off-by: rany <rany2@riseup.net>
2024-11-23 16:29:13 +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
rany2
8d12741673 Fix minor typo in examples/sync_audio_stream_in_async_context.py
This typo does not cause any errors but it is better to fix it.

Signed-off-by: rany2 <rany2@riseup.net>
2024-04-21 18:09:54 +03:00
lzieniew
6355b32f0c Add sync versions of stream and save methods (#215)
* Add sync versions of stream and save methods

In order to provide synchronous interface to the library

* Fix save_sync() failing to use metadata_fname and fix typing issues

Signed-off-by: rany <ranygh@riseup.net>

---------

Signed-off-by: rany <ranygh@riseup.net>
Co-authored-by: rany <ranygh@riseup.net>
2024-04-21 13:47:38 +03:00
Jack Cheng
e82a2d1d86 Simplify asyncio main loop setup 2024-04-08 09:57:20 +08:00
rany2
ca6e7b0669 Fix support for Python 3.10
Signed-off-by: rany2 <rany2@riseup.net>
2023-06-02 20:05:38 +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
b68b27103f Resolve *almost* all pylint complaints and setup pylint 2023-01-05 07:52:51 +02:00
rany2
8570918ff1 Rename examples 2023-01-05 01:56:15 +02:00
rany2
1012a08cf5 add examples/streaming_tts_with_subtitles.py 2023-01-05 01:31:45 +02:00
rany2
8a2f37d964 add streaming_tts.py example 2023-01-05 01:29:55 +02:00
rany2
c4c3dc5a13 add more typing 2023-01-05 00:56:15 +02:00
rany2
cd84fa972a fixup! update dynamic_voice_selection.py for new API 2023-01-05 00:07:01 +02:00
rany2
4a091e4859 update examples/basic_generation.py for new API
* also rename it
2023-01-05 00:05:10 +02:00
rany2
f1709e7e93 update dynamic_voice_selection.py for new API 2023-01-05 00:04:22 +02:00
Vuizur
4b529c8f2b Add example for getting a voice for language 2023-01-04 20:51:30 +01:00
Vuizur
3bc7f728c3 Rename example file 2023-01-04 20:12:07 +01:00
Vuizur
31c33f9fa2 Replace example because of playsound bugs on Win 2023-01-04 20:10:29 +01:00
rany
871f1938e6 remove subrip example, now standalone 2022-03-10 18:32:30 +02:00
rany
3f49b3ac90 fix typo w/ default voice name 2022-03-10 16:19:57 +02:00
rany
fd4b94554a make srt2mp3 more configurable 2022-03-10 15:59:05 +02:00
rany
9da1a87f30 only speed up, don't slow down 2022-03-10 15:49:34 +02:00
rany
843e6b4b38 check for ffprobe 2022-03-10 15:26:14 +02:00
rany
e08b94c6ac raise exception when retcode != 0 2022-03-10 15:23:16 +02:00
rany
c24183aab6 close files properly 2022-03-10 15:11:07 +02:00
rany
842352ddce improve example subrip to mp3 perf 2022-03-10 14:56:35 +02:00
rany
05e31e6f08 remove test srt 2022-03-10 12:44:06 +02:00
rany
06440fd89e strip trailing newlines 2022-03-10 12:43:26 +02:00
rany
c4c5e54015 add new subrip example 2022-03-10 12:37:23 +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
4fcecddaf0 Update to edge-tts 4.0.0 2021-12-07 22:09:43 +02:00
rany
4b7f04dc4c Update to edge-tts 3.0.1 2021-12-04 00:57:45 +02:00
rany
7ced20885c Fix some bugs 2021-06-09 14:16:51 +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
5dea65e535 Fixes 2021-06-06 00:49:14 +03:00