Metadata-Version: 2.4
Name: cakesrt2audio
Version: 0.1.1
Summary: Generate audio from SRT files using Microsoft Edge's text-to-speech service
Author-email: test <test@example.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/test/cakesrt2audio
Project-URL: Bug Tracker, https://github.com/test/cakesrt2audio/issues
Project-URL: Repository, https://github.com/test/cakesrt2audio
Keywords: tts,srt,subtitle,audio,speech-synthesis,edge-tts
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: edge-tts
Requires-Dist: pydub
Requires-Dist: srt
Requires-Dist: rich
Dynamic: license-file

# 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

```bash
pip install cakesrt2audio
```

## Usage

### As a Library

```python
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

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

To see a list of all available voices:

```bash
python -m cakesrt2audio --help
```
