UNPKG

assemblyai

Version:

The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.

8 lines (6 loc) 215 B
import { createReadStream } from "fs"; import { Readable } from "stream"; export const readFile = async (path: string) => Readable.toWeb( createReadStream(path), ) as unknown as ReadableStream<Uint8Array>;