1Signal Analysis and Interpretation Lab (SAIL), University of Southern California, USA
2Center for Language and Speech Processing, Johns Hopkins University, USA
Neural codecs encode continuous signals into compact sequences of discrete tokens, providing an interface for efficient transmission, storage, and token-based sequence modeling. This paradigm has been widely adopted in modern speech and audio frameworks; however, the biosignal domain still lacks a neural codec designed specifically for low-bitrate streaming and generalization across diverse downstream tasks. We present MyoCodec, a streaming neural codec designed for electromyography (EMG). Inspired by recent neural audio codecs, MyoCodec combines causal Transformers with residual vector quantization to encode continuous EMG signals into different levels of EMG representations spanning from continuous latent features to discrete tokens operating at 50 Hz. Trained on twelve public EMG datasets, MyoCodec achieves favorable performance in both intrinsic codec quality and representative downstream tasks, including typing (emg2qwerty), hand-pose (emg2pose), speech decoding (emg2speech), and speech-to-EMG synthesis (speech2emg). Across these tasks, MyoCodec exhibits strong performance against prior models while providing a compact and causal EMG representation. During streaming inference, it requires compute time of only 0.482 ms for each 20 ms frame, enabling real-time streaming. Also, the discrete token representation provided by MyoCodec has the potential to support integration into language-model based approaches, creating a path toward LLM-based interactive systems, where tokenized EMG representations are directly processed into such language or speech models. Code and model weights are released.
| Utterance | Ground truth | MyoCodec | BioCodec-v2 | TinyMyo | Gaddy |
|---|---|---|---|---|---|
| 2.8s I stopped at the group of people. | |||||
| 3.3s To get under water! | |||||
| 3.1s He is not an insurance agent.” | |||||
| 2.7s The place was impassable. | |||||
| 6.3s The horse took the bit between his teeth and bolted. | |||||
| 2.8s I stopped short in the doorway. | |||||
| 3.6s It was all so real and so familiar. | |||||
| 4.3s It hardly seemed a fair fight to me at that time. | |||||
| 2.8s I could not credit it. | |||||
| 6.3s I saw astonishment giving place to horror on the faces of the people about me. |