Socket
Book a DemoInstallSign in
Socket

whisper-transcript

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whisper-transcript

A web-component for viewing a Whisper JSON transcript

latest
Source
npmnpm
Version
0.0.7
Version published
Weekly downloads
2
100%
Maintainers
0
Weekly downloads
 
Created
Source

<whisper-transcript>

This web-component lets you view the JSON output of Whisper to graphically examine the probability of each word. You will want to run whisper with the --word_stamps turned on:

$ whisper --model large-v3 --word_timestamps True media.mp3

You can see a demo at https://edsu.github.io/whisper-transcript

Installation

yarn install whisper-transcript

Usage

Load the module:

<script type="module" src="https://cdn.jsdelivr.net/npm/whisper-transcript@latest/dist/index.js"></script>

And use it!

<whisper-transcript audio="media.mp3" url="media.json"></whisper-transcript>

If you have a video file that will play natively in the browser you can use the video attribute:

<whisper-transcript video="media.mp4" url="media.json"></whisper-transcript>

Develop

You will want to clone this repository and then:

yarn install
yarn start

This will open the page in the demo directory. If you like you can swap out the audio.mp3 and audio.json files for ones you've created to see what a transcript you've generated looks like.

FAQs

Package last updated on 25 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts