Skip to content

About

Generate audio files of sentences in English and their translation in Chinese using speech synthesis

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Chinese learning

This is a tool to generate audio files of sentences in English and their translation in Chinese. I use it as part of my personal method to learn new languages.

The speech synthesis uses this model from Hugging Face to prevent the sentences from sounding too robotic.

Prerequisites

This repository uses Git Large File Storage (LFS) to handle the local AI voice models (models/model.onnx).

Before cloning this repository, you must have Git LFS installed on your machine. Otherwise, the model files will not download correctly, and the script will fail.

Installation & Setup

  1. Install Git LFS:
    brew install git-lfs
  2. Set up Git LFS globally on your system:
    git lfs install
  3. Clone this repository
  4. Install dependencies with pnpm i (or npm i if you don't have pnpm)
  5. Edit the sentences and the parameters in index.js
  6. Run the script to generate the audio file:
    node index.js

About

Generate audio files of sentences in English and their translation in Chinese using speech synthesis

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages