Hierarchy

  • BaseService
    • FileService

Constructors

Methods

Constructors

  • Create a new service.

    Parameters

    Returns FileService

Methods

  • 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.

  • Parameters

    • input: string
    • Optionalinit: RequestInit

    Returns Promise<Response>

  • Type Parameters

    • T

    Parameters

    • input: string
    • Optionalinit: RequestInit

    Returns Promise<T>