mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for blank actions in TTS export
This commit is contained in:
@@ -2145,7 +2145,8 @@ class KoboldStoryRegister(object):
|
|||||||
output = pydub.AudioSegment(np.int16(audio * 2 ** 15).tobytes(), frame_rate=sample_rate, sample_width=2, channels=channels)
|
output = pydub.AudioSegment(np.int16(audio * 2 ** 15).tobytes(), frame_rate=sample_rate, sample_width=2, channels=channels)
|
||||||
else:
|
else:
|
||||||
output = output + pydub.AudioSegment(np.int16(audio * 2 ** 15).tobytes(), frame_rate=sample_rate, sample_width=2, channels=channels)
|
output = output + pydub.AudioSegment(np.int16(audio * 2 ** 15).tobytes(), frame_rate=sample_rate, sample_width=2, channels=channels)
|
||||||
output.export(filename, format="ogg", bitrate="16k")
|
if output is not None:
|
||||||
|
output.export(filename, format="ogg", bitrate="16k")
|
||||||
logger.info("Slow audio took {} for {} characters".format(time.time()-start_time, text_length))
|
logger.info("Slow audio took {} for {} characters".format(time.time()-start_time, text_length))
|
||||||
|
|
||||||
def gen_all_audio(self, overwrite=False):
|
def gen_all_audio(self, overwrite=False):
|
||||||
|
Reference in New Issue
Block a user