#tts #pre-processor #open-j-talk #text-to-speech #library

jpreprocess-window

Japanese text preprocessor for Text-to-Speech application (OpenJTalk rewrite in rust language)

17 releases (9 breaking)

0.10.0 Aug 14, 2024
0.9.1 Apr 29, 2024
0.8.1 Mar 23, 2024
0.6.3 Dec 16, 2023
0.2.0 Jun 6, 2023

#1612 in Text processing

Download history 5/week @ 2024-08-05 150/week @ 2024-08-12 5/week @ 2024-08-19 5/week @ 2024-08-26 6/week @ 2024-09-02 88/week @ 2024-09-09 158/week @ 2024-09-16 263/week @ 2024-09-23 120/week @ 2024-09-30 99/week @ 2024-10-07 308/week @ 2024-10-14 150/week @ 2024-10-21 104/week @ 2024-10-28 129/week @ 2024-11-04

691 downloads per month
Used in 4 crates (via jpreprocess-njd)

BSD-3-Clause

8KB
128 lines

jpreprocess-window

The utility library for jpreprocess, Japanese text preprocessor for Text-to-Speech application.

This package implements mutable window.

This project is a rewrite of OpenJTalk in Rust language.

Usage

Put the following in Cargo.toml

[dependencies]
jpreprocess-window = "0.10.0"

License

BSD-3-Clause

API Reference


lib.rs:

An iterator-like object which returns contiguous windows containing five mutable references.

Example

use jpreprocess_window::*;

let mut vector = [0, 1, 2, 3, 4];
let mut iter = IterQuintMut::new(&mut vector);
assert_eq!(iter.next().unwrap(), Quintuple::First(&mut 0, &mut 1, &mut 2, &mut 3));
assert_eq!(iter.next().unwrap(), Quintuple::Full(&mut 0, &mut 1, &mut 2, &mut 3, &mut 4));
assert_eq!(iter.next().unwrap(), Quintuple::ThreeLeft(&mut 1, &mut 2, &mut 3, &mut 4));
assert_eq!(iter.next().unwrap(), Quintuple::TwoLeft(&mut 2, &mut 3, &mut 4));
assert_eq!(iter.next().unwrap(), Quintuple::Last(&mut 3, &mut 4));

No runtime deps