Skip to content
Tracon

LiveVoiceSessionCreateRequest

Namespace Tracon · Assembly Tracon.AspNetCore.dll

The request that opens a provider-hosted live voice session.

public sealed record LiveVoiceSessionCreateRequest : IEquatable<LiveVoiceSessionCreateRequest>

objectLiveVoiceSessionCreateRequest

IEquatable<LiveVoiceSessionCreateRequest>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public LiveVoiceSessionCreateRequest()

Gets the agent to talk to.

[JsonPropertyName("agent")]
public required string Agent { get; init; }

string

Gets the media peer’s SDP offer.

[JsonPropertyName("sdp")]
public required string Sdp { get; init; }

string

Gets the agent session the conversation runs in.

[JsonPropertyName("sessionId")]
public required string SessionId { get; init; }

string

Gets the requested output voice; null leaves the configured default.

[JsonPropertyName("voice")]
public string? Voice { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(LiveVoiceSessionCreateRequest? other)

other LiveVoiceSessionCreateRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(LiveVoiceSessionCreateRequest?, LiveVoiceSessionCreateRequest?)

Section titled “ operator ==(LiveVoiceSessionCreateRequest?, LiveVoiceSessionCreateRequest?)”
public static bool operator ==(LiveVoiceSessionCreateRequest? left, LiveVoiceSessionCreateRequest? right)

left LiveVoiceSessionCreateRequest?

right LiveVoiceSessionCreateRequest?

bool

operator !=(LiveVoiceSessionCreateRequest?, LiveVoiceSessionCreateRequest?)

Section titled “ operator !=(LiveVoiceSessionCreateRequest?, LiveVoiceSessionCreateRequest?)”
public static bool operator !=(LiveVoiceSessionCreateRequest? left, LiveVoiceSessionCreateRequest? right)

left LiveVoiceSessionCreateRequest?

right LiveVoiceSessionCreateRequest?

bool