I run this code in a Node.js 20 environment, hosted as Google Cloud Function. However, maybe you should check out on which runtime environment your PA app is built on. Since OpenAI lib seems to expect a ReadableStream object, you could also try to replace file: audio_file by file: audio_file.body (haven’t tested it yet).