meronym / speaker-transcription

Whisper transcription plus speaker diarization

  • Public
  • 27.9K runs
  • T4
  • GitHub
  • License

Run meronym/speaker-transcription with an API

Use one of our client libraries to get started quickly.

Set the REPLICATE_API_TOKEN environment variable

export REPLICATE_API_TOKEN=<paste-your-token-here>

Learn more about authentication

Install Replicate’s Node.js client library

npm install replicate
Learn more about setup

Run meronym/speaker-transcription using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

import Replicate from "replicate";
const replicate = new Replicate();

const input = {
    audio: "https://replicate.delivery/pbxt/IZruuPAVCQh1lI25MIihRwFHN4MvjH7xcBTgnbXUDM1CAY7m/lex-levin-4min.mp3"
};

const output = await replicate.run("meronym/speaker-transcription:9950ee297f0fdad8736adf74ada54f63cc5b5bdfd5b2187366910ed5baf1a7a1", { input });

import { writeFile } from "node:fs/promises";
await writeFile("output.json", output);
//=> output.json written to disk
Learn more