Coder Social home page Coder Social logo

styletts2-cli-mod's Introduction

Original Repo - CLI Tool - Streaming API

Usage

Join Audio CLI (Not personnaly used, part of original)

python join.py audio1.wav audio2.mp3 audio3.mp4 audio4.ogg output.mp3

Inference CLI

Docs:

StyleTTS 2 CLI Inference
Usage: cli.py [OPTIONS] TEXT OUTPUT

options:
  -h, --help            show this help message and exit
  -f, --file            Use a file for text input (Script.txt), boolean
  -b, --batch           Every new line will save as an audio file, boolean
  -p PTHPATH, --pthpath PTHPATH Where the pth model is stored, path
  -t TEXT, --text TEXT  Text or file to use as text, string or path
  -a AUDIO, --audio AUDIO Audio file to use as a reference voice, path
  -v ALPHA, --alpha ALPHA Alpha for STTS2, sets the tiimbre or how closely to resemble the reference, float from 0.0 to 1.0
  -e BETA, --beta BETA Beta for STTS2, sets the prosidy, emotional variable, to resemble the reference, float from 0.0 to 1.0
  -s SCALE, --scale SCALE CFG, or classifier free guidance scale, how diverse it will be, or emotional, float
  -x, --denoiseonly Use resemble-enhance in denoise only mode, boolean
  -y LAMBD, --lambd LAMBD The denoise amount for resemble-enhance, float from 0.0 to 1.0
  -z NFE, --nfe NFE Quality setting for resemble-enahnce, no more than 128, but 128 is suggested.

Requirements:

pip install resemble-enhance --upgrade

Inference:

python cli.py -t "Let's get this party started!" -a "/mnt/a/example.wav" -p "/mnt/a/Model_2nd_00049.pth" -b -x -y 0.5 -z 128

Inference from a file:

python cli.py -t ./Script.txt -a "/mnt/a/example.wav" -p "/mnt/a/Model_2nd_00049.pth" -f -b -x -y 0.5 -z 128

License

GPL due to Phonemizer (soon to be permissively licensed as soon as I find a permissively-licensed Phonemizer replacement)

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.