Giter Club home page Giter Club logo

ttsflow's Introduction

ttsflow

speech synthesis c++ inference for voicenet

ttsflow can be built with both google's bazel build tool and gnu's make. We provide compatibility with bazel for convenience to build from scratch once cloned. However, the final executable file may be really big, which is nearly 60M. The reason is that many unused tensorflow codes are compiled and linked into the final executable file staticly. Maybe it is more suitable to build with gnu's makefile, especially when you want to incorporate tensorflow into your project, so we provide makefile too.

Installation

Method one: build with bazel

It's quite simple to build this project with bazel, just type:

cd ./third_party/tensorflow
./configure
cd ../../
bazel build -c opt --config=opt ttsflow/examples/...

The generated executable file is located in bazel-bin/ttsflow/examples/ttsflow_test

Method two: build with gnu's make

In order to build with tensorflow, you should first compile tensorflow as dynamic-link library.

To build libtensorflow_cc.so for c++, just run:

cd ./third_party/tensorflow
./configure
bazel build -c opt --config=opt //tensorflow:libtensorflow_cc.so

Another prerequisite is protobuf, which should be installed in ttsflow/third_party/protobuf:

cd ./third_party/protobuf
./autogen.sh
./configure --prefix=`pwd`
make
make install

As for vocoder, we use the world vocoder, which is placed in ttsflow/third_party/World:

cd ./third_party/World
make

To compile this project, just directly type make, and a symbolic link named ttsflow_main will be created under the root dir.

make

# Run ttsflow
./ttsflow_main

Also, you can run the test cases after compiling the test files.

make test

ttsflow's People

Contributors

npuichigo avatar

Watchers

James Cloos avatar Ewald Enzinger 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.