Audio

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
using var client = new GroqClient(apiKey);
var url = "https://speech.zone/simple4all/wp-content/uploads/2012/10/nina_01_071.wav";
string tempFilePath = await DownloadFileToTempAsync(url);

var request = new CreateTranscriptionRequest { 
    Filename = "sample", 
    File = File.ReadAllBytes(tempFilePath),
    Model = CreateTranscriptionRequestModel.WhisperLargeV3,
    Language = "en",    
};
var response = await client.Audio.CreateTranscriptionAsync(request);
Assert.IsNotNull(response);
Console.WriteLine(response);