github software-mansion/react-native-executorch v0.7.0

15 hours ago

Announcing React Native ExecuTorch v0.7.0 🌟

If you’re tired of robotic-sounding speech synthesizers, this one’s for you!

What’s new?

  • Text to speech: Support for generating speech using Kokoro docs
  • Reduced bundle size: We switched a library for tokenization, resulting in 64% reduction in package size
  • OCR file sizes improvement: Previously, for the OCR pipeline to work, you needed 4 different model files. We made changes to use just one file, reducing the total file sizes by 3x (313MB -> 101MB) docs
  • Improved error handling: The errors thrown from our library are now assigned a code property, allowing for fine-grained error handling docs
  • LLMs: new stats API (getPromptTokenCount, getTotalTokenCount)
  • LLMs: generate() API now returns a string, instead of void docs
  • Our documentation now includes an API reference section
  • General bug-fixes

Breaking changes ⚠️

  • Removed responseCallback() in LLM APIs
  • OCR now takes a single modelSource, instead of 3.
  • Removed constants for VERTICAL_OCR. From now, only OCR_* constants should be used for both OCR and vertical OCR.
  • Passing waveforms as number[] in Speech to Text is now not supported anymore. Please use Float32Array instead.
  • TokenizerModule will now throw RnExecutorchError when idToToken or tokenToIdFails (for example when you pass a token outside of the vocab)
  • The error property in all of the hooks now is of type RnExecutorchError instead of string.

Don't miss a new react-native-executorch release

NewReleases is sending notifications on new releases.