StreamingData Class

  • java.lang.Object
    • com.azure.communication.callautomation.models.StreamingData

public abstract class StreamingData

The abstract class used as parent of Streaming data such as Audio, Transcription, or Captions.

Constructor Summary

Constructor Description
StreamingData(StreamingDataKind streamingDataKind)

Creates an instance of StreamingData.

Method Summary

Modifier and Type Method and Description
StreamingDataKind getStreamingDataKind()

Get the streaming data kind.

static StreamingData parse(String data)

Parses a base64 encoded string into a StreamingData object, which can be one of the following subtypes: AudioData, AudioMetadata, TranscriptionData, or TranscriptionMetadata.

static T parse(String data, Class<T> type)

Parses a base64 encoded string into a StreamingData object, which can be one of the following subtypes: AudioData, AudioMetadata, TranscriptionData, or TranscriptionMetadata.

Methods inherited from java.lang.Object

Constructor Details

StreamingData

public StreamingData(StreamingDataKind streamingDataKind)

Creates an instance of StreamingData.

Parameters:

streamingDataKind - The kind of streaming data.

Method Details

getStreamingDataKind

public StreamingDataKind getStreamingDataKind()

Get the streaming data kind.

Returns:

streaming data kind.

parse

public static StreamingData parse(String data)

Parses a base64 encoded string into a StreamingData object, which can be one of the following subtypes: AudioData, AudioMetadata, TranscriptionData, or TranscriptionMetadata.

Parameters:

data - The base64 string represents streaming data that will be converted into the appropriate subtype of StreamingData.

Returns:

StreamingData

parse

public static T <T>parse(String data, Class<T> type)

Parses a base64 encoded string into a StreamingData object, which can be one of the following subtypes: AudioData, AudioMetadata, TranscriptionData, or TranscriptionMetadata.

Parameters:

data - The base64 string represents streaming data that will be converted into the appropriate subtype of StreamingData.
type - type of the streamindata ex. AudioData, AudioMetadata, TranscriptionData, TranscriptionMetadata

Returns:

Subtypes of StreamingData

Applies to