Update openaiTranscriber to handle audio file metadata in transcription parameters
This commit is contained in:
@@ -54,7 +54,7 @@ func (o openaiTranscriber) Transcribe(ctx context.Context, wav []byte, opts Tran
|
||||
}
|
||||
|
||||
params := openai.AudioTranscriptionNewParams{
|
||||
File: bytes.NewReader(wav),
|
||||
File: openai.File(bytes.NewReader(wav), "audio.wav", "audio/wav"),
|
||||
Model: openai.AudioModel(o.model),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user