openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.1.0-beta.2

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Audio/AudioTranscriptionFormat.cs

35lines · modecode

1using System;
2using System.ComponentModel;
3
4namespace OpenAI.Audio;
5
6/// <summary> The format of the transcription. </summary>
7[CodeGenModel("TranscriptionAudioResponseFormat")]
8public readonly partial struct AudioTranscriptionFormat
9{
10 // CUSTOM: Hide from browsing as this is equivalent to Simple
11 /// <summary> Plain text only. </summary>
12 [EditorBrowsable(EditorBrowsableState.Never)]
13 [CodeGenMember("Text")]
14 public static AudioTranscriptionFormat Text { get; } = new(TextValue);
15
16 // CUSTOM: Rename, reflecting convergence with Text
17 /// <summary> Plain text only. </summary>
18 [CodeGenMember("Json")]
19 public static AudioTranscriptionFormat Simple { get; } = new(SimpleValue);
20
21 // CUSTOM: Rename.
22 /// <summary> Plain text provided with additional metadata, such as duration and timestamps. </summary>
23 [CodeGenMember("VerboseJson")]
24 public static AudioTranscriptionFormat Verbose { get; } = new(VerboseValue);
25
26 // CUSTOM: Added custom doc comments.
27 /// <summary> Text formatted as SubRip (.srt) file. </summary>
28 [CodeGenMember("Srt")]
29 public static AudioTranscriptionFormat Srt { get; } = new(SrtValue);
30
31 // CUSTOM: Added custom doc comments.
32 /// <summary> Text formatted as a Web Video Text Tracks, a.k.a. WebVTT, (.vtt) file. </summary>
33 [CodeGenMember("Vtt")]
34 public static AudioTranscriptionFormat Vtt { get; } = new(VttValue);
35}