Can someone help me please? I am trying to run this code for open ai whisper transcription but the issue is that expo react native doesn’t have the fs.createReadStream() function.
const transcribedText = await openai.audio.transcriptions.create({
model: "whisper-1", // The model to use for transcription.
file: fs.createReadStream(audioURI), // The audio file to transcribe.
response_format: 'string', // The format of the transcription.
temperature: 1, // Temperature
language: 'en' // Language
})
Is there an equivalent function I could use in expo react native instead?