isaacgv / cog-whisper

  • Public
  • 465 runs
  • A100 (80GB)

Input

Run this model in Node.js with one line of code:

npx create-replicate --model=isaacgv/cog-whisper
or set up a project from scratch
npm install replicate
Set the REPLICATE_API_TOKEN environment variable:
export REPLICATE_API_TOKEN=<paste-your-token-here>

Find your API token in your account settings.

Import and set up the client:
import Replicate from "replicate";

const replicate = new Replicate({
  auth: process.env.REPLICATE_API_TOKEN,
});

Run isaacgv/cog-whisper using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

const output = await replicate.run(
  "isaacgv/cog-whisper:c2e1638275200006c28d4079534577724f3918460d954784d2353d96a3aa55d3",
  {
    input: {
      model: "large-v2",
      language: "af",
      translate: false,
      temperature: 0,
      transcription: "plain text",
      suppress_tokens: "-1",
      word_timestamps: true,
      logprob_threshold: -1,
      no_speech_threshold: 0.6,
      condition_on_previous_text: true,
      compression_ratio_threshold: 2.4,
      temperature_increment_on_fallback: 0.2
    }
  }
);

console.log(output);

To learn more, take a look at the guide on getting started with Node.js.

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model costs approximately $0.63 to run on Replicate, or 1 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia A100 (80GB) GPU hardware. Predictions typically complete within 8 minutes. The predict time for this model varies significantly based on the inputs.

Readme

This model doesn't have a readme.