Trying whisper API, getting ECONNRESET

Hi.
I’m just testing out Whisper API from NodeJS, but I’m getting this error:

cause: FetchError: request to https://api.openai.com/v1/audio/transcriptions failed, reason: read ECONNRESET

This is the call I’m doing:

        const apiResponse = await openai.audio.transcriptions.create({
            file: fs.createReadStream(path.join(process.env.AUDIO_FILE_PATH, audioFilename)),
            model: "whisper-1",
            response_format: "verbose_json",
        });

Is it just a Xmas present for me, or I’m doing something wrong?

thanks

1 Like