MCPcopy Create free account
hub / github.com/FunAudioLLM/ThinkSound / encode_audio

Method encode_audio

ThinkSound/models/autoencoders.py:430–503  ·  view source on GitHub ↗

Encode audios into latents. Audios should already be preprocesed by preprocess_audio_for_encoder. If chunked is True, split the audio into chunks of a given maximum size chunk_size, with given overlap. Overlap and chunk_size params are both measured in number of latents (not

(self, audio, chunked=False, overlap=32, chunk_size=128, **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

encodeMethod · 0.45

Calls 1

encodeMethod · 0.95

Tested by

no test coverage detected