mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* feat(cli): the api exports offloadHeavyMedia and every offloaded file reports its asset_id * fix(cli): drop the asset_id doc comment that raised the file's comment share
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
/**
|
|
* For HyperFrames' own apps; it may change between minor versions. Nothing here prints, reads
|
|
* argv or exits. Known failures throw TranscribeError or RemoveBackgroundError with a `code`.
|
|
*/
|
|
import { runTranscribe, type TranscribeOptions, type TranscribeResult } from "./api/transcribe.js";
|
|
|
|
export {
|
|
MIN_TIMEOUT_MS,
|
|
TranscribeError,
|
|
type CaptionFormat,
|
|
type TranscribeCaptionsOptions,
|
|
type TranscribeEngine,
|
|
type TranscribeEngineEvent,
|
|
type TranscribeErrorCode,
|
|
type TranscribeOptions,
|
|
type TranscribeProgressEvent,
|
|
type TranscribeResult,
|
|
type TranscribeRunner,
|
|
type TranscriptFormat,
|
|
} from "./api/transcribe.js";
|
|
export {
|
|
RemoveBackgroundError,
|
|
removeBackground,
|
|
type RemoveBackgroundDevice,
|
|
type RemoveBackgroundErrorCode,
|
|
type RemoveBackgroundOptions,
|
|
type RemoveBackgroundProgress,
|
|
type RemoveBackgroundQuality,
|
|
type RemoveBackgroundResult,
|
|
} from "./api/removeBackground.js";
|
|
|
|
export {
|
|
offloadHeavyMedia,
|
|
type GifPrep,
|
|
type OffloadOptions,
|
|
type OffloadedMedia,
|
|
type Reencoder,
|
|
type UploadableFile,
|
|
} from "./cloud/offload.js";
|
|
export type { DiskFile, StagedFile } from "./utils/publishProject.js";
|
|
|
|
/** Transcribe media to `dir`/transcript.json, or import or export a transcript file. */
|
|
export function transcribe(options: TranscribeOptions): Promise<TranscribeResult> {
|
|
return runTranscribe(options);
|
|
}
|