Code Monkey home page Code Monkey logo

hantts's Introduction

HanTTS Build Status

Chinese Text-to-Speech(TTS)

汉字 => ["han4", "zi4"] => .wav audio

Read this page in 简体中文

Libraries Used

For turning Chinese characters into pinyin

For processing .wav files

Web backend

A list of all Chinese characters is obtained from 倉頡平台2012, a Chinese input software.

Build and Run

git clone https://github.com/junzew/HanTTS.git
cd HanTTS
pip install --user -r requires.txt

Download syllables.zip from SourceForge, and decompress under the directory HanTTS.

  • Either run locally: python main.py
  • Or through web interface: cd into the server folder
     npm install
     node app.js
    
    Navigate to localhost:3000 in a browser

Use your own voice

  • Record five tones of each pinyin listed in mapping.json
  • Group them by the first letter (a,b,c,d, etc.), and save under folder ./recording as {letter}.wav
  • Then run python process.py {letter}for each letter to split recordings into individual pinyin
  • Move valid .wav files from ./pre to the folder ./syllables

Based on the text-to-speech-sample project by @alexram1313

hantts's People

Contributors

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