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.
Run the following command:
pnpm i yanyu
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)
# pnpm test - disabled for now
Licensed under the MIT License.