scribe-widget 1.0.12 → 1.0.13

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.
@@ -21197,13 +21197,11 @@ async function retryWrapper(i, e = {}) {
21197
21197
  }
21198
21198
  async function uploadFileWithFormData(i, e, s, c, h) {
21199
21199
  const $ = async () => {
21200
- const _ = new FormData();
21201
- _.append("file", s, e);
21202
- const j = await fetch(i, {
21200
+ const _ = i.endsWith("/") ? `${i}${e}` : `${i}/${e}`, j = await fetch(_, {
21203
21201
  method: "POST",
21204
- body: _,
21202
+ body: s,
21205
21203
  headers: {
21206
- // Note: Don't set Content-Type header - browser will set it with boundary for FormData
21204
+ "Content-Type": "audio/mp3",
21207
21205
  ...c || {}
21208
21206
  }
21209
21207
  });
@@ -35447,7 +35445,7 @@ class VadWebClient {
35447
35445
  async processAudioChunk({ audioFrames: e }) {
35448
35446
  if (!e || !this.audioFileManager || !this.audioBufferManager)
35449
35447
  return;
35450
- const c = `audio_${this.audioFileManager.audioChunks.length || 0}.${OUTPUT_FORMAT}`, h = this.audioFileManager.getRawSampleDetails(), $ = this.audioBufferManager.calculateChunkTimestamps(h.totalRawSamples);
35448
+ const c = `chunk_${(this.audioFileManager.audioChunks.length || 0) + 1}.${OUTPUT_FORMAT}`, h = this.audioFileManager.getRawSampleDetails(), $ = this.audioBufferManager.calculateChunkTimestamps(h.totalRawSamples);
35451
35449
  try {
35452
35450
  const _ = {
35453
35451
  fileName: c,