Skip to content

Releases: lingua-libre/LinguaRecorder

v2.2.0

02 Dec 16:43
252f0e6
Compare
Choose a tag to compare

Changelog

  • Enhance support of usage in nodeJS-like environments

v2.1.0

15 Nov 20:02
2fe1118
Compare
Choose a tag to compare

This new release was mainly carried by @davidnbooth, thanks to him.

Changelog

  • Fixed lots of spelling mistakes
  • Event "stoped" thus became "stopped", an alias remain to avoid breaking any code
  • Create a type declaration file (for typescript project)
  • Support different import styles (node, webpack,...)
  • Htmlhint on the demo

Depreciation note

Using the "stoped" event instead of "stopped" will raise a depreciation warning in the console. Note that this alias will disappear in the next major version.

v2.0.1

07 Sep 08:02
c9d557b
Compare
Choose a tag to compare

Changelog

  • Bugfix: fixed an "unexpected token" error when using the LinguaRecorder in a minified version.

v2.0.0

13 Aug 21:25
101a7c0
Compare
Choose a tag to compare

LinguaRecorder used internaly the native BaseAudioContext:createScriptProcessor interface. But it has been deprecated for a long time now, so it became mandatory to migrate to the new AudioWorklet API.

Given that their functioning is radically different, the choice was made to completely migrate to this new interface, dropping support of old browsers. Those changes required a deep rewrite of the library. We wanted to keep LinguaRecorder's API as unchanged as possible, but there are still a few minor breaking changes that happened.

Changelog

  • Migration from the old and deprecated createProcessorNode to the new AudioWorklet
  • Remove legacy code made for old-browser support
  • Code simplification by using "new" features: async/await, let, const, class,...
  • New LinguaRecorder.close() method to cleanly stop the audio recorder
  • New LinguaRecorder.setConfig(config) method to change config options on-the-fly
  • README enhancements
  • Minor demo updates

Migration note

Breaking changes:

  • A new file has now to be included: src/RecordingProcessor.js
  • on LinguaRecorder:
    • The methods start, pause, stop, cancel and toggle now return the current LinguaRecorder instance instead of a boolean.
    • The bufferSize configuration option has been removed.
  • The AudioRecord class now only accepts data when it is created. For this reason:
    • The constructor prototype has changed from AudioRecord(sampleRate) to AudioRecord(samples, sampleRate).
    • The push method was removed.

Browser compatibility

Note also that using AudioWorklet breaks the previous compatibility table. Supported browsers are now the following:

  • Firefox 76+
  • Chrome 66+
  • Firefox for androïd 79+
  • Chrome for androïd 66+
  • Microsoft Edge 79+
  • Safari 14.1+
  • Opera 53+

v1.0.4

13 Aug 19:07
f0df6a5
Compare
Choose a tag to compare

Changelog:

  • Bugfix: Triming of the last samples bloc was made on the wrong side when using autoStart and/or autoStop.
  • The licence has changed to MIT.
  • [Demo] Bugfix: The Sandbox wasn't reading the onSaturate parameter from the UI.

v1.0.3

09 May 10:22
fa727a7
Compare
Choose a tag to compare

Changelog:

  • Remove some binary patterns in the generated WAV file to avoid MIME-type mismatch by some MIME analyzer.

v1.0.2

29 Apr 07:23
25a801b
Compare
Choose a tag to compare

Minor bugfix:

  • Some configuration options was ignored