Arsh9210's picture
Added audex_causal_speech_decoder/README.md
0b41c93 verified
|
Raw
History Blame
479 Bytes

Standalone Audex Causal Speech Decoder

Audex streaming decoder for speech codec token frames packaged as Hugging Face remote code.

from transformers import AutoModel

decoder = AutoModel.from_pretrained(
    "path/to/audex_causal_speech_decoder",
    trust_remote_code=True,
).cuda().eval()
session = decoder.create_session(chunk_frames=75)

for sample_rate, samples in session.push([[123], [456]]):
    ...
for sample_rate, samples in session.flush():
    ...