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

    Module @octra/annotation - v1.3.3

    @octra/annotation npm

    This library offers all annotation related classes and functions used by Octra. It uses AnnotJSON file format as base model. Here you can also find all Annotation converters used by Octra.

    npm install --save @octra/annotation
    

    You have two options to install this package und use it as UMD:

    a) Install via NPM and reference local files (no internet connection needed om production).

    <script type="application/javascript" src="node_modules/@octra/annotation/index.umd.js"></script>
    

    b) Reference remote file (internet connection needed on production).

    <script type="application/javascript" src="https://unpkg.com/@octra/annotation/index.umd.js"></script>
    

    See full example here

    Import the classes and functions from @octra/annotation. For example

    import { Level } from '@octra/annotation';

    const annotation = new OctraAnnotation();
    const level = annotation.addLevel(new OctraAnnotation.createSegmentLevel('OCTRA_1'));
    annotation.addItemToCurrentLevel(new SampleUnit(123456, 22050), [new OLabel('OCTRA_1', 'hello world')]);

    All functions and classes are available via global scope OctraAnnotation. For example:

    /*
    make sure that you have injected the umd bundle as described before.
    */
    const annotation = new OctraAnnotation.OctraAnnotation();
    const level = annotation.addLevel(new OctraAnnotation.OctraAnnotation.createSegmentLevel('OCTRA_1'));
    annotation.addItemToCurrentLevel(new OctraAnnotation.SampleUnit(123456, 22050), [new OctraAnnotation.OLabel('OCTRA_1', 'hello world')]);

    You can find more information about classes and functions of @octra/annotation here.

    Go to changelog

    Enumerations

    AnnotationLevelType
    ASRQueueItemType

    Classes

    AnnotJSONConverter
    BundleJSONConverter
    Converter
    CTMConverter
    ELANConverter
    OAnnotJSON
    OctraAnnotation
    OctraAnnotationEvent
    OctraAnnotationEventLevel
    OctraAnnotationItemLevel
    OctraAnnotationLevel
    OctraAnnotationSegment
    OctraAnnotationSegmentLevel
    OEvent
    OEventLevel
    OItem
    OItemLevel
    OLabel
    OLevel
    OSegment
    OSegmentLevel
    PartiturConverter
    PraatTableConverter
    PraatTextgridConverter
    SRTConverter
    SRTConverterImportOptions
    TextConverter
    WebVTTConverter
    WhisperJSON
    WhisperJSONConverter
    WhisperJSONSegment

    Interfaces

    ASRContext
    Bundle
    ELAN30Object
    ExportResult
    IAnnotJSON
    IAudioFile
    IEvent
    IEventLevel
    IFile
    IItem
    IItemLevel
    ILabel
    ILevel
    ImportResult
    ISegment
    ISegmentLevel
    SegmentWithContext
    WhisperJSONWord

    Type Aliases

    AnnotationAnySegment
    IAnyLevel
    OAnyLevel
    OctraAnnotationAnyLevel
    OctraAnnotationFormatType

    Variables

    AllOctraConverters

    Functions

    addSegment
    betweenWhichSegment
    cleanup
    combineSegments
    contains
    convertFromSupportedConverters
    convertOSegmentsToSegments
    convertSegmentsToOSegments
    getSegmentBySamplePosition
    getSegmentsOfRange
    getStartTimeBySegmentID
    removeBySamples
    removeSegmentByIndex
    sort