Giter Club home page Giter Club logo

azuretts's Introduction

Azure TTS

Usage

  1. pip install -r requirement.txt
  2. Copy .env_eamply to .env
  3. Modify your Azure TTS key in .env
  4. python main.py --text "Hello world" --voice en-US-AriaNeural
  5. Output will be tts.wav

Play the audio instead of saving file

  1. python main.py --text "Hello world" --voice en-US-AriaNeural --play

Generate batch file from script

  1. Generate Multiple audio for each line in script
  2. python main.py --script script.txt
  3. Output will be tts*.wav

Help

  -h, --help            show this help message and exit
  --filename FILENAME   Output filename
  --text TEXT           Text to speak
  --voice VOICE         Voice to use
  --style STYLE         Voice style to use, this arugment will be the default style if script is provided. Default is chat
  --styledegree STYLEDEGREE
                        Voice style degree, this arugment will be the default style degree if script is provided. Default is 1
  --play                Play the output or store in filename

Add voice style to your script in each line.

To adjust the voice style, add style,styledegree: at the beginning of each line. If no style is specified, the default voice style will be used, which can be adjusted using the --style option.

excited,2:Creates a speech synthesizer with a null output stream.
This means the audio output data will not be written to any output channel.
You can just get the audio from the result.

Voice list

Language Text-to-speech voice Gender
English (United States) en-US-JennyMultilingualNeural3 (Female)
en-US-JennyNeural (Female)
en-US-GuyNeural (Male)
en-US-AriaNeural (Female)
en-US-DavisNeural (Male)
en-US-AmberNeural (Female)
en-US-AnaNeural (Female, Child)
en-US-AshleyNeural (Female)
en-US-BrandonNeural (Male)
en-US-ChristopherNeural (Male)
en-US-CoraNeural (Female)
en-US-ElizabethNeural (Female)
en-US-EricNeural (Male)
en-US-JacobNeural (Male)
en-US-JaneNeural (Female)
en-US-JasonNeural (Male)
en-US-MichelleNeural (Female)
en-US-MonicaNeural (Female)
en-US-NancyNeural (Female)
en-US-RogerNeural (Male)
en-US-SaraNeural (Female)
en-US-SteffanNeural (Male)
en-US-TonyNeural (Male)
en-US-AIGenerate1Neural1 (Male)
en-US-AIGenerate2Neural1 (Female)
en-US-BlueNeural1 (Neutral)
en-US-JennyMultilingualV2Neural1,3 (Female)
en-US-RyanMultilingualNeural1,3 (Male)

azuretts's People

Contributors

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