Commit Graph

257 Commits

Author SHA1 Message Date
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
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
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
rany
1d79b9fca0
Merge pull request #30 from Vuizur/voice-manager
Voice manager
2023-01-04 21:57:20 +02:00
Vuizur
4b529c8f2b Add example for getting a voice for language 2023-01-04 20:51:30 +01: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
rany
4ecde0394d
Merge pull request #29 from Vuizur/replace-input-example
Replace input example
2023-01-04 21:16:10 +02: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
rany2
142b4f6457 Fix #23 2022-11-18 13:14:27 +02:00
rany
5a74ad6527
Update README.md 2022-10-18 20:11:20 +03:00
rany2
9c53e1eb3a Don't pin aiohttp so hass-edge-tts keeps functioning
* Bump to 5.0.6
* Require >=3.8.0
2022-09-27 13:22:29 +03:00
rany2
6819f46ca8 Bump edge-tts version to 5.0.5 2022-09-27 13:08:24 +03:00
rany2
a5a9a4c478 Add back GitHub dependabot/dependency graph support
* Hack from de16718b39/setup.py (L3-L17)
2022-09-27 13:05:27 +03:00
rany2
7b4827352d Switch back to setup.cfg only
* No depandabot support but it might work for hass-edge-tts at least
2022-09-27 12:58:14 +03:00
rany2
137bbd700e Fix ResolutionImpossible error in hass-edge-tts 2022-09-27 12:39:09 +03:00
rany
9dcbd27b1e
Merge pull request #19 from rany2/dependabot/pip/setuptools-65.4.0
Bump setuptools from 62.6.0 to 65.4.0
2022-09-27 12:19:43 +03:00
dependabot[bot]
31f14d5ffa
Bump setuptools from 62.6.0 to 65.4.0
Bumps [setuptools](https://github.com/pypa/setuptools) from 62.6.0 to 65.4.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v62.6.0...v65.4.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-27 09:19:26 +00:00
rany
dc96e04e33
Merge pull request #18 from rany2/dependabot/pip/pip-22.2.2
Bump pip from 22.0.2 to 22.2.2
2022-09-27 12:18:52 +03:00
dependabot[bot]
6f73f349d5
Bump pip from 22.0.2 to 22.2.2
Bumps [pip](https://github.com/pypa/pip) from 22.0.2 to 22.2.2.
- [Release notes](https://github.com/pypa/pip/releases)
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/pip/compare/22.0.2...22.2.2)

---
updated-dependencies:
- dependency-name: pip
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-27 09:17:38 +00:00
rany
56c26c10b2 Create codeql-analysis.yml
Signed-off-by: rany2 <rany2@riseup.net>
2022-09-27 12:17:01 +03:00
rany
cc7ac64909 Create dependabot.yml
Signed-off-by: rany2 <rany2@riseup.net>
2022-09-27 12:16:55 +03:00
rany2
197b176de9 Add requirements.txt and pin version 2022-09-27 12:16:22 +03: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
rany2
9a20f1ca90 update version to 4.0.10 2022-05-23 14:37:52 +03:00
rany
1f04a4b238
Merge pull request #11 from zhisenyang/master
add proxy
2022-05-23 14:37:01 +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
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