speechrecorderng 2.23.9 → 2.24.0

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.
@@ -35,6 +35,7 @@ export interface AutoGainControlConfig {
35
35
  }
36
36
  export interface Project {
37
37
  name: string;
38
+ recordingDeviceWakeLock?: boolean;
38
39
  audioFormat?: AudioFormat;
39
40
  mediaCaptureFormat?: MediaCaptureFormat;
40
41
  autoGainControlConfigs?: Array<AutoGainControlConfig>;
@@ -10,6 +10,7 @@ import { AudioPlayer } from "../../audio/playback/player";
10
10
  import { Subscription } from "rxjs";
11
11
  import { AudioClip } from "../../audio/persistor";
12
12
  import { Action } from "../../action/action";
13
+ import NoSleep from "nosleep.js";
13
14
  export declare const FORCE_REQUEST_AUDIO_PERMISSIONS = false;
14
15
  export declare const RECFILE_API_CTX = "recfile";
15
16
  export declare const MAX_RECORDING_TIME_MS: number;
@@ -24,6 +25,7 @@ export declare class BasicRecorder {
24
25
  readonly: boolean;
25
26
  processingRecording: boolean;
26
27
  ac: AudioCapture | null;
28
+ protected _wakeLock: boolean;
27
29
  protected _audioDevices: Array<AudioDevice> | null | undefined;
28
30
  protected _selectedDeviceId: string | undefined;
29
31
  protected selCaptureDeviceId: ConstrainDOMString | null;
@@ -44,7 +46,12 @@ export declare class BasicRecorder {
44
46
  protected audioFetchSubscription: Subscription | null;
45
47
  protected destroyed: boolean;
46
48
  protected navigationDisabled: boolean;
49
+ protected noSleep: NoSleep | null;
47
50
  constructor(dialog: MatDialog, sessionService: SessionService);
51
+ get wakeLock(): boolean;
52
+ set wakeLock(value: boolean);
53
+ enableWakeLockCond(): void;
54
+ disableWakeLockCond(): void;
48
55
  set audioDevices(audioDevices: Array<AudioDevice> | null | undefined);
49
56
  set autoGainControlConfigs(autoGainControlConfigs: Array<AutoGainControlConfig> | null | undefined);
50
57
  set channelCount(channelCount: number);
@@ -1 +1 @@
1
- export declare const VERSION = "2.23.9";
1
+ export declare const VERSION = "2.24.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speechrecorderng",
3
- "version": "2.23.9",
3
+ "version": "2.24.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "~13.3.2",
6
6
  "@angular/cdk": "~13.3.2",