Class SourceMetadata
Inherited Members
Namespace: AnalysisBase.Segment
Assembly: AnalysisBase.dll
Syntax
public class SourceMetadata : ISourceMetadata
Constructors
| Improve this Doc View SourceSourceMetadata(TimeSpan, Int32, String, Nullable<DateTimeOffset>)
Initializes a new instance of the SourceMetadata class.
Declaration
public SourceMetadata(TimeSpan duration, int sampleRate, string identifier, DateTimeOffset? recordedDate)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | duration | The duration of the source audio object. |
Int32 | sampleRate | The sample rate of the source audio object. |
String | identifier | A unique textual identifier. |
Nullable<DateTimeOffset> | recordedDate | The Date the audio recording was recorded. |
Properties
| Improve this Doc View SourceDuration
Gets Duration - the length of the source audio object.
Declaration
public TimeSpan Duration { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Identifier
Gets Identifier - a string that uniquely identifies the source audio object.
Declaration
public string Identifier { get; }
Property Value
Type | Description |
---|---|
String |
RecordedDate
Gets the date the source audio object started recording at.
Declaration
public DateTimeOffset? RecordedDate { get; }
Property Value
Type | Description |
---|---|
Nullable<DateTimeOffset> |
SampleRate
Gets SampleRate - the number of samples per second in the source audio object. Store sample rate of original audio object. May need original SR during the analysis, esp if have upsampled from the original SR.
Declaration
public int SampleRate { get; }
Property Value
Type | Description |
---|---|
Int32 |