Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.32 KB

README.md

File metadata and controls

56 lines (35 loc) · 1.32 KB

Yanyu.js

Yan

GitHub issues npm GitHub license

Overview

Yanyu is a high speed Chinese Text-to-Speech server-side 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

Run the following command:

pnpm i yanyu

QuickStart

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

import yan from 'yanyu';

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

Requirements:

  • Node.js LTS and beyond (20.x and above)

Test

# pnpm test - disabled for now

Code of Conduct

Code of Conduct.

License

Licensed under the MIT License.