Coder Social home page Coder Social logo

tts's Introduction

A command line tool to read text with Microsoft Speech API (SAPI), written by Brook Hong in 2008.

Pre-built binary at http://sharing-from-brook.16002.n6.nabble.com/file/n4967530/tts.zip

Usage

tts [options] [text_to_read]
    -h       show this message.
    -I       interactive mode.
    -F       list all formats supported.
    -V       list all voices installed.
    -f <format index>        use the indexed format.
    -v <voice index>         use the indexed voice.
    -i <filename>    read from the file.
    -o <filename>    output to the .wav file.
    -l       output .lrc files.
    -t       convert to .mp3 file.
    -s <minutes>     split the output every X minutes, default by 5.

Example

1 tts.exe -F to list all formats available on your computer.

0 SPSF_12kHz16BitStereo
1 SPSF_16kHz16BitMono
2 SPSF_16kHz16BitStereo
3 SPSF_22kHz16BitMono
4 SPSF_22kHz16BitStereo
5 SPSF_24kHz16BitStereo
6 SPSF_32kHz16BitStereo
7 SPSF_44kHz16BitMono
8 SPSF_44kHz16BitStereo
9 SPSF_48kHz16BitMono
10 SPSF_48kHz16BitStereo

2 tts.exe -V to list all voices available on your computer.

0 Microsoft Anna - English (United States)
1 ATT DTNV1.4 Crystal16
2 ATT DTNV1.4 Mike16
3 ATT DTNV1.4 Audrey16
4 Microsoft Lili - Chinese (China)
5 VW Paul

3 now read text with format SPSF_48kHz16BitStereo and voice ATT DTNV1.4 Crystal16:

tts.exe -f 10 -v 1 "look, here is brook"

tts.exe -f 10 -v 1 "look, here is brook" -o look to generate look.wav instead of reading it.

tts.exe -f 10 -v 1 "look, here is brook" -o look -t to generate look.mp3 instead of reading it.

Build

cl tts.cpp lame.lib libmp3lame-static.lib mpglib-static.lib

tts's People

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.