diff --git a/crates/sbv2_core/src/jtalk.rs b/crates/sbv2_core/src/jtalk.rs index 594c14d..705e066 100644 --- a/crates/sbv2_core/src/jtalk.rs +++ b/crates/sbv2_core/src/jtalk.rs @@ -76,7 +76,7 @@ static MORA_PATTERN: Lazy> = Lazy::new(|| { }); static LONG_PATTERN: Lazy = Lazy::new(|| Regex::new(r"(\w)(ー*)").unwrap()); -fn phone_tone_to_kana(phones: Vec, tones: Vec) { +fn phone_tone_to_kana(phones: Vec, tones: Vec) -> Vec<(String, i32)> { let mut results = Vec::new(); let mut current_mora = String::new(); for ((phone, next_phone), (tone, next_tone)) in phones @@ -98,6 +98,7 @@ fn phone_tone_to_kana(phones: Vec, tones: Vec) { current_mora = String::new(); } } + results } pub struct JTalkProcess {