Skip to content

Commit

Permalink
activate ASR functions in all modes if asr is enabled in appconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Feb 12, 2020
1 parent fb02438 commit eabc595
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/editors/2D-editor/2D-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ export class TwoDEditorComponent extends OCTRAEditor implements OnInit, AfterVie
this.viewer.settings.stepWidthRatio = (this.viewer.settings.pixelPerSec / this.audiomanager.ressource.info.samplerate);
this.viewer.settings.showTimePerLine = true;
this.viewer.settings.showTranscripts = true;
this.viewer.settings.asr.enabled = (this.appStorage.usemode === 'online' || this.appStorage.usemode === 'demo' || this.appStorage.usemode === 'local')
&& this.settingsService.isASREnabled;
this.viewer.settings.asr.enabled = this.settingsService.isASREnabled;
this.viewer.name = 'multiline viewer';

this.viewer.secondsPerLine = this.appStorage.secondsPerLine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<fa-icon icon="times" class="close" (click)="close();"></fa-icon>
</div>
<app-asr-options [audioChunk]="audiochunk" [enabled]="editor.rawText === ''"
*ngIf="(appStorage.usemode === 'demo' || appStorage.usemode === 'local')
&& settingsService.isASREnabled"></app-asr-options>
*ngIf="settingsService.isASREnabled"></app-asr-options>
<app-audio-navigation #audionav
(buttonclick)="onButtonClick($event)"
(volumechange)="onVolumeChange($event)"
Expand Down

0 comments on commit eabc595

Please sign in to comment.