google / lyra

A Very Low-Bitrate Codec for Speech Compression
Apache License 2.0
3.8k stars 354 forks source link

how to read the encoded data in the sample1_16kHz.lyra file into python/numpy array? #129

Open yongxuUSTC opened 1 year ago

yongxuUSTC commented 1 year ago

Hi,

Could anyone know how to read the encoded data in the sample1_16kHz.lyra file into python/numpy array? Is it a binary file? is there a python code which can save into python/numpy array? I do not want to decode it. Are there some bytes for the header/tail in the sample1_16kHz.lyra file? And are the rest valid data saved in UInt16?

Best regards, yong