speechrecorderng 2.23.7 → 2.23.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/recorder_component.mjs +3 -0
- package/esm2020/lib/speechrecorder/session/audiorecorder.mjs +121 -54
- package/esm2020/lib/speechrecorderng.component.mjs +5 -3
- package/esm2020/lib/speechrecorderng.module.mjs +6 -5
- package/esm2020/lib/spr.module.version.mjs +2 -2
- package/esm2020/public-api.mjs +4 -2
- package/fesm2015/speechrecorderng.mjs +131 -60
- package/fesm2015/speechrecorderng.mjs.map +1 -1
- package/fesm2020/speechrecorderng.mjs +131 -60
- package/fesm2020/speechrecorderng.mjs.map +1 -1
- package/lib/recorder_component.d.ts +6 -0
- package/lib/speechrecorder/session/audiorecorder.d.ts +39 -12
- package/lib/speechrecorderng.component.d.ts +2 -1
- package/lib/speechrecorderng.module.d.ts +1 -1
- package/lib/spr.module.version.d.ts +1 -1
- package/package.json +10 -10
- package/public-api.d.ts +4 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AudioCaptureListener } from '../../audio/capture/capture';
|
|
2
2
|
import { AudioPlayer, AudioPlayerEvent } from '../../audio/playback/player';
|
|
3
3
|
import { RecordingFile } from '../recording';
|
|
4
|
-
import { ChangeDetectorRef, AfterViewInit, OnDestroy, Renderer2 } from "@angular/core";
|
|
4
|
+
import { ChangeDetectorRef, AfterViewInit, OnDestroy, Renderer2, OnInit, Injector } from "@angular/core";
|
|
5
5
|
import { SessionService } from "./session.service";
|
|
6
6
|
import { MatDialog } from "@angular/material/dialog";
|
|
7
7
|
import { SpeechRecorderUploader } from "../spruploader";
|
|
@@ -10,11 +10,13 @@ import { Session } from "./session";
|
|
|
10
10
|
import { Project } from "../project/project";
|
|
11
11
|
import { RecordingService } from "../recordings/recordings.service";
|
|
12
12
|
import { UploaderStatusChangeEvent } from "../../net/uploader";
|
|
13
|
-
import { ActivatedRoute } from "@angular/router";
|
|
13
|
+
import { ActivatedRoute, Router } from "@angular/router";
|
|
14
14
|
import { ProjectService } from "../project/project.service";
|
|
15
15
|
import { LevelBar } from "../../audio/ui/livelevel";
|
|
16
16
|
import { RecorderCombiPane } from "./recorder_combi_pane";
|
|
17
17
|
import { BasicRecorder } from "./basicrecorder";
|
|
18
|
+
import { ReadyStateProvider, RecorderComponent } from "../../recorder_component";
|
|
19
|
+
import { Mode } from "../../speechrecorderng.component";
|
|
18
20
|
import * as i0 from "@angular/core";
|
|
19
21
|
export declare const enum Status {
|
|
20
22
|
BLOCKED = 0,
|
|
@@ -29,18 +31,18 @@ export declare class Item {
|
|
|
29
31
|
recs: Array<RecordingFile> | null;
|
|
30
32
|
constructor(promptAsString: string, training: boolean);
|
|
31
33
|
}
|
|
32
|
-
export declare class AudioRecorder extends BasicRecorder implements AfterViewInit, OnDestroy, AudioCaptureListener {
|
|
34
|
+
export declare class AudioRecorder extends BasicRecorder implements OnInit, AfterViewInit, OnDestroy, AudioCaptureListener, ReadyStateProvider {
|
|
33
35
|
private changeDetectorRef;
|
|
34
|
-
private route;
|
|
35
36
|
private renderer;
|
|
37
|
+
private route;
|
|
36
38
|
dialog: MatDialog;
|
|
37
39
|
private projectService;
|
|
38
40
|
protected sessionService: SessionService;
|
|
39
41
|
private recFileService;
|
|
40
42
|
private uploader;
|
|
41
43
|
config?: SpeechRecorderConfig | undefined;
|
|
42
|
-
_project: Project | null;
|
|
43
|
-
projectName: string | null;
|
|
44
|
+
_project: Project | undefined | null;
|
|
45
|
+
projectName: string | undefined | null;
|
|
44
46
|
enableUploadRecordings: boolean;
|
|
45
47
|
enableDownloadRecordings: boolean;
|
|
46
48
|
status: Status;
|
|
@@ -57,19 +59,19 @@ export declare class AudioRecorder extends BasicRecorder implements AfterViewIni
|
|
|
57
59
|
private _promptIndex;
|
|
58
60
|
private _displayRecFile;
|
|
59
61
|
private displayRecFileVersion;
|
|
60
|
-
constructor(changeDetectorRef: ChangeDetectorRef,
|
|
62
|
+
constructor(changeDetectorRef: ChangeDetectorRef, renderer: Renderer2, route: ActivatedRoute, dialog: MatDialog, projectService: ProjectService, sessionService: SessionService, recFileService: RecordingService, uploader: SpeechRecorderUploader, config?: SpeechRecorderConfig | undefined);
|
|
61
63
|
ngAfterViewInit(): void;
|
|
64
|
+
ready(): boolean;
|
|
62
65
|
ngOnDestroy(): void;
|
|
63
|
-
|
|
66
|
+
ngOnInit(): void;
|
|
64
67
|
onKeyPress(ke: KeyboardEvent): void;
|
|
65
68
|
onKeyDown(ke: KeyboardEvent): void;
|
|
66
69
|
isTestSession(): boolean;
|
|
67
70
|
isDefaultAudioTestSession(): boolean;
|
|
68
71
|
isDefaultAudioTestSessionOverwriteingProjectRequirements(): boolean;
|
|
69
|
-
fetchSession(sessionId: string): void;
|
|
70
72
|
fetchRecordings(sess: Session): void;
|
|
71
|
-
set project(project: Project | null);
|
|
72
|
-
get project(): Project | null;
|
|
73
|
+
set project(project: Project | undefined | null);
|
|
74
|
+
get project(): Project | undefined | null;
|
|
73
75
|
selectRecordingFile(rf: RecordingFile): void;
|
|
74
76
|
uploadUpdate(ue: UploaderStatusChangeEvent): void;
|
|
75
77
|
set controlAudioPlayer(controlAudioPlayer: AudioPlayer);
|
|
@@ -105,5 +107,30 @@ export declare class AudioRecorder extends BasicRecorder implements AfterViewIni
|
|
|
105
107
|
private updateControlPlaybackPosition;
|
|
106
108
|
audioPlayerUpdate(e: AudioPlayerEvent): void;
|
|
107
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<AudioRecorder, never>;
|
|
108
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AudioRecorder, "app-audiorecorder", never, { "projectName": "projectName"; "dataSaved": "dataSaved"; }, {}, never, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AudioRecorder, "app-audiorecorder", never, { "_project": "_project"; "projectName": "projectName"; "dataSaved": "dataSaved"; }, {}, never, never>;
|
|
111
|
+
}
|
|
112
|
+
export declare class AudioRecorderComponent extends RecorderComponent implements OnInit, OnDestroy, AfterViewInit, ReadyStateProvider {
|
|
113
|
+
protected injector: Injector;
|
|
114
|
+
private route;
|
|
115
|
+
private router;
|
|
116
|
+
private changeDetectorRef;
|
|
117
|
+
private sessionService;
|
|
118
|
+
private projectService;
|
|
119
|
+
private recFilesService;
|
|
120
|
+
mode: Mode;
|
|
121
|
+
controlAudioPlayer: AudioPlayer;
|
|
122
|
+
audio: any;
|
|
123
|
+
_project: Project | undefined;
|
|
124
|
+
sessionId: string;
|
|
125
|
+
session: Session;
|
|
126
|
+
dataSaved: boolean;
|
|
127
|
+
ar: AudioRecorder;
|
|
128
|
+
constructor(injector: Injector, route: ActivatedRoute, router: Router, changeDetectorRef: ChangeDetectorRef, sessionService: SessionService, projectService: ProjectService, recFilesService: RecordingService);
|
|
129
|
+
ngOnInit(): void;
|
|
130
|
+
ngAfterViewInit(): void;
|
|
131
|
+
ngOnDestroy(): void;
|
|
132
|
+
fetchSession(sessionId: string): void;
|
|
133
|
+
ready(): boolean;
|
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AudioRecorderComponent, never>;
|
|
135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AudioRecorderComponent, "app-audiorecorder-comp", never, {}, {}, never, never>;
|
|
109
136
|
}
|
|
@@ -11,12 +11,13 @@ import { Session } from "./speechrecorder/session/session";
|
|
|
11
11
|
import { Project } from "./speechrecorder/project/project";
|
|
12
12
|
import { ProjectService } from "./speechrecorder/project/project.service";
|
|
13
13
|
import { RecordingService } from "./speechrecorder/recordings/recordings.service";
|
|
14
|
+
import { RecorderComponent } from "./recorder_component";
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
export declare enum Mode {
|
|
16
17
|
SINGLE_SESSION = 0,
|
|
17
18
|
DEMO = 1
|
|
18
19
|
}
|
|
19
|
-
export declare class SpeechrecorderngComponent implements OnInit, AfterViewInit, AudioPlayerListener {
|
|
20
|
+
export declare class SpeechrecorderngComponent extends RecorderComponent implements OnInit, AfterViewInit, AudioPlayerListener {
|
|
20
21
|
private route;
|
|
21
22
|
private router;
|
|
22
23
|
private changeDetectorRef;
|
|
@@ -51,6 +51,6 @@ export declare const SPR_ROUTES: Routes;
|
|
|
51
51
|
export declare class SpeechrecorderngModule {
|
|
52
52
|
static forRoot(config: SpeechRecorderConfig): ModuleWithProviders<SpeechrecorderngModule>;
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpeechrecorderngModule, never>;
|
|
54
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SpeechrecorderngModule, [typeof i1.AudioSignal, typeof i2.Sonagram, typeof i3.ScrollPaneHorizontal, typeof i4.AudioClipUIContainer, typeof i5.AudioDisplayScrollPane, typeof i6.AudioDisplay, typeof i7.AudioDisplayPlayer, typeof i8.AudioDisplayControl, typeof i9.LevelBar, typeof i10.Progress, typeof i11.SimpleTrafficLight, typeof i12.Recinstructions, typeof i12.Prompter, typeof i12.PromptContainer, typeof i12.PromptingContainer, typeof i12.Prompting, typeof i13.StatusDisplay, typeof i13.ProgressDisplay, typeof i14.RecordingItemDisplay, typeof i14.RecordingItemControls, typeof i13.UploadStatus, typeof i13.TransportPanel, typeof i13.ReadyStateIndicator, typeof i13.ControlPanel, typeof i15.WarningBar, typeof i16.AudioRecorder, typeof i17.SessionManager, typeof i18.MessageDialog, typeof i19.SessionFinishedDialog, typeof i20.SpeechrecorderngComponent, typeof i21.RecordingFileViewComponent, typeof i22.RecordingFileUI, typeof i23.ScrollIntoViewDirective, typeof i24.RecordingFileNaviComponent, typeof i25.RecordingFileMetaComponent, typeof i26.RecordingList, typeof i27.RecorderCombiPane, typeof i16.AudioRecorder], [typeof i28.RouterModule, typeof i29.FlexLayoutModule, typeof i30.CommonModule, typeof i31.MatIconModule, typeof i32.MatButtonModule, typeof i33.MatDialogModule, typeof i34.MatProgressBarModule, typeof i35.MatProgressSpinnerModule, typeof i36.MatTooltipModule, typeof i37.HttpClientModule, typeof i38.MatCheckboxModule, typeof i39.MatCardModule, typeof i40.MatDividerModule, typeof i41.MatGridListModule, typeof i42.MatTableModule, typeof i43.MatInputModule, typeof i44.MatSelectModule, typeof i45.MatSnackBarModule], [typeof i18.MessageDialog, typeof i20.SpeechrecorderngComponent, typeof i3.ScrollPaneHorizontal, typeof i4.AudioClipUIContainer, typeof i5.AudioDisplayScrollPane, typeof i6.AudioDisplay, typeof i7.AudioDisplayPlayer, typeof i8.AudioDisplayControl, typeof i9.LevelBar, typeof i16.AudioRecorder]>;
|
|
54
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SpeechrecorderngModule, [typeof i1.AudioSignal, typeof i2.Sonagram, typeof i3.ScrollPaneHorizontal, typeof i4.AudioClipUIContainer, typeof i5.AudioDisplayScrollPane, typeof i6.AudioDisplay, typeof i7.AudioDisplayPlayer, typeof i8.AudioDisplayControl, typeof i9.LevelBar, typeof i10.Progress, typeof i11.SimpleTrafficLight, typeof i12.Recinstructions, typeof i12.Prompter, typeof i12.PromptContainer, typeof i12.PromptingContainer, typeof i12.Prompting, typeof i13.StatusDisplay, typeof i13.ProgressDisplay, typeof i14.RecordingItemDisplay, typeof i14.RecordingItemControls, typeof i13.UploadStatus, typeof i13.TransportPanel, typeof i13.ReadyStateIndicator, typeof i13.ControlPanel, typeof i15.WarningBar, typeof i16.AudioRecorder, typeof i17.SessionManager, typeof i18.MessageDialog, typeof i19.SessionFinishedDialog, typeof i20.SpeechrecorderngComponent, typeof i16.AudioRecorderComponent, typeof i21.RecordingFileViewComponent, typeof i22.RecordingFileUI, typeof i23.ScrollIntoViewDirective, typeof i24.RecordingFileNaviComponent, typeof i25.RecordingFileMetaComponent, typeof i26.RecordingList, typeof i27.RecorderCombiPane, typeof i16.AudioRecorder], [typeof i28.RouterModule, typeof i29.FlexLayoutModule, typeof i30.CommonModule, typeof i31.MatIconModule, typeof i32.MatButtonModule, typeof i33.MatDialogModule, typeof i34.MatProgressBarModule, typeof i35.MatProgressSpinnerModule, typeof i36.MatTooltipModule, typeof i37.HttpClientModule, typeof i38.MatCheckboxModule, typeof i39.MatCardModule, typeof i40.MatDividerModule, typeof i41.MatGridListModule, typeof i42.MatTableModule, typeof i43.MatInputModule, typeof i44.MatSelectModule, typeof i45.MatSnackBarModule], [typeof i18.MessageDialog, typeof i20.SpeechrecorderngComponent, typeof i3.ScrollPaneHorizontal, typeof i4.AudioClipUIContainer, typeof i5.AudioDisplayScrollPane, typeof i6.AudioDisplay, typeof i7.AudioDisplayPlayer, typeof i8.AudioDisplayControl, typeof i9.LevelBar, typeof i16.AudioRecorder]>;
|
|
55
55
|
static ɵinj: i0.ɵɵInjectorDeclaration<SpeechrecorderngModule>;
|
|
56
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.23.
|
|
1
|
+
export declare const VERSION = "2.23.8";
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "speechrecorderng",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.8",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/animations": "~13.3.
|
|
5
|
+
"@angular/animations": "~13.3.2",
|
|
6
6
|
"@angular/cdk": "~13.3.2",
|
|
7
|
-
"@angular/common": "~13.3.
|
|
8
|
-
"@angular/compiler": "~13.3.
|
|
9
|
-
"@angular/core": "~13.3.
|
|
10
|
-
"@angular/forms": "~13.3.
|
|
7
|
+
"@angular/common": "~13.3.2",
|
|
8
|
+
"@angular/compiler": "~13.3.2",
|
|
9
|
+
"@angular/core": "~13.3.2",
|
|
10
|
+
"@angular/forms": "~13.3.2",
|
|
11
11
|
"@angular/material": "~13.3.2",
|
|
12
|
-
"@angular/platform-browser": "~13.3.
|
|
13
|
-
"@angular/platform-browser-dynamic": "~13.3.
|
|
14
|
-
"@angular/router": "~13.3.
|
|
15
|
-
"@angular/service-worker": "~13.3.
|
|
12
|
+
"@angular/platform-browser": "~13.3.2",
|
|
13
|
+
"@angular/platform-browser-dynamic": "~13.3.2",
|
|
14
|
+
"@angular/router": "~13.3.2",
|
|
15
|
+
"@angular/service-worker": "~13.3.2",
|
|
16
16
|
"@angular/flex-layout": "~13.0.0-beta.38",
|
|
17
17
|
"rxjs": "~7.5.5",
|
|
18
18
|
"zone.js": "~0.11.5"
|
package/public-api.d.ts
CHANGED
|
@@ -4,9 +4,12 @@ export { SPEECHRECORDER_CONFIG } from './lib/spr.config';
|
|
|
4
4
|
export { UUID } from "./lib/utils/utils";
|
|
5
5
|
export { Action } from "./lib/action/action";
|
|
6
6
|
export { MessageDialog } from "./lib/ui/message_dialog";
|
|
7
|
+
export { ReadyStateProvider } from "./lib/recorder_component";
|
|
7
8
|
export { AudioClip, Selection } from './lib/audio/persistor';
|
|
9
|
+
export { WavWriter } from './lib/audio/impl/wavwriter';
|
|
10
|
+
export { RecorderComponent } from './lib/recorder_component';
|
|
8
11
|
export { AudioPlayer, AudioPlayerListener, AudioPlayerEvent, EventType } from './lib/audio/playback/player';
|
|
9
|
-
export { AudioRecorder } from './lib/speechrecorder/session/audiorecorder';
|
|
12
|
+
export { AudioRecorder, AudioRecorderComponent } from './lib/speechrecorder/session/audiorecorder';
|
|
10
13
|
export { AudioDisplay } from './lib/audio/audio_display';
|
|
11
14
|
export { AudioDisplayPlayer } from './lib/audio/audio_player';
|
|
12
15
|
export { AudioClipUIContainer } from './lib/audio/ui/container';
|