Commit Graph

257 Commits

Author SHA1 Message Date
Rany
7c83923a5b
Bump edge_tts version to 6.1.18 (#310)
Signed-off-by: rany <rany2@riseup.net>
2024-11-11 13:04:56 +02:00
Rany
dc8ac2ea7a
Add support for clock adjustment for Sec-MS-GEC token (#309)
This should help when a user might have his clock skewed by more than
5 minutes. The server allows for a bit more than ~5 minutes of skew.

Signed-off-by: rany <rany2@riseup.net>
2024-11-11 13:03:40 +02:00
Rany
16c973bec8
Fix CI (#308)
Signed-off-by: rany <rany2@riseup.net>
2024-11-09 10:46:23 +02:00
Rany
146b9d1bb5
Bump edge_tts version to 6.1.17 (#307)
Signed-off-by: rany <rany2@riseup.net>
2024-11-09 10:44:08 +02:00
Rany
bf6d897438
Fix Python <3.11 incompatibility bug (#306)
datetime.UTC is not supported on Python <3.11.

Signed-off-by: rany <rany2@riseup.net>
2024-11-09 10:42:21 +02:00
Rany
9652a900aa
Bump edge_tts version to 6.1.16 (#304)
Signed-off-by: rany <rany2@riseup.net>
2024-11-08 18:36:50 +02:00
Rany
f014709c40
Add Sec-MS-GEC support (#303)
Credit to @gexgd0419 for understanding how the algorithm works.
See his comment here: https://github.com/rany2/edge-tts/issues/290#issuecomment-2464956570

Fixes: https://github.com/rany2/edge-tts/issues/302
Fixes: https://github.com/rany2/edge-tts/issues/299
Fixes: https://github.com/rany2/edge-tts/issues/295
Fixes: https://github.com/rany2/edge-tts/issues/290

Signed-off-by: rany <rany2@riseup.net>
Co-authored-by: gexgd0419 <55008943+gexgd0419@users.noreply.github.com>
2024-11-08 18:34:28 +02:00
Tharsis Souza
a98e9ac7d3
Add podcastfy example to README.md (#296)
Podcastfy is an Open Source Python alternative to NotebookLM's podcast feature that enables Transforming Multimodal Content into Captivating Multilingual Audio Conversations with GenAI

It uses Edge as one of the TTS backends.
2024-11-01 14:48:04 +02:00
Rany
0f4db8d78a
Bump edge_tts version to 6.1.15 (#289)
Signed-off-by: rany <rany2@riseup.net>
2024-10-25 12:29:15 +03:00
Rany
b55a338fb4
Fix 403 error (#288)
* Fix typo in setting of User-Agent

I accidently added a $ probably because I was writing some
shell code at the same time. Oops....

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

* Update Chromium User-Agent version to 130

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

---------

Fixes: https://github.com/rany2/edge-tts/issues/286
Signed-off-by: rany <rany2@riseup.net>
2024-10-25 12:24:58 +03:00
Rany
3a21044e78
Bump edge_tts version to 6.1.14 (#273)
Signed-off-by: rany <rany2@riseup.net>
2024-10-19 10:06:06 +03:00
Rany
80fc1d0a61
Fix 403 error for list voices endpoint (#272)
Fixes #271

Signed-off-by: rany <rany2@riseup.net>
2024-10-19 10:05:08 +03:00
Rany
bd82487a8e
Bump edge_tts version to 6.1.13 (#269)
Signed-off-by: rany <rany2@riseup.net>
2024-10-18 17:44:25 +03:00
BG5T
8e71135a22
Fix 403 Error (#268) 2024-10-18 17:42:26 +03:00
帕斯卡
209269ebf5
Use f-strings on constants for better readability (#260) 2024-10-09 11:19:00 +03:00
rany
dfd4cab849 Bump edge_tts version to 6.1.12
Signed-off-by: rany <rany2@riseup.net>
2024-05-23 00:50:55 +03:00
rany
f6a35fa8d9 Don't delete test outputs and only run cmp on srt
Signed-off-by: rany <rany2@riseup.net>
2024-05-21 17:05:32 +03:00
rany
580f880bda Fix #190
Signed-off-by: rany <rany2@riseup.net>
2024-05-21 16:36:52 +03:00
rany
98c9b59aa3 Add a test to check if #190 is resolved
Signed-off-by: rany <rany2@riseup.net>
2024-05-17 13:56:00 +03:00
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
Rany
388e6f2e98
[ReadMe] Link to examples directory directly 2024-04-25 13:32:59 +03: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
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
Rany
bafe5d825a
Merge pull request #210 from zhoukuncheng/refactor-async
Simplify asyncio main loop setup
2024-04-12 12:21:13 +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
09956e3a20 Don't pin certifi version
Signed-off-by: rany2 <rany2@riseup.net>
2024-02-16 17:59:02 +02:00
rany2
5b7add93b9
Merge pull request #158 from rany2/dependabot/pip/certifi-2023.11.17
Bump certifi from 2023.07.22 to 2023.11.17
2023-11-23 16:51:48 +02:00
dependabot[bot]
96e36293dd
Bump certifi from 2023.07.22 to 2023.11.17
Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.07.22 to 2023.11.17.
- [Commits](https://github.com/certifi/python-certifi/compare/2023.07.22...2023.11.17)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-20 06:36:21 +00:00
rany2
255169484e Bump version to 6.1.9
Signed-off-by: rany2 <rany2@riseup.net>
2023-11-04 18:00:00 +02:00
rany2
9db10f02a0
Merge pull request #138 from scott306lr/master
Adding pitch variable back
2023-08-31 18:02:04 +03:00
scott306lr
0c6e45fd76 added a example of chaning pitch in prompt. 2023-08-31 05:33:52 +08: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
8f096598ab Update README.md 2023-04-30 23:56:35 +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