JavaScript opus encoder