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.

16 lines (15 loc) 520 B
import { BaseServiceParams } from ".."; /** * Base class for services that communicate with the API. */ export declare abstract class BaseService { private params; private userAgent; /** * Create a new service. * @param params - The parameters to use for the service. */ constructor(params: BaseServiceParams); protected fetch(input: string, init?: RequestInit | undefined): Promise<Response>; protected fetchJson<T>(input: string, init?: RequestInit | undefined): Promise<T>; }