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

com.pulumi.gcp.diagflow.kotlin.inputs.CxFlowAdvancedSettingsSpeechSettingsArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.diagflow.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.diagflow.inputs.CxFlowAdvancedSettingsSpeechSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property endpointerSensitivity Sensitivity of the speech model that detects the end of speech. Scale from 0 to 100.
 * @property models Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model will be selected for requests from its corresponding language. For more information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
 * An object containing a list of **"key": value** pairs. Example: **{ "name": "wrench", "mass": "1.3kg", "count": "3" }**.
 * @property noSpeechTimeout Timeout before detecting no speech.
 * A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
 * @property useTimeoutBasedEndpointing Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.
 */
public data class CxFlowAdvancedSettingsSpeechSettingsArgs(
    public val endpointerSensitivity: Output? = null,
    public val models: Output>? = null,
    public val noSpeechTimeout: Output? = null,
    public val useTimeoutBasedEndpointing: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxFlowAdvancedSettingsSpeechSettingsArgs =
        com.pulumi.gcp.diagflow.inputs.CxFlowAdvancedSettingsSpeechSettingsArgs.builder()
            .endpointerSensitivity(endpointerSensitivity?.applyValue({ args0 -> args0 }))
            .models(models?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .noSpeechTimeout(noSpeechTimeout?.applyValue({ args0 -> args0 }))
            .useTimeoutBasedEndpointing(useTimeoutBasedEndpointing?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CxFlowAdvancedSettingsSpeechSettingsArgs].
 */
@PulumiTagMarker
public class CxFlowAdvancedSettingsSpeechSettingsArgsBuilder internal constructor() {
    private var endpointerSensitivity: Output? = null

    private var models: Output>? = null

    private var noSpeechTimeout: Output? = null

    private var useTimeoutBasedEndpointing: Output? = null

    /**
     * @param value Sensitivity of the speech model that detects the end of speech. Scale from 0 to 100.
     */
    @JvmName("hhhwqhxsrmfjqhir")
    public suspend fun endpointerSensitivity(`value`: Output) {
        this.endpointerSensitivity = value
    }

    /**
     * @param value Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model will be selected for requests from its corresponding language. For more information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
     * An object containing a list of **"key": value** pairs. Example: **{ "name": "wrench", "mass": "1.3kg", "count": "3" }**.
     */
    @JvmName("tfjhcvrokkrypsmi")
    public suspend fun models(`value`: Output>) {
        this.models = value
    }

    /**
     * @param value Timeout before detecting no speech.
     * A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
     */
    @JvmName("dkswqouhgnupwgei")
    public suspend fun noSpeechTimeout(`value`: Output) {
        this.noSpeechTimeout = value
    }

    /**
     * @param value Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.
     */
    @JvmName("pfbyqkapwvtymdrk")
    public suspend fun useTimeoutBasedEndpointing(`value`: Output) {
        this.useTimeoutBasedEndpointing = value
    }

    /**
     * @param value Sensitivity of the speech model that detects the end of speech. Scale from 0 to 100.
     */
    @JvmName("bgvemjqguhffunff")
    public suspend fun endpointerSensitivity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointerSensitivity = mapped
    }

    /**
     * @param value Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model will be selected for requests from its corresponding language. For more information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
     * An object containing a list of **"key": value** pairs. Example: **{ "name": "wrench", "mass": "1.3kg", "count": "3" }**.
     */
    @JvmName("hhvcytxpddcrqspu")
    public suspend fun models(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.models = mapped
    }

    /**
     * @param values Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model will be selected for requests from its corresponding language. For more information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
     * An object containing a list of **"key": value** pairs. Example: **{ "name": "wrench", "mass": "1.3kg", "count": "3" }**.
     */
    @JvmName("xcukgcmxgpubuqif")
    public fun models(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.models = mapped
    }

    /**
     * @param value Timeout before detecting no speech.
     * A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
     */
    @JvmName("wnnpnijkqbfwhixr")
    public suspend fun noSpeechTimeout(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.noSpeechTimeout = mapped
    }

    /**
     * @param value Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value.
     */
    @JvmName("stvqjxusqgsbkffh")
    public suspend fun useTimeoutBasedEndpointing(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useTimeoutBasedEndpointing = mapped
    }

    internal fun build(): CxFlowAdvancedSettingsSpeechSettingsArgs =
        CxFlowAdvancedSettingsSpeechSettingsArgs(
            endpointerSensitivity = endpointerSensitivity,
            models = models,
            noSpeechTimeout = noSpeechTimeout,
            useTimeoutBasedEndpointing = useTimeoutBasedEndpointing,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy