mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-08 01:41:37 +00:00
don't resample audio
This commit is contained in:
parent
45c74da08b
commit
ee96e71bae
1 changed files with 2 additions and 2 deletions
|
|
@ -992,8 +992,8 @@ std::string acestep_generate_audio(const music_generation_inputs inputs)
|
|||
finalb64 = save_stereo_wav16_base64(audio,T_audio,48000);
|
||||
} else {
|
||||
std::vector<float> mono = mix_planar_stereo_to_mono(audio.data(), T_audio);
|
||||
std::vector<float> resampled_buf = resample_wav(mono,48000,32000);
|
||||
finalb64 = save_wav16_base64(resampled_buf, 32000);
|
||||
// std::vector<float> resampled_buf = resample_wav(mono,48000,32000);
|
||||
finalb64 = save_wav16_base64(mono, 48000);
|
||||
}
|
||||
|
||||
if(acestep_dit_lowvram)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue