MCPcopy Index your code
hub / github.com/Standard-Intelligence/hertz-dev / next_audio_from_audio

Method next_audio_from_audio

model.py:321–326  ·  view source on GitHub ↗
(self, audio_data: T.Tensor, temps=(0.8, (0.5, 0.1)))

Source from the content-addressed store, hash-verified

319
320 @T.no_grad()
321 def next_audio_from_audio(self, audio_data: T.Tensor, temps=(0.8, (0.5, 0.1))):
322 latents_in = self.tokenize(audio_data)
323 next_latents = self.next_latent(latents_in, temps)
324 next_model_latent = next_latents[..., self.c.latent_size:]
325 audio_decoded = self.untokenize(next_model_latent)[..., -2000:]
326 return audio_decoded
327
328
329 @T.no_grad()

Callers 2

initialize_stateMethod · 0.80
process_audioMethod · 0.80

Calls 3

tokenizeMethod · 0.95
next_latentMethod · 0.95
untokenizeMethod · 0.95

Tested by

no test coverage detected