Skip to main content

Tool to make high quality text to speech (tts) corpus from audio + text books.

Project description

Narizaka

Tool to make high quality text to speech (tts) corpus from audio + text books.

How it works

First it splits audio files in to small segments 5-15 seconds, then it iterates over each segment and transcribes with whisper ASR and alligns this transcription with original text, if distance is very small we consider it as match and add it to the dataset.

Installation

pip install narizaka

Or if you plan to modify sources:

git clone https://github.com/patriotyk/narizaka.git
pip install -e narizaka/

Flag -e means that you can edit source files in the directory where you have cloned this project and they will be reflected when you run command narizaka

How to use

Application accepts two inputs. First one, it is audio data, that can be folder of audio files, or just one audio file. And text, that can be any document that accepts pandoc application. Example:

narizaka -a test_data/farshrutka -t test_data/Farshrutka.fb2

This repository contains test_data that includes audio and text books that you can use for testing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

narizaka-1.0.3.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

narizaka-1.0.3-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page