Skip to content

7.4.0

Choose a tag to compare

@rany2 rany2 released this 29 Nov 13:01
· 14 commits to master since this release

⚠️ Breaking changes

  • Python 3.9 or newer is now required. CI tests every version from 3.9 to 3.14, and also runs 3.9 with each dependency at its lowest allowed version.
  • edge_tts.util and edge_tts.data_classes have been removed. Their code moved into new modules: text, protocol, network, config (TTSConfig) and cli. UtilArgs is now CLIArgs. By @rany2 in #525

Bug fixes

  • stream_sync now raises errors instead of hanging. By @chenshu007 in #501
  • split_text_by_byte_length keeps every chunk within byte_length, even when the text has no whitespace. By @b84330808 in #506
  • receive_timeout now applies to WebSocket reads. By @uzunenes in #515
  • The CLI reports the real filesystem error when it can't open the output file. By @adityajai119 in #520
  • Subtitle content no longer ends with a trailing newline. By @adityajai119 in #521
  • TTSConfig rejects rate, volume and pitch values that end in a newline (for example "+10%\n"). Reported by @adityajai119 in #524
  • edge-playback exits with an error when edge-tts fails, instead of trying to play an empty file. Reported by @adityajai119 in #526
  • Calling VoicesManager.create() on a subclass now returns that subclass. Co-authored by @adityajai119
  • SRT output now comes from a small built-in writer (srt.py) that replaces the vendored srt_composer.

Typing

  • Added ShortName and Name to the VoicesManagerFind TypedDict. By @5j9 in #514

Documentation and examples

  • New troubleshooting guide for NoAudioReceived. By @rany2 in #523
  • Shorter README, and uv is now the documented way to install and run edge-tts.
  • New examples: a quickstart, voice discovery, subtitles, low-latency playback, resumable batch conversion and a streaming HTTP server.
  • Wording fix in the README. By @Christinauebungkonto in #518

Tooling

  • Package metadata moved to pyproject.toml (PEP 621). The project now uses ruff and pre-commit instead of black, isort and pylint.
  • Development uses uv, with a committed uv.lock.
  • Releases are published to PyPI from GitHub Actions using trusted publishing.
  • The test suite was reorganized and expanded, and now runs in CI.

New Contributors

Full Changelog: 7.3.1...7.4.0