
com.pulumi.gcp.diagflow.kotlin.outputs.CxFlowAdvancedSettingsSpeechSettings.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.diagflow.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @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 CxFlowAdvancedSettingsSpeechSettings(
public val endpointerSensitivity: Int? = null,
public val models: Map? = null,
public val noSpeechTimeout: String? = null,
public val useTimeoutBasedEndpointing: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.diagflow.outputs.CxFlowAdvancedSettingsSpeechSettings): CxFlowAdvancedSettingsSpeechSettings = CxFlowAdvancedSettingsSpeechSettings(
endpointerSensitivity = javaType.endpointerSensitivity().map({ args0 -> args0 }).orElse(null),
models = javaType.models().map({ args0 -> args0.key.to(args0.value) }).toMap(),
noSpeechTimeout = javaType.noSpeechTimeout().map({ args0 -> args0 }).orElse(null),
useTimeoutBasedEndpointing = javaType.useTimeoutBasedEndpointing().map({ args0 ->
args0
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy