Class InputAudio
- Namespace
- OpenAI
- Assembly
- OpenAI-DotNet.dll
public sealed class InputAudio
- Inheritance
-
InputAudio
- Inherited Members
Constructors
InputAudio()
public InputAudio()
InputAudio(byte[], InputAudioFormat)
public InputAudio(byte[] data, InputAudioFormat format)
Parameters
databyte[]formatInputAudioFormat
InputAudio(ReadOnlyMemory<byte>, InputAudioFormat)
public InputAudio(ReadOnlyMemory<byte> memory, InputAudioFormat format)
Parameters
memoryReadOnlyMemory<byte>formatInputAudioFormat
InputAudio(ReadOnlySpan<byte>, InputAudioFormat)
public InputAudio(ReadOnlySpan<byte> span, InputAudioFormat format)
Parameters
spanReadOnlySpan<byte>formatInputAudioFormat
InputAudio(string, InputAudioFormat)
public InputAudio(string data, InputAudioFormat format)
Parameters
datastringformatInputAudioFormat
Properties
Data
[JsonInclude]
[JsonPropertyName("data")]
public string Data { get; }
Property Value
Format
[JsonInclude]
[JsonPropertyName("format")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public InputAudioFormat Format { get; }
Property Value
Methods
AppendFrom(InputAudio)
public void AppendFrom(InputAudio other)
Parameters
otherInputAudio
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.