-
Notifications
You must be signed in to change notification settings - Fork 422
Expand file tree
/
Copy pathAudioFile.cs
More file actions
30 lines (26 loc) · 775 Bytes
/
AudioFile.cs
File metadata and controls
30 lines (26 loc) · 775 Bytes
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
using System.IO;
namespace OpenAI_API.Audio
{
/// <summary>
/// Audio file object for transcript and translate requests.
/// </summary>
public class AudioFile
{
/// <summary>
/// Stream of the file.
/// </summary>
public Stream File { get; set; }
/// <summary>
/// Content length of the file
/// </summary>
public long ContentLength { get { return File.Length; } }
/// <summary>
/// Type of audio file.Must be mp3, mp4, mpeg, mpga, m4a, wav, or webm.
/// </summary>
public string ContentType { get; set; }
/// <summary>
/// Full name of the file. such as test.mp3
/// </summary>
public string Name { get; set; }
}
}