SimpleTranslation

1
2
3
4
5
6
7
8
using var api = GetAuthenticatedClient();

OneOf<CreateTranslationResponseJson, CreateTranslationResponseVerboseJson> response = await api.Audio.CreateTranslationAsync(
    file: H.Resources.audio_french_wav.AsBytes(),
    filename: H.Resources.audio_french_wav.FileName,
    model: CreateTranslationRequestModel.Whisper1);

Console.WriteLine($"{response.Value1?.Text}");