GithubHelp home page GithubHelp logo

airenas / espnet-tts-serving Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 69 KB

Serves ESPnet TTS model file.

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 3.18% Makefile 16.82% Python 73.84% JavaScript 6.16%

espnet-tts-serving's Introduction

espnet-tts-serving

Python Coverage Status CodeQL

Serves ESPnet (version 2) TTS model file. It packs the python code into a docker container for running pytorch on CPU/GPU. It is just a pytorch model inference. No special frontend is defined here. Input is a list of phonemes: {"text":"a <space> b", "voice": "sample.v"}, output is a based64 encoded spectrogram prediction: {"data":"T5CE ...<truncated>... AAA=="}.

Configuration

The service can load several models. It takes a configuration file as an input. See deploy/cpu/voices.yaml as a sample. Service will load a model for a configured voice name, and it will keep it until a request with another voice name will arrive. There is a possibility to load several models into a memory using environment WORKERS parameter.

There is also some load balancer implemented. It tries to keep a model in memory if there are many requests waiting for the same voice.

Sample usage

See deploy/cpu or deploy/gpu for deployment and testing samples.

ESPnet version 1

For ESPnet (version 1) look at ESPnet1 branch


License

Copyright © 2021, Airenas Vaičiūnas.

Released under the The 3-Clause BSD License.


espnet-tts-serving's People

Contributors

airenas avatar

Stargazers

 avatar  avatar  avatar  avatar  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.