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