fix: normalize deepgram audio upload bytes

This commit is contained in:
Peter Steinberger
2026-01-17 09:19:27 +00:00
parent bbb71c9198
commit 89f85ddeab
2 changed files with 3 additions and 1 deletions

View File

@@ -44,12 +44,13 @@ export async function transcribeDeepgramAudio(
headers.set("content-type", params.mime ?? "application/octet-stream");
}
const body = new Uint8Array(params.buffer);
const res = await fetchWithTimeout(
url.toString(),
{
method: "POST",
headers,
body: params.buffer,
body,
},
params.timeoutMs,
fetchFn,