VoiceLiveAsyncClient Class

  • java.lang.Object
    • com.azure.ai.voicelive.VoiceLiveAsyncClient

public final class VoiceLiveAsyncClient

The VoiceLiveAsyncClient provides methods to create and manage real-time voice communication sessions with the Azure VoiceLive service.

Method Summary

Modifier and Type Method and Description
reactor.core.publisher.Mono<VoiceLiveSessionAsyncClient> startSession()

Starts a new VoiceLiveSessionAsyncClient for real-time voice communication using the default service-side model configuration.

reactor.core.publisher.Mono<VoiceLiveSessionAsyncClient> startSession(AgentSessionConfig agentConfig, VoiceLiveRequestOptions requestOptions)

Starts a new VoiceLiveSessionAsyncClient for real-time voice communication with an Azure AI Foundry agent.

reactor.core.publisher.Mono<VoiceLiveSessionAsyncClient> startSession(String model, VoiceLiveRequestOptions requestOptions)

Starts a new VoiceLiveSessionAsyncClient for real-time voice communication with custom request options.

Methods inherited from java.lang.Object

Method Details

startSession

public Mono<VoiceLiveSessionAsyncClient> startSession()

Starts a new VoiceLiveSessionAsyncClient for real-time voice communication using the default service-side model configuration.

Returns:

A Mono containing the connected VoiceLiveSessionAsyncClient.

startSession

public Mono<VoiceLiveSessionAsyncClient> startSession(AgentSessionConfig agentConfig, VoiceLiveRequestOptions requestOptions)

Starts a new VoiceLiveSessionAsyncClient for real-time voice communication with an Azure AI Foundry agent.

This method configures the session to connect directly to an Azure AI Foundry agent, using the agent configuration to set the appropriate query parameters.

Parameters:

agentConfig - The agent session configuration containing the agent name, project name, and optional parameters.
requestOptions - Custom query parameters and headers for the request. May be null.

Returns:

A Mono containing the connected VoiceLiveSessionAsyncClient.

startSession

public Mono<VoiceLiveSessionAsyncClient> startSession(String model, VoiceLiveRequestOptions requestOptions)

Starts a new VoiceLiveSessionAsyncClient for real-time voice communication with custom request options.

Parameters:

model - The model to use for the session.
requestOptions - Custom query parameters and headers for the request. May be null.

Returns:

A Mono containing the connected VoiceLiveSessionAsyncClient.

Applies to