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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eeb2bbd0f49966e3edbceba698e21b3649dffdaf8373127232fac26191c91499
|
|
| MD5 |
0f2fbaa73630c4200266acc64261b7fb
|
|
| BLAKE2b-256 |
f07d82401d36640c2d1aae2a756bd5cddca739ea2fcfb0c3c356491b89669245
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dd492c5416bd00123dc5c3536123c7bd0798844ee5f2d54a8504cc8c712bb08
|
|
| MD5 |
e06596ffc9ebd7ace475d7fe4c335bad
|
|
| BLAKE2b-256 |
8de27b07f69ff983cdebd0e442a2d75e166ab90c0b7091ed09df1294b48275e2
|