Any clue what might be going wrong when i try to use the openai.createTranscription function?
Whenever I use the createTranscription function i get a "TypeError: localVarFormParams.getHeaders is not a function".
I'm in a react native project, using expo-av to record, so the code to trigger whisper is simply:
await recording.stopAndUnloadAsync()
const recordingURI = recording.getURI()
const response = await fetch(recordingURI)
openai.createTranslation(response.body, 'whisper-1').then((response) => {
console.log(response)
console.log(response.data.choices[0].text)
});
What am I doing wrong here?