function audioWaveform
audioWaveform(
srcPath: string,
outPath: string
): Promise<void>

Writes the waveform of the audio file srcPath as the waveform route's whole response, so the route serves it as a file, with its ETag.

Parameters

srcPath: string
outPath: string

Return Type

Promise<void>

Usage

import { audioWaveform } from "api/lib/ffmpeg.ts";