Skip to main content

Youtube Autonomous FastAPI Docker TTS PiperTTS Module

Project description

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

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

yta_fastapi_docker_tts_pipertts-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file yta_fastapi_docker_tts_pipertts-0.0.1.tar.gz.

File metadata

File hashes

Hashes for yta_fastapi_docker_tts_pipertts-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d16c366291c25bd82ba4f6fa48271d52255183141f7339f8251aaf78e51d76e8
MD5 f97fcae75e01596375909985f7109163
BLAKE2b-256 cae481b03229b84967f1f6b0950784024175aa1cdf2b8dd67ebca3898d0c5a31

See more details on using hashes here.

File details

Details for the file yta_fastapi_docker_tts_pipertts-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for yta_fastapi_docker_tts_pipertts-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e67e17ef6a617adab771d7cb91156cbebba04e1d4fc297d9531d621b0eec3cfd
MD5 d15ab5c03e1680285812d306ba64abf1
BLAKE2b-256 b04ea0b94d016a73631dbfcdefc4eaca2bf31fdf81b141b985b8decfa178954f

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