mirror of
https://github.com/neodyland/sbv2-api.git
synced 2026-05-16 05:40:39 +00:00
テストのための修正
This commit is contained in:
@@ -7,8 +7,8 @@ fn main() -> error::Result<()> {
|
||||
println!("{}", normalized_text);
|
||||
|
||||
let jtalk = text::JTalk::new()?;
|
||||
jtalk.g2p(&normalized_text)?;
|
||||
println!("{:?}", ());
|
||||
let (phones, tones, _) = jtalk.g2p(&normalized_text)?;
|
||||
println!("{:?}", tones);
|
||||
|
||||
let tokenizer = text::get_tokenizer()?;
|
||||
println!("{:?}", tokenizer);
|
||||
|
||||
@@ -54,11 +54,10 @@ impl JTalk {
|
||||
Ok(Self { jpreprocess })
|
||||
}
|
||||
|
||||
pub fn g2p(&self, text: &str) -> Result<()> {
|
||||
pub fn g2p(&self, text: &str) -> Result<(Vec<String>, Vec<i32>, Vec<i32>)> {
|
||||
let parsed = self.jpreprocess.run_frontend(text)?;
|
||||
let jtalk_process = JTalkProcess::new(Arc::clone(&self.jpreprocess), parsed);
|
||||
jtalk_process.g2p()?;
|
||||
Ok(())
|
||||
jtalk_process.g2p()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user