yanyu

A Chinese speech synthesis and recognition library for nodejs, aiming at high efficiency real time voice casting.

Usage no npm install needed!

<script type="module">
  import yanyu from 'https://cdn.skypack.dev/yanyu';
</script>

README

Yanyu.js

Yan

GitHub issues npm GitHub license

Overview

Yanyu is a high speed Chinese Text-to-Speech JavaScript library for Node.js. It aims to generate audio files based on Chinese characters. Recognition and support for other languages is planned in the future.

Installation

NPM

Run the following command:

npm install yanyu

QuickStart

Call the systhesis() function to convert Chinese string to mp3 files.

import yan from 'yanyu';

const yan = new Yan();
yan.synthesis('你好', 'pinyin-syllables');

Requirements:

  • Node v12+

Test

npm test

Code of Conduct

Code of Conduct.

License

Licensed under the MIT License.