openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI/src/Custom/Audio/AudioTranscription.cs
22lines · modecode
| 1 | using Microsoft.TypeSpec.Generator.Customizations; |
| 2 | using System; |
| 3 | using System.Collections.Generic; |
| 4 | using System.Diagnostics.CodeAnalysis; |
| 5 | |
| 6 | namespace OpenAI.Audio; |
| 7 | |
| 8 | [CodeGenType("DotNetCombinedJsonTranscriptionResponse")] |
| 9 | public partial class AudioTranscription |
| 10 | { |
| 11 | // CUSTOM: Made nullable because this is an optional property. |
| 12 | /// <summary> The duration of the input audio. </summary> |
| 13 | public TimeSpan? Duration { get; } |
| 14 | |
| 15 | // CUSTOM: |
| 16 | // - Added Experimental attribute. |
| 17 | // - Reused common logprob type. |
| 18 | // - Made readonly. |
| 19 | [Experimental("OPENAI001")] |
| 20 | [CodeGenMember("Logprobs")] |
| 21 | public IReadOnlyList<AudioTokenLogProbabilityDetails> TranscriptionTokenLogProbabilities { get; } |
| 22 | } |