Metadata-Version: 2.4
Name: yta-fastapi-docker-tts-pipertts
Version: 0.0.1
Summary: Youtube Autonomous FastAPI Docker TTS PiperTTS Module
License-File: LICENSE
Author: danialcala94
Author-email: danielalcalavalera@gmail.com
Requires-Python: >=3.10,<3.14
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: fastapi (>=0.138.0,<9999.0.0)
Requires-Dist: uvicorn (>=0.48.0,<9999.0.0)
Requires-Dist: yta_audio_narration_pipertts (>=0.1.4,<1.0.0)
Requires-Dist: yta_fastapi_docker_common (>=0.0.15,<1.0.0)
Requires-Dist: yta_fastapi_docker_tts_common (>=0.0.1,<1.0.0)
Description-Content-Type: text/markdown

# Youtube Autonomous FastAPI Docker TTS PiperTTS Module

The module that is providing the functionality related to generating audio narrations (TTS) through a FastAPI that is included and isolated in a Docker container but exposed to the internal and general FastAPI.

You need to set the `VOICES_DIR` environment variable to define the folder in which the voices must be placed (or automatically downloaded if missing when requested).

This engine needs the voices to be downloaded and loaded manually. Each voice needs 2 files, like this one:
- `es_ES-sharvard-medium.onnx`
- `es_ES-sharvard-medium.onnx.json`

### Endpoints

#### GET
- `/tts/pipertts/voices`
  - To get the list of the voices you can use.

#### POST
- `/tts/pipertts/narrate`
  - To narrate a text with a specific voice. Please, check all the possible values you can use for this specific engine. The fields we accept:
    - `text` - The text you want to narrate
    - `language` - The language you want to use in the narration
    - `voice_name` - The name of the voice you want to use
    - `pitch` - The pitch you want to use
    - `speed` - The speed you want to use
    - `emotion` - The emotion you want to use
