Class VoiceChangeRequest
Inheritance
StreamingGenerativeRequest<VoiceChangeRequest, AudioPrompt, IAudioAsset, Delta<IAudioChunk>, IAudioRequestOptions>
VoiceChangeRequest
Inherited Members
SpeechGenerationRequestBase<VoiceChangeRequest, AudioPrompt, IAudioRequestOptions>.ValidateRequest()
GenerativeRequest<VoiceChangeRequest, AudioPrompt, IAudioAsset, IAudioRequestOptions>.MeasureLatency
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public class VoiceChangeRequest : SpeechGenerationRequestBase<VoiceChangeRequest, AudioPrompt, IAudioRequestOptions>, IGenerativeRequest, IStreamingGenerativeRequest<Delta<IAudioChunk>, IAudioAsset>
Constructors
| Edit this page View SourceVoiceChangeRequest(AudioPrompt)
Declaration
public VoiceChangeRequest(AudioPrompt prompt)
Parameters
| Type | Name | Description |
|---|---|---|
| AudioPrompt | prompt |
Properties
| Edit this page View SourceFileNameKey
Declaration
protected override string FileNameKey { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceModelType
Declaration
public override ModelType ModelType { get; }
Property Value
| Type | Description |
|---|---|
| ModelType |
Overrides
| Edit this page View SourceRemoveBackgroundNoise
Declaration
public bool RemoveBackgroundNoise { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RequestType
The endpoint type for this
Declaration
public override RequestType RequestType { get; }
Property Value
| Type | Description |
|---|---|
| RequestType |
Overrides
Methods
| Edit this page View SourceExecuteAsyncInternal()
Executes the actual task logic. Must be implemented in derived classes.
Declaration
protected override UniTask<Generated<IAudioAsset>> ExecuteAsyncInternal()
Returns
| Type | Description |
|---|---|
| UniTask<Generated<IAudioAsset>> |
Overrides
| Edit this page View SourceSetRemoveBackgroundNoise(bool)
Sets the background noise removal option for the voice change.
Declaration
public VoiceChangeRequest SetRemoveBackgroundNoise(bool removeBackgroundNoise)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | removeBackgroundNoise |
Returns
| Type | Description |
|---|---|
| VoiceChangeRequest |
StreamAsyncInternal()
Declaration
protected override IGenerativeStream<Delta<IAudioChunk>, IAudioAsset> StreamAsyncInternal()
Returns
| Type | Description |
|---|---|
| IGenerativeStream<Delta<IAudioChunk>, IAudioAsset> |