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