com.pulumi.azurenative.media.outputs.LiveEventTranscriptionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.media.outputs;
import com.pulumi.azurenative.media.outputs.LiveEventInputTrackSelectionResponse;
import com.pulumi.azurenative.media.outputs.LiveEventOutputTranscriptionTrackResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LiveEventTranscriptionResponse {
/**
* @return Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied. This property is reserved for future use, any value set on this property will be ignored.
*
*/
private @Nullable List inputTrackSelection;
/**
* @return Specifies the language (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature and the list of supported languages.
*
*/
private @Nullable String language;
/**
* @return Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored.
*
*/
private @Nullable LiveEventOutputTranscriptionTrackResponse outputTranscriptionTrack;
private LiveEventTranscriptionResponse() {}
/**
* @return Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied. This property is reserved for future use, any value set on this property will be ignored.
*
*/
public List inputTrackSelection() {
return this.inputTrackSelection == null ? List.of() : this.inputTrackSelection;
}
/**
* @return Specifies the language (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature and the list of supported languages.
*
*/
public Optional language() {
return Optional.ofNullable(this.language);
}
/**
* @return Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored.
*
*/
public Optional outputTranscriptionTrack() {
return Optional.ofNullable(this.outputTranscriptionTrack);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LiveEventTranscriptionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List inputTrackSelection;
private @Nullable String language;
private @Nullable LiveEventOutputTranscriptionTrackResponse outputTranscriptionTrack;
public Builder() {}
public Builder(LiveEventTranscriptionResponse defaults) {
Objects.requireNonNull(defaults);
this.inputTrackSelection = defaults.inputTrackSelection;
this.language = defaults.language;
this.outputTranscriptionTrack = defaults.outputTranscriptionTrack;
}
@CustomType.Setter
public Builder inputTrackSelection(@Nullable List inputTrackSelection) {
this.inputTrackSelection = inputTrackSelection;
return this;
}
public Builder inputTrackSelection(LiveEventInputTrackSelectionResponse... inputTrackSelection) {
return inputTrackSelection(List.of(inputTrackSelection));
}
@CustomType.Setter
public Builder language(@Nullable String language) {
this.language = language;
return this;
}
@CustomType.Setter
public Builder outputTranscriptionTrack(@Nullable LiveEventOutputTranscriptionTrackResponse outputTranscriptionTrack) {
this.outputTranscriptionTrack = outputTranscriptionTrack;
return this;
}
public LiveEventTranscriptionResponse build() {
final var _resultValue = new LiveEventTranscriptionResponse();
_resultValue.inputTrackSelection = inputTrackSelection;
_resultValue.language = language;
_resultValue.outputTranscriptionTrack = outputTranscriptionTrack;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy