Skip to main content

Generate audio from SRT files using Microsoft Edge's text-to-speech service

Project description

cakesrt2audio

Generate audio from SRT files using Microsoft Edge's text-to-speech service.

This tool synchronizes audio with SRT timestamps, adjusting playback speed within a specified tolerance, and logs any significant deviations.

Installation

pip install cakesrt2audio

Usage

As a Library

from cakesrt2audio import create_audio_from_srt

create_audio_from_srt(
    srt_file="path/to/your.srt",
    voice="en-US-AvaMultilingualNeural", 
    output_file="path/to/output.mp3"
)

From the Command Line

python -m cakesrt2audio your.srt --voice en-US-AvaMultilingualNeural --output output.mp3

To see a list of all available voices:

python -m cakesrt2audio --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cakesrt2audio-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cakesrt2audio-0.1.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file cakesrt2audio-0.1.1.tar.gz.

File metadata

  • Download URL: cakesrt2audio-0.1.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cakesrt2audio-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4467d0fae6e1d76e7d89966345b4f6998c7a2f0b5d6587e49d7125e384d2548d
MD5 118206fb32aa122ae364eda34df17d11
BLAKE2b-256 914c59a2fd2abf62eddc72d04574fc0b683a32ca2545153668eaca07e9ccf5c0

See more details on using hashes here.

File details

Details for the file cakesrt2audio-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cakesrt2audio-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cakesrt2audio-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f815f410ed861fb09cc6d2567122f7fdf2620b4a6688b6988cc7ec0b03e0fecf
MD5 880873e80065e69fcac5ad23a595d7f6
BLAKE2b-256 f97793894b3383a9986b3d84335e288f5a649092610b43f0c9dcbfe1b1380425

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page