Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

yanyu

byhow19MIT0.1.4TypeScript support: included

A Chinese speech synthesis and recognition library toolkit

speech, synthesis, pinyin

readme

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 -D 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 v14+

Test

# pnpm test - disabled for now

Code of Conduct

Code of Conduct.

License

Licensed under the MIT License.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.1.3 (2022-02-25)

0.1.2 (2022-02-25)