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.0.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.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cakesrt2audio-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 eeb2bbd0f49966e3edbceba698e21b3649dffdaf8373127232fac26191c91499
MD5 0f2fbaa73630c4200266acc64261b7fb
BLAKE2b-256 f07d82401d36640c2d1aae2a756bd5cddca739ea2fcfb0c3c356491b89669245

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cakesrt2audio-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9dd492c5416bd00123dc5c3536123c7bd0798844ee5f2d54a8504cc8c712bb08
MD5 e06596ffc9ebd7ace475d7fe4c335bad
BLAKE2b-256 8de27b07f69ff983cdebd0e442a2d75e166ab90c0b7091ed09df1294b48275e2

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