
source_lang acts more as a suggestion than a rule. Not sure if this is a Cloudflare or a Whisper thing, but figured I'd ask. Relevant snippet: @hf/meta-llama/meta-llama-3-8b-instruct to intermittently return blank responses?atob() on it to convert the string to binaryBuffer.from(base64Image, 'base64')
Uint8Array.from(binaryString, (m) => m.codePointAt(0));source_langconst inputs = {
audio: [...new Uint8Array(arrayBuffer)],
source_lang: 'tr',
target_lang: 'tr'
};
const transcriptionResponse = await env.AI.run('@cf/openai/whisper', inputs);