mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-25 16:25:43 +00:00
make stereo default
This commit is contained in:
parent
211d4fe632
commit
3cc6e2ea17
3 changed files with 4 additions and 4 deletions
|
|
@ -206,7 +206,7 @@ input[type="checkbox"] {
|
|||
<div><label>Steps</label><input id="inference_steps" type="number"></div>
|
||||
<div><label>Guidance</label><input id="guidance_scale" type="number"></div>
|
||||
<div><label>Shift</label><input id="shift" type="number"></div>
|
||||
<div><label>HD Stereo</label><input id="stereo" type="checkbox"></div>
|
||||
<div><label>HD Stereo</label><input id="stereo" type="checkbox" checked></div>
|
||||
<div><label>Gen Codes</label><input id="gen_codes" type="checkbox"></div>
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -2507,7 +2507,7 @@ def music_generate_audio(genparams):
|
|||
input_json = json.dumps(genparams)
|
||||
inputs = music_generation_inputs()
|
||||
inputs.is_planner_mode = False
|
||||
inputs.stereo = genparams.get('stereo', False)
|
||||
inputs.stereo = genparams.get('stereo', True)
|
||||
inputs.gen_codes = genparams.get('gen_codes', False)
|
||||
inputs.rewrite_caption = genparams.get('rewrite_caption', True)
|
||||
inputs.input_json = input_json.encode("UTF-8")
|
||||
|
|
|
|||
|
|
@ -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(mono, 48000);
|
||||
std::vector<float> resampled_buf = resample_wav(mono,48000,32000);
|
||||
finalb64 = save_wav16_base64(resampled_buf, 32000);
|
||||
}
|
||||
|
||||
if(acestep_dit_lowvram)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue