diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bac8031e..f77fa9f29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ Docs: https://docs.clawd.bot - Messages: refresh live directory cache results when resolving targets. - Messages: mirror delivered outbound text/media into session transcripts. (#1031) — thanks @TSavo. - Messages: avoid redundant sender envelopes for iMessage + Signal group chats. (#1080) — thanks @tyler6204. +- Media: normalize Deepgram audio upload bytes for fetch compatibility. - Cron: isolated cron jobs now start a fresh session id on every run to prevent context buildup. - Docs: add `/help` hub, Node/npm PATH guide, and expand directory CLI docs. - Config: support env var substitution in config values. (#1044) — thanks @sebslight. diff --git a/src/media-understanding/providers/deepgram/audio.ts b/src/media-understanding/providers/deepgram/audio.ts index a35d49e7e..1bc9bc782 100644 --- a/src/media-understanding/providers/deepgram/audio.ts +++ b/src/media-understanding/providers/deepgram/audio.ts @@ -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,