All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.media.kotlin.inputs.LiveEventTranscriptionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.media.kotlin.inputs

import com.pulumi.azurenative.media.inputs.LiveEventTranscriptionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Describes the transcription tracks 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.
 * @property inputTrackSelection 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.
 * @property language 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.
 * @property outputTranscriptionTrack 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 data class LiveEventTranscriptionArgs(
    public val inputTrackSelection: Output>? = null,
    public val language: Output? = null,
    public val outputTranscriptionTrack: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.media.inputs.LiveEventTranscriptionArgs =
        com.pulumi.azurenative.media.inputs.LiveEventTranscriptionArgs.builder()
            .inputTrackSelection(
                inputTrackSelection?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .language(language?.applyValue({ args0 -> args0 }))
            .outputTranscriptionTrack(
                outputTranscriptionTrack?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [LiveEventTranscriptionArgs].
 */
@PulumiTagMarker
public class LiveEventTranscriptionArgsBuilder internal constructor() {
    private var inputTrackSelection: Output>? = null

    private var language: Output? = null

    private var outputTranscriptionTrack: Output? = null

    /**
     * @param value 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.
     */
    @JvmName("kipjlgdislflkuph")
    public suspend fun inputTrackSelection(`value`: Output>) {
        this.inputTrackSelection = value
    }

    @JvmName("eemvgceyanbjylfv")
    public suspend fun inputTrackSelection(vararg values: Output) {
        this.inputTrackSelection = Output.all(values.asList())
    }

    /**
     * @param values 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.
     */
    @JvmName("xwygcqjjpqgdwjdi")
    public suspend fun inputTrackSelection(values: List>) {
        this.inputTrackSelection = Output.all(values)
    }

    /**
     * @param value 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.
     */
    @JvmName("rhrwdrgloaiminkc")
    public suspend fun language(`value`: Output) {
        this.language = value
    }

    /**
     * @param value 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.
     */
    @JvmName("xnlsufpqaanabdxu")
    public suspend fun outputTranscriptionTrack(`value`: Output) {
        this.outputTranscriptionTrack = value
    }

    /**
     * @param value 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.
     */
    @JvmName("sakjtjavtwqjfsmb")
    public suspend fun inputTrackSelection(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputTrackSelection = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("bqvmjpskywjsowbl")
    public suspend fun inputTrackSelection(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LiveEventInputTrackSelectionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputTrackSelection = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("dlfiklfnrkiilyqv")
    public suspend fun inputTrackSelection(vararg argument: suspend LiveEventInputTrackSelectionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LiveEventInputTrackSelectionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputTrackSelection = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("prwcewmdmjvbmbmn")
    public suspend fun inputTrackSelection(argument: suspend LiveEventInputTrackSelectionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            LiveEventInputTrackSelectionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.inputTrackSelection = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("cfghwutqtfnfcjai")
    public suspend fun inputTrackSelection(vararg values: LiveEventInputTrackSelectionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputTrackSelection = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("bnbrbauwjhvctapf")
    public suspend fun language(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.language = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("rlddpgacewtgcrwc")
    public suspend fun outputTranscriptionTrack(`value`: LiveEventOutputTranscriptionTrackArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputTranscriptionTrack = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("wfrhnikgamjrsbxa")
    public suspend fun outputTranscriptionTrack(argument: suspend LiveEventOutputTranscriptionTrackArgsBuilder.() -> Unit) {
        val toBeMapped = LiveEventOutputTranscriptionTrackArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.outputTranscriptionTrack = mapped
    }

    internal fun build(): LiveEventTranscriptionArgs = LiveEventTranscriptionArgs(
        inputTrackSelection = inputTrackSelection,
        language = language,
        outputTranscriptionTrack = outputTranscriptionTrack,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy