@@ -13,24 +13,19 @@ import {
1313 OctraAnnotationSegment ,
1414 OctraAnnotationSegmentLevel ,
1515 OLabel ,
16- PraatTextgridConverter ,
16+ PraatTextgridConverter
1717} from '@octra/annotation' ;
1818import {
1919 ProjectDto ,
2020 TaskDto ,
2121 TaskInputOutputCreatorType ,
2222 TaskInputOutputDto ,
2323 TaskStatus ,
24- ToolConfigurationAssetDto ,
24+ ToolConfigurationAssetDto
2525} from '@octra/api-types' ;
2626import { SampleUnit } from '@octra/media' ;
2727import { OctraAPIService } from '@octra/ngx-octra-api' ;
28- import {
29- appendURLQueryParams ,
30- extractFileNameFromURL ,
31- hasProperty ,
32- SubscriptionManager ,
33- } from '@octra/utilities' ;
28+ import { appendURLQueryParams , extractFileNameFromURL , hasProperty , SubscriptionManager } from '@octra/utilities' ;
3429import {
3530 catchError ,
3631 exhaustMap ,
@@ -42,26 +37,24 @@ import {
4237 Subscription ,
4338 tap ,
4439 timer ,
45- withLatestFrom ,
40+ withLatestFrom
4641} from 'rxjs' ;
4742import { AppInfo } from '../../../../app.info' ;
4843import { ErrorModalComponent } from '../../../modals/error-modal/error-modal.component' ;
4944import { NgbModalWrapper } from '../../../modals/ng-modal-wrapper' ;
5045import { OctraModalService } from '../../../modals/octra-modal.service' ;
51- import { TranscriptionSendingModalComponent } from '../../../modals/transcription-sending-modal/transcription-sending-modal.component' ;
46+ import {
47+ TranscriptionSendingModalComponent
48+ } from '../../../modals/transcription-sending-modal/transcription-sending-modal.component' ;
5249import {
5350 createSampleProjectDto ,
5451 createSampleTask ,
5552 createSampleUser ,
5653 findCompatibleFileFromIO ,
5754 isValidAnnotation ,
58- StatisticElem ,
55+ StatisticElem
5956} from '../../../shared' ;
60- import {
61- AlertService ,
62- AudioService ,
63- UserInteractionsService ,
64- } from '../../../shared/service' ;
57+ import { AlertService , AudioService , UserInteractionsService } from '../../../shared/service' ;
6558import { AppStorageService } from '../../../shared/service/appstorage.service' ;
6659import { RoutingService } from '../../../shared/service/routing.service' ;
6760import { ApplicationActions } from '../../application/application.actions' ;
@@ -1129,34 +1122,10 @@ export class AnnotationEffects {
11291122 }
11301123 duration = lastSegment . time . unix - startPos ;
11311124 if ( ! isSilence ( lastSegment ) || duration < minSilenceLength ) {
1132- let lastSegmentText =
1133- lastSegment . getFirstLabelWithoutName ( 'Speaker' ) ?. value ;
1134- let segmentText =
1135- segment . getFirstLabelWithoutName ( 'Speaker' ) ?. value ;
1136-
1137- if ( isSilence ( lastSegment ) ) {
1138- lastSegmentText = '' ;
1139- }
1140-
1141- if ( ! isSilence ( segment ) ) {
1142- segment . changeFirstLabelWithoutName (
1143- 'Speaker' ,
1144- `${ lastSegmentText } ${ segmentText } ` ,
1145- ) ;
1146- wordCounter = countWords (
1147- `${ lastSegmentText } ${ segmentText } ` ,
1148- ) ;
1149- } else {
1150- segmentText = '' ;
1151- segment . changeFirstLabelWithoutName (
1152- 'Speaker' ,
1153- `${ lastSegmentText } ` ,
1154- ) ;
1155- }
11561125 transcript = transcript ! . removeItemByIndex (
11571126 i - 1 ,
11581127 '' ,
1159- false ,
1128+ true ,
11601129 ( transcript : string ) => {
11611130 return tidyUpAnnotation (
11621131 transcript ,
0 commit comments