forked from 0x2620/oxjs
add transcribe option
This commit is contained in:
parent
03eb3d4a56
commit
6341e64a64
1 changed files with 8 additions and 1 deletions
|
|
@ -52,6 +52,7 @@ Ox.AnnotationPanel = function(options, self) {
|
||||||
editable: false,
|
editable: false,
|
||||||
enableExport: false,
|
enableExport: false,
|
||||||
enableImport: false,
|
enableImport: false,
|
||||||
|
enableTranscribe: false,
|
||||||
highlight: '',
|
highlight: '',
|
||||||
highlightAnnotations: 'none',
|
highlightAnnotations: 'none',
|
||||||
highlightLayer: '*',
|
highlightLayer: '*',
|
||||||
|
|
@ -304,7 +305,11 @@ Ox.AnnotationPanel = function(options, self) {
|
||||||
{},
|
{},
|
||||||
{id: 'import', title: Ox._('Import Annotations...'), disabled: !self.options.enableImport},
|
{id: 'import', title: Ox._('Import Annotations...'), disabled: !self.options.enableImport},
|
||||||
{id: 'export', title: Ox._('Export Annotations...'), disabled: !self.options.enableExport},
|
{id: 'export', title: Ox._('Export Annotations...'), disabled: !self.options.enableExport},
|
||||||
]
|
].concat(
|
||||||
|
self.options.enableTranscribe ? [
|
||||||
|
{id: 'transcribe', title: Ox._('Transcribe Audio...')},
|
||||||
|
]: []
|
||||||
|
)
|
||||||
),
|
),
|
||||||
maxWidth: 256,
|
maxWidth: 256,
|
||||||
style: 'square',
|
style: 'square',
|
||||||
|
|
@ -352,6 +357,8 @@ Ox.AnnotationPanel = function(options, self) {
|
||||||
// ...
|
// ...
|
||||||
} else if (data.id == 'showentityinfo') {
|
} else if (data.id == 'showentityinfo') {
|
||||||
that.triggerEvent('showentityinfo', annotation.entity);
|
that.triggerEvent('showentityinfo', annotation.entity);
|
||||||
|
} else if (data.id == 'transcribe') {
|
||||||
|
that.triggerEvent('transcribe');
|
||||||
} else if (data.id == 'undo') {
|
} else if (data.id == 'undo') {
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue