interview-widget 3.2.7 → 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.
- package/dist/services/stt/stt-service.d.ts +1 -0
- package/dist/utils/audio-storage.d.ts +24 -0
- package/dist/widget.es.js +1844 -1807
- package/dist/widget.umd.js +6 -6
- package/package.json +1 -1
|
@@ -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>;
|