MCPcopy Create free account
hub / github.com/MYZY-AI/Muyan-TTS / read_clean_buffer

Function read_clean_buffer

sovits/utils.py:71–75  ·  view source on GitHub ↗
(audio_bytes)

Source from the content-addressed store, hash-verified

69 return text
70
71def read_clean_buffer(audio_bytes):
72 audio_chunk = audio_bytes.getvalue()
73 audio_bytes.truncate(0)
74 audio_bytes.seek(0)
75 return audio_bytes, audio_chunk
76
77def pack_audio(audio_bytes, data, rate, media_type="wav", is_int32=False):
78 if media_type == "ogg":

Callers 1

get_tts_wavMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected