I want to use whisper api.
The data will be from user microphone.
I don't want to upload the data to server, so just using client side only using react.
I have a problem how can I pass the mp3 audio.
I can't use fs.
I also tried to put blob to the first param but had no luck.
const resp = await openai.createTranscription(
fs.createReadStream("audio.mp3"),
"whisper-1"
);
Anyone know how to do this ?