Hierarchy

  • BaseService
    • FileService

Constructors

Methods

Constructors

Methods

  • Parameters

    • input: string
    • Optionalinit: RequestInit

    Returns Promise<Response>

  • Type Parameters

    • T

    Parameters

    • input: string
    • Optionalinit: RequestInit

    Returns Promise<T>

  • Upload a local file to AssemblyAI.

    Parameters

    • input: FileUploadParams

      The local file path to upload, or a stream or buffer of the file to upload.

    Returns Promise<string>

    A promise that resolves to the uploaded file URL.