A decoding algorithm that converts brain signals from the language motor cortex into Mandarin Chinese text or speech, covering all 407 Mandarin syllables.