Octra libraries - v2.0.0
    Preparing search index...

    Class ConverterAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _applications: { application: SupportedApplication; recommended?: boolean }[] = []
    _conversion: { export: boolean; import: boolean } = ...
    _encoding: string = ''
    _extensions: string[] = []
    _multitiers: boolean = true
    _notice: string = ''
    defaultImportOptions: any
    options: any

    Accessors

    • get applications(): { application: SupportedApplication; recommended?: boolean }[]

      Returns { application: SupportedApplication; recommended?: boolean }[]

    • get conversion(): { export: boolean; import: boolean }

      Returns { export: boolean; import: boolean }

    Methods

    • exports AnnotJSON to another annotation format considering an audio file and a level number (optional).

      Parameters

      • annotation: OAnnotJSON

        the AnnotJSON

      • audiofile: OAudiofile

        information about the audio file

      • Optionallevelnum: number

        the level number for export returns resulted file or error.

      Returns ExportResult

    • converts an file to AnnotJSON considering the audio file. The audio file must be the one used for this transcript file.

      Parameters

      • file: IFile

        the transcript file

      • audiofile: OAudiofile

        information about the audio file. returns object with an annotjson or an error.

      • Optionaloptions: any

      Returns ImportResult