Skip to content

Instantly share code, notes, and snippets.

@jdegger
jdegger / transcribe-bhv.ts
Created August 26, 2026 09:48
OpenAI gpt-transcribe example: Dutch WAV + BHV-Knop terms (no API keys)
/**
* Example: Dutch speech-to-text with OpenAI `gpt-transcribe`.
*
* export OPENAI_API_KEY=...
* npx tsx transcribe-bhv.ts ./clip.wav
*
* Do not hardcode API keys. Restricted project keys need audio transcription
* scope; `whisper-1` may be blocked even when `gpt-transcribe` works.
*/
import { readFile } from "node:fs/promises";
__d(function (g, r, i, a, m, e, d) {
var t = r(d[0]);
Object.defineProperty(e, "__esModule", {
value: !0
}), e.default = void 0;
var o = r(d[1]),
n = r(d[2]),
l = r(d[3]),
c = t(r(d[4])),
s = o.NativeModules.Gyroscope,