ClassOctraAnnotation<S, T>
Constructors
Accessors
idCounters
- get idCounters(): {
item: number;
level: number;
link: number;
} Returns {
item: number;
level: number;
link: number;
}
item: number
level: number
link: number
selectedLevelIndex
- get selectedLevelIndex(): undefined | number
Returns undefined | number
Methods
addLink
- addLink(fromID, toID): void
Parameters
- fromID: number
- toID: number
Returns void
changeCurrentSegmentBySamplePosition
changeLevelNameByIndex
- changeLevelNameByIndex(index, name): OctraAnnotation<S, T>
Parameters
- index: number
- name: string
changeLinkById
- changeLinkById(id, oLink): void
Returns void
changeLinkByIndex
- changeLinkByIndex(index, oLink): void
Parameters
- index: number
- oLink: OLink
Returns void
clearAllItemsFromCurrentLevel
getCurrentSegmentIndexBySamplePosition
- getCurrentSegmentIndexBySamplePosition(samples): number
Returns number
removeItemById
- removeItemById(id, silenceCode?, mergeTranscripts?, changeTranscript?): OctraAnnotation<S, T>
Parameters
- id: number
Optional
silenceCode: stringOptional
mergeTranscripts: booleanOptional
changeTranscript: ((transcript: string) => string)- (transcript): string
Returns string
removeItemByIndex
- removeItemByIndex(index, silenceValue?, mergeTranscripts?, changeTranscript?): OctraAnnotation<S, T>
Parameters
- index: number
Optional
silenceValue: stringOptional
mergeTranscripts: booleanOptional
changeTranscript: ((transcript: string) => string)- (transcript): string
Returns string
serialize
- serialize(mediaFileName, sampleRate, lastSegmentTime): OAnnotJSON
Parameters
- mediaFileName: string
- sampleRate: number
- lastSegmentTime: SampleUnit
updateIDCounters
- updateIDCounters(): void
Returns void