Class AudioOptions
Definition
- Assembly:
- Tizen.AIAvatar.dll
Provides the ability to audio
public class AudioOptions
- Inheritance
-
objectAudioOptions
Constructors
View SourceAudioOptions(int, AudioChannel, AudioSampleType, AudioStreamType)
Initializes a new instance of the AudioOptions class with the specified sample rate, channel, sampleType and streamType.
Declaration
public AudioOptions(int sampleRate, AudioChannel channel, AudioSampleType sampleType, AudioStreamType streamType)
Parameters
| Type | Name | Description |
|---|---|---|
| int | sampleRate | the audio sample rate (8000 ~ 192000Hz) |
| AudioChannel | channel | the audio channel type. |
| AudioSampleType | sampleType | the audio sample type. |
| AudioStreamType | streamType | the audio Stream type. |
Properties
View SourceChannel
The audio channel type
Declaration
public AudioChannel Channel { get; set; }
Property Value
| Type | Description |
|---|---|
| AudioChannel |
DuckingDuration
The audio ducking duration.
Declaration
public uint DuckingDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
DuckingRatio
The audio ducking ratio.
Declaration
public double DuckingRatio { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
DuckingTargetStreamType
The audio ducking target stream type.
Declaration
public AudioStreamType DuckingTargetStreamType { get; }
Property Value
| Type | Description |
|---|---|
| AudioStreamType |
SampleRate
The audio sample rate (8000 ~ 192000Hz)
Declaration
public int SampleRate { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SampleType
The audio sample type
Declaration
public AudioSampleType SampleType { get; set; }
Property Value
| Type | Description |
|---|---|
| AudioSampleType |
StreamType
The audio stream type
Declaration
public AudioStreamType StreamType { get; set; }
Property Value
| Type | Description |
|---|---|
| AudioStreamType |
Methods
View SourceDuckingOptions(AudioStreamType, uint, double)
Initialize the DuckingOption values of the AudioOptions class using the specified target StreamType, Duration, and Ratio.
Declaration
public void DuckingOptions(AudioStreamType duckingTargetStreamType, uint duckingDuration, double duckingRatio)
Parameters
| Type | Name | Description |
|---|---|---|
| AudioStreamType | duckingTargetStreamType | the audio Ducking target Stream type. |
| uint | duckingDuration | the ducking duration. |
| double | duckingRatio | the ducking target volume ratio. |