Bark.cpp integration for React Native
npm install bark.rn
import BarkContext from 'bark.rn';
// Load model
const ctx = await BarkContext.load('path/to/model.bin');
// Inference
const result = await ctx.generate('Hello, world!', 'path/to/output.wav');
// Result: { success: boolean, load_time: number, eval_time: number }
// Release context
await ctx.release();
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library