#tts #openjtalk #library #text-to-speech

jpreprocess-window

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

15 releases (8 breaking)

new 0.9.0 Apr 14, 2024
0.8.1 Mar 23, 2024
0.8.0 Feb 24, 2024
0.6.3 Dec 16, 2023
0.2.0 Jun 6, 2023

#1806 in Text processing

Download history 1/week @ 2023-12-22 15/week @ 2024-02-02 11/week @ 2024-02-16 202/week @ 2024-02-23 29/week @ 2024-03-01 11/week @ 2024-03-08 6/week @ 2024-03-15 192/week @ 2024-03-22 86/week @ 2024-03-29 31/week @ 2024-04-05

317 downloads per month
Used in 3 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.9.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