Table of Contents

Class SentimentAnalysisResult

Namespace
AssemblyAI.Transcripts
Assembly
AssemblyAI.dll
public record SentimentAnalysisResult : IEquatable<SentimentAnalysisResult>
Inheritance
SentimentAnalysisResult
Implements
Inherited Members

Properties

Channel

The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially.

[JsonPropertyName("channel")]
public string? Channel { get; set; }

Property Value

string

Confidence

The confidence score for the detected sentiment of the sentence, from 0 to 1

[JsonPropertyName("confidence")]
public required double Confidence { get; set; }

Property Value

double

End

The ending time, in milliseconds, of the sentence

[JsonPropertyName("end")]
public required int End { get; set; }

Property Value

int

Sentiment

The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE

[JsonPropertyName("sentiment")]
public required Sentiment Sentiment { get; set; }

Property Value

Sentiment

Speaker

The speaker of the sentence if Speaker Diarization is enabled, else null

[JsonPropertyName("speaker")]
public string? Speaker { get; set; }

Property Value

string

Start

The starting time, in milliseconds, of the sentence

[JsonPropertyName("start")]
public required int Start { get; set; }

Property Value

int

Text

The transcript of the sentence

[JsonPropertyName("text")]
public required string Text { get; set; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.