1.1.1 • Published 1 year ago

lyra-codec v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

lyra-js

A Webassembly/Javascript port of Lyra, a neural audio codec from Google. It enables audio encoding and decoding with Lyra on web browsers.

Installation.

NPM

npm install lyra-codec --save
import {encodeWithLyra, decodeWithLyra, isLyraReady} from 'lyra-codec'

UNPKG

import {encodeWithLyra, decodeWithLyra, isLyraReady} from 'https://unpkg.com/lyra-codec/dist/lyra_bundle.js'

Usage

if (isLyraReady()) {
  // Encode with Lyra codec.
  const rawAudio = new Float32Array(...);
  const encodedAudio = encodeWithLyra(audioArray, kSampleRate);

  const decoded = decodeWithLyra(encodedAudio, kSampleRate, rawAudio.length);
} else {
  ...
}

Example

See Lyra on webassembly for a demo of lyra-js in action.

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago