interview-widget 3.2.6 → 3.2.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.
@@ -42,6 +42,7 @@ declare class STTService {
42
42
  private autoStopTimeoutId;
43
43
  private disposed;
44
44
  private pendingStopPromise;
45
+ private isStarting;
45
46
  constructor(config?: STTConfig);
46
47
  /**
47
48
  * Update STT configuration
@@ -63,10 +64,6 @@ declare class STTService {
63
64
  startRecording(maxDuration?: number, events?: RecordingEvents): Promise<void>;
64
65
  /**
65
66
  * Stop recording and return the audio blob.
66
- *
67
- * NOTE: This method does NOT fire onStop — that is handled exclusively
68
- * by the MediaRecorder's "stop" event listener set in startRecording().
69
- * This prevents the double-fire issue.
70
67
  */
71
68
  stopRecording(): Promise<Blob>;
72
69
  /**
@@ -0,0 +1,24 @@
1
+ export interface AudioRecord {
2
+ id: string;
3
+ interviewId: string;
4
+ qnaId: string;
5
+ audioBlob: Blob;
6
+ mimeType: string;
7
+ savedAt: number;
8
+ }
9
+ /**
10
+ * Save an audio record to IndexedDB
11
+ */
12
+ export declare function saveAudio(record: AudioRecord): Promise<void>;
13
+ /**
14
+ * Retrieve a specific audio record by its ID
15
+ */
16
+ export declare function getAudio(id: string): Promise<AudioRecord | undefined>;
17
+ /**
18
+ * Get all audio records for a specific interview
19
+ */
20
+ export declare function getAllAudio(interviewId: string): Promise<AudioRecord[]>;
21
+ /**
22
+ * Delete a specific audio record by its ID
23
+ */
24
+ export declare function deleteAudio(id: string): Promise<void>;