openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.2.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Custom/Audio/AudioTranscription.cs

24lines · modecode

1using System;
2using System.Collections.Generic;
3using System.Diagnostics.CodeAnalysis;
4
5namespace OpenAI.Audio;
6
7[CodeGenType("DotNetCombinedJsonTranscriptionResponse")]
8public partial class AudioTranscription
9{
10 // CUSTOM: Made private. This property does not add value in the context of a strongly-typed class.
11 private string Task { get; } = "transcribe";
12
13 // CUSTOM: Made nullable because this is an optional property.
14 /// <summary> The duration of the input audio. </summary>
15 public TimeSpan? Duration { get; }
16
17 // CUSTOM:
18 // - Added Experimental attribute.
19 // - Reused common logprob type.
20 // - Made readonly.
21 [Experimental("OPENAI001")]
22 [CodeGenMember("Logprobs")]
23 public IReadOnlyList<AudioTokenLogProbabilityDetails> TranscriptionTokenLogProbabilities { get; }
24}