Class GENAudioGenerationTask<TSelf, TOptions, TPrompt>
public abstract class GENAudioGenerationTask<TSelf, TOptions, TPrompt> : GENTask<TSelf, TOptions, TPrompt, GeneratedAudio>, IGENTask where TSelf : GENAudioGenerationTask<TSelf, TOptions, TPrompt> where TOptions : IGENAudioOptions
Type Parameters
TSelfTOptionsTPrompt
- Inheritance
-
objectTaskBase<TSelf, GeneratedAudio>GENTask<TSelf, TOptions, TPrompt, GeneratedAudio>GENAudioGenerationTask<TSelf, TOptions, TPrompt>
- Implements
- Derived
- Inherited Members
Constructors
GENAudioGenerationTask(TPrompt)
protected GENAudioGenerationTask(TPrompt prompt)
Parameters
promptTPrompt
Properties
ResponseMimeType
public override MIMEType ResponseMimeType { get; set; }
Property Value
- MIMEType
Seed
public uint? Seed { get; set; }
Property Value
- uint?
Methods
SetEncoding(AudioEncoding)
public GENSpeechTask SetEncoding(AudioEncoding encoding)
Parameters
encodingAudioEncoding
Returns
SetSeed(uint)
Sets a fixed seed to make generation deterministic and repeatable.
public TSelf SetSeed(uint seed)
Parameters
seeduint
Returns
- TSelf