The model is now added to WebAI.js. Try it in your browser with no code required.

#5
by AxolsWebAI - opened

Hi there,

We've packaged this model inside our open-source library WebAI.js, so you can now integrate it into your project with just a few lines of code:

import { WebAI } from '@axols/webai-js';

const webai = await WebAI.create({
   modelId: "moonshine-base-en"
});

await webai.init({
  mode: "webai",
  precision: "q8",
  device: "wasm"
});

const generation = await webai.generate({
  userInput: {
    audio_blob_url: "blob:https://www.webai-js.com/7b69d641-40f3-484a-8f85-c0a548a673ea"
  },
  modelConfig: {},
  generateConfig: {
    target_sample_rate: 16000
  }
});

πŸ”¬ Try Moonshine Base instruct Instantly (No Code Required)

You can benchmark and test the model directly here:
https://www.webai-js.com/models/moonshine-base-en/playground

image


πŸ“˜ Full API Reference

Detailed parameter explanations can be found here:
https://www.webai-js.com/models/moonshine-base-en/api-reference/v1/class-api/methods/webai-generate

image


🧑 Fully Open Source

WebAI.js is completely open source and free to use.
Star or contribute on GitHub:
https://github.com/axolsai/webai-js

Thanks

Sign up or log in to comment