Giter VIP home page Giter VIP logo

piper-docker's Introduction

Piper-Docker: Text-to-Speech API using Flask and Swagger

Piper-Docker Swagger

Table of Contents

Introduction

Welcome to Piper-Docker, a powerful Text-to-Speech (TTS) API built with Flask and Swagger. This project aims to provide an easy-to-use API that leverages the piper library, offering a variety of voice models from the piper-voices project to generate high-quality audio from text input.

Installation

To get started with Piper-Docker, follow these steps:

  1. Ensure you have Docker installed on your system.
  2. Clone the Piper-Docker repository:
    git clone https://github.com/Mateus-Brito/piper-docker.git
    cd piper-docker
  3. Install the project and its dependencies using make:
    make install
    This command will set up the required dependencies and create a Docker container with the application ready to run.

Usage

Once you have installed Piper-Docker, it's time to run the application. To do this, simply execute the following command:

make start

This will start the Flask server and Swagger UI at http://localhost:5000/apidocs/, allowing you to interact with the API and generate audio from text using various voice models available in 'piper-voices'.

API Endpoints

Piper-Docker exposes the following API endpoints:

  • GET /api/tts?text=&voice_id=: Synthesizes audio from the given text using the specified voice ID.
  • GET /tts/voices: Retrieves a list of available voices for each language, with their respective voice types.

Note The MODEL_CARD file for each voice contains important licensing information. Piper is intended for text to speech research, and does not impose any additional restrictions on voice models. Some voices may have restrictive licenses, however, so please review them carefully!

Happy text-to-speech synthesis! ๐ŸŽค๐Ÿ”Š

piper-docker's People

Contributors

mateus-brito avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.