Skip to content

Commit

Permalink
ifmatchでのライフタイム延長
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Aug 11, 2024
1 parent 21c23a5 commit c437aaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/voicevox_core/src/infer/session_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ impl<R: InferenceRuntime, D: InferenceDomain> InferenceSessionSet<R, D> {
.iter()
.map(|ParamInfo { name, dt, ndim }| {
let brackets = match *ndim {
Some(ndim) => "[]".repeat(ndim),
None => "[]...".to_owned(),
Some(ndim) => &"[]".repeat(ndim),
None => "[]...",
};
format!("{name}: {dt}{brackets}")
})
Expand Down
6 changes: 3 additions & 3 deletions crates/voicevox_core/src/synthesizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ pub(crate) mod blocking {
} = audio_query;

let accent_phrases = if options.enable_interrogative_upspeak {
adjust_interrogative_accent_phrases(accent_phrases)
&adjust_interrogative_accent_phrases(accent_phrases)
} else {
accent_phrases.clone()
accent_phrases
};

let (flatten_moras, phoneme_data_list) = initial_process(&accent_phrases);
let (flatten_moras, phoneme_data_list) = initial_process(accent_phrases);

let mut phoneme_length_list = vec![*pre_phoneme_length];
let mut f0_list = vec![0.];
Expand Down

0 comments on commit c437aaa

Please sign in to comment.