Commit Graph

104 Commits

Author SHA1 Message Date
rany
547d91dfd4 Fix aiohttp timeout issue
This addresses the issue described in https://github.com/rany2/edge-tts/issues/190#issuecomment-2116195342

Signed-off-by: rany <rany2@riseup.net>
2024-05-17 13:14:56 +03:00
rany2
6d9299a669 Silence sonarlint warning
Signed-off-by: rany2 <rany2@riseup.net>
2024-05-17 13:03:58 +03:00
rany2
211e283d5b Bump edge_tts version to 6.1.11
Signed-off-by: rany2 <rany2@riseup.net>
2024-04-21 13:51:08 +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
e58af9da76 Cleanup parse_metadata
Signed-off-by: rany2 <rany2@riseup.net>
2024-02-16 20:12:44 +02:00
rany2
ec91ec1944 Bump edge_tts version to 6.1.10
Signed-off-by: rany2 <rany2@riseup.net>
2024-02-16 20:06:50 +02:00
rany2
c9bf4247a8 Refactor communicate for better readability
Also improve performance on larger documents.

Signed-off-by: rany2 <rany2@riseup.net>
2024-02-16 19:56:18 +02:00
rany2
df6bac8b54 Fix pylint config and reformat
Signed-off-by: rany2 <rany2@riseup.net>
2024-02-16 18:05:02 +02:00
rany2
255169484e Bump version to 6.1.9
Signed-off-by: rany2 <rany2@riseup.net>
2023-11-04 18:00:00 +02:00
scott306lr
84a4a091cc added --pitch back in argparse 2023-08-31 05:27:23 +08:00
scott306lr
afd4ba8fee added pitch variable back. 2023-08-31 05:19:57 +08:00
rany2
8f8a334203 Fix "unable to get local issuer certificate" when trust store is not available from OS
Closes #129

Signed-off-by: rany2 <rany2@riseup.net>
2023-08-12 17:26:30 +03:00
rany2
453a096c54 Fix comment in communicate.py
Inconsistent usage of tabs and spaces.

Signed-off-by: rany2 <rany2@riseup.net>
2023-07-09 15:47:33 +03: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
a1bacbe1fb Fix validation regex for voice
This fails for "fil-PH-AngeloNeural," make it more future proof
by accepting 2 or more of the same group.

Signed-off-by: rany2 <rany2@riseup.net>
2023-06-22 18:10:17 +03:00
rany2
6a3065b730 Bump version and make release
* Fix support for Python 3.10

Signed-off-by: rany2 <rany2@riseup.net>
2023-06-02 20:06:20 +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
0094e3b952 Exception is now raised in stream() proper 2023-05-03 22:22:02 +03:00
rany2
a7db09ab0e Bump package version and make release 2023-04-30 23:56:54 +03:00
rany2
96fc3d52c7 Bump version and make new release 2023-04-30 23:49:21 +03:00
rany2
94603ab536 Update pylint parameters 2023-04-30 23:48:20 +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
6e733a306b Add some checks to ensure that it contains header length and drop struct 2023-04-21 14:22:51 +03:00
maltoze
bc781b2769 Refactor header length retrieval to utilize more appropriate method 2023-04-21 17:39:28 +08: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
85eef7d918 Fix bug with edge-playback not removing temp files
* `tmp.close()` even with `delete=True` will cause `edge-playback` to
  not delete because the file will be recreated by `edge-tts`
* bump edge-tts version
2023-01-10 16:41:29 +02:00
rany2
c4f91377a4 Define version information in version.py 2023-01-09 21:17:25 +02:00
rany2
d95b5d339f Allow custom voice list to be passed to VoiceManager
* Useful so that the application could cache the list.
* Bump to version 6.1.x
2023-01-09 18:33:26 +02:00
rany2
bd9cc2bd2d Slight performance improvements and bug fixes
* also add new functionality for edge-playback to keep temp files
* and bump version to 6.0.9
2023-01-09 18:09:23 +02:00
rany2
f598deebe0 Verify type of args passed to Communicate __init__ 2023-01-05 16:59:46 +02:00
rany2
bf78b76ac8 Bump version to 6.0.7 2023-01-05 08:02:20 +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
9355ef7c02 Add exceptions to __all__ 2023-01-05 06:29:57 +02:00
rany2
276d94221f Add py.typed for edge_tts
* Forgot it for edge_tts but not for edge_playback :/
2023-01-05 06:27:15 +02:00
rany2
df5ff0d9fc Bump to version 6.0.5 to add __version__ variable
* Should be useful for HASS and other projects
2023-01-05 03:23:32 +02:00
rany2
2a52b979e0 lint 2023-01-05 03:14:04 +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
01c87b7e1c Fix README and fix slight issue with validation for rate and volume
* Rate and volume could be greater than 100 and don't need to have
  a sign at the start.
2023-01-05 03:07:29 +02:00
rany2
66d3e61c1a Hide more items in edge_tts util's --list-voices 2023-01-05 02:58:59 +02:00
rany2
a1bfe2a8fa Fix Python 3.7 support
* X | Y shorthand is not supported there
2023-01-05 02:31:25 +02:00
rany2
f4c0a1388f Fix bad update to edge-playback
and bump version to 6.0.2
2023-01-05 02:20:01 +02:00
rany2
a1c5924024 Complete workflow fixing 2023-01-05 01:49:37 +02:00
rany2
57c5143aac complete typing for now 2023-01-05 01:13:33 +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
efe0cbedde lint 2023-01-05 00:15:48 +02:00