-
Notifications
You must be signed in to change notification settings - Fork 422
Expand file tree
/
Copy pathAudioResult.cs
More file actions
40 lines (37 loc) · 1.12 KB
/
AudioResult.cs
File metadata and controls
40 lines (37 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using System.Text;
namespace OpenAI_API.Audio
{
/// <summary>
/// Represents a verbose_json output from the OpenAI Transcribe or Translate endpoints.
/// </summary>
public class AudioResultVerbose : ApiResultBase
{
public double duration { get; set; }
public string language { get; set; }
public List<Segment> segments { get; set; }
public List<Word> words { get; set; }
public string task { get; set; }
public string text { get; set; }
public class Word {
public double end { get; set; }
public double start { get; set; }
public string word { get; set; }
}
public class Segment
{
public double avg_logprob { get; set; }
public double compression_ratio { get; set; }
public double end { get; set; }
public int id { get; set; }
public double no_speech_prob { get; set; }
public int seek { get; set; }
public double start { get; set; }
public double temperature { get; set; }
public string text { get; set; }
public List<int> tokens { get; set; }
}
}
}