Skip to content

Commit

Permalink
不要なtodo!分岐を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Jan 3, 2024
1 parent 6d2eb80 commit dbbf89c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion crates/voicevox_core/src/engine/audio_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub(crate) fn to_wav<T: Float + From<i16> + From<f32> + Cast<i16>>(
wave: &[T],
audio_query: &AudioQueryModel,
) -> Vec<u8> {
// TODO: ライブラリ(e.g. https://docs.rs/hound)を使う
// TODO: ライブラリ(e.g. https://docs.rs/rubato & https://docs.rs/hound)を使う

let volume_scale = *audio_query.volume_scale();
let output_stereo = *audio_query.output_stereo();
Expand Down
6 changes: 0 additions & 6 deletions crates/voicevox_core/src/engine/morph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ impl<'metas> MorphableTargets<'metas> {
audio_query: &AudioQueryModel,
morph_rate: f64,
) -> crate::Result<Vec<u8>> {
if *audio_query.output_sampling_rate() != DEFAULT_SAMPLING_RATE
|| *audio_query.output_stereo()
{
todo!();
}

let waves = &self.get().try_map(|style_id| {
synthesizer.synthesis_wave(audio_query, style_id, &Default::default())
})?;
Expand Down

0 comments on commit dbbf89c

Please sign in to comment.