import type { PredictorService, PredictionService } from "../../services"; import type { Acceleration } from "../../types"; import { type Audio } from "../types"; import type { Transcription } from "./types"; export interface TranscriptionCreateParams { /** * Audio file to transcribe. * Pass encoded audio (`Blob`, `ArrayBuffer`, or `Uint8Array`) in `flac`, `mp3`, `m4a`, `ogg`, or `wav` format, * or an `Audio` buffer with LPCM samples. */ file: Blob | ArrayBuffer | Uint8Array | Audio; /** * Audio transcription model tag. */ model: string; /** * The language of the input audio. */ language?: string; /** * Text to guide the model's style or continue a previous audio segment. */ prompt?: string; /** * The sampling temperature, between 0 and 1. */ temperature?: number; /** * Prediction acceleration. */ acceleration?: Acceleration; } export declare class TranscriptionService { private readonly predictors; private readonly predictions; private readonly cache; constructor(predictors: PredictorService, predictions: PredictionService); /** * Transcribe audio into the input language. */ create({ model: tag, file, language, prompt, temperature, acceleration }: TranscriptionCreateParams): Promise; private createDelegate; }