mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 09:04:36 +00:00
remove tts audio caching
This commit is contained in:
parent
b162c25a5e
commit
71016db617
4 changed files with 3 additions and 20 deletions
|
@ -304,8 +304,7 @@ class tts_load_model_inputs(ctypes.Structure):
|
|||
class tts_generation_inputs(ctypes.Structure):
|
||||
_fields_ = [("prompt", ctypes.c_char_p),
|
||||
("speaker_seed", ctypes.c_int),
|
||||
("audio_seed", ctypes.c_int),
|
||||
("nocache", ctypes.c_bool)]
|
||||
("audio_seed", ctypes.c_int)]
|
||||
|
||||
class tts_generation_outputs(ctypes.Structure):
|
||||
_fields_ = [("status", ctypes.c_int),
|
||||
|
@ -1491,7 +1490,6 @@ def tts_generate(genparams):
|
|||
except Exception:
|
||||
aseed = -1
|
||||
inputs.audio_seed = aseed
|
||||
inputs.nocache = genparams.get("nocache", False)
|
||||
ret = handle.tts_generate(inputs)
|
||||
outstr = ""
|
||||
if ret.status==1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue