med-scribe-alliance-ts-sdk 2.0.34 → 2.0.35
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/README.md +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -291,7 +291,7 @@ if (!session.success) return;
|
|
|
291
291
|
// 2. Upload the file to storage using the session's upload_url
|
|
292
292
|
const upload = await client.uploadAudioFile(
|
|
293
293
|
myAudioFile,
|
|
294
|
-
'
|
|
294
|
+
'1.mp3', // storage object name
|
|
295
295
|
session.data.upload_url
|
|
296
296
|
);
|
|
297
297
|
if (!upload.success) {
|
package/dist/index.d.ts
CHANGED
|
@@ -799,9 +799,8 @@ export declare class ScribeClient {
|
|
|
799
799
|
/**
|
|
800
800
|
* Upload a single pre-recorded audio file to storage.
|
|
801
801
|
* @param file - The audio file/blob to upload.
|
|
802
|
+
* @param fileName - Storage object name, e.g. "1.mp3".
|
|
802
803
|
* @param upload - The `upload_url` payload from the create-session response.
|
|
803
|
-
* @param options.fileName - Storage object name. Defaults to the File's name,
|
|
804
|
-
* else `audio_0.<ext>` derived from the MIME type.
|
|
805
804
|
*/
|
|
806
805
|
uploadAudioFile(file: Blob, fileName: string, upload: SessionUploadInfo): Promise<SDKResult<UploadAudioFileResult>>;
|
|
807
806
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1121,7 +1121,7 @@ var pe = {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
1123
|
getNextFileName() {
|
|
1124
|
-
return
|
|
1124
|
+
return `${this.chunks.length + 1}.mp3`;
|
|
1125
1125
|
}
|
|
1126
1126
|
addChunk(e) {
|
|
1127
1127
|
return this.chunks.push(e), this.chunks.length - 1;
|
|
@@ -1603,7 +1603,7 @@ var Se = class {
|
|
|
1603
1603
|
totalFiles: 0
|
|
1604
1604
|
};
|
|
1605
1605
|
try {
|
|
1606
|
-
let e = await this.stopMediaRecorder(), t = `
|
|
1606
|
+
let e = await this.stopMediaRecorder(), t = `1.${this.getFileExtension()}`;
|
|
1607
1607
|
try {
|
|
1608
1608
|
return await Y(this.transport, {
|
|
1609
1609
|
fileName: t,
|