/** * @param sensitivity Set the sensitivity level. A value of 1.0 means that * it is highly sensitive to quiet input. A value of 0.0 means it * is least sensitive to noise. <code>null</code> to use the * VoiceXML platform default. */ public void setSensitivity(Double sensitivity) { if (sensitivity != null) { Assert.between(0, sensitivity, 1.0); } mSensitivity = sensitivity; }
/** * @param speedVersusAccuracy A hint specifying the desired balance between * speed versus accuracy. A value of 0.0 means fastest * recognition. A value of 1.0 means best accuracy. * <code>null</code> to use the VoiceXML platform default * @see <a * href="https://www.w3.org/TR/voicexml20/#dml6.3.2">https://www.w3.org/TR/voicexml20/#dml6.3.2</a> */ public void setSpeedVersusAccuracy(Double speedVersusAccuracy) { if (speedVersusAccuracy != null) { Assert.between(0, speedVersusAccuracy, 1.0); } mSpeedVersusAccuracy = speedVersusAccuracy; }
/** * @param confidenceLevel The speech recognition confidence level. Results * with confidence below this value will be rejected (nomatch). * Value must be between 0.0 and 1.0.<code>null</code> to use the * VoiceXML platform default. * @see <a * href="https://www.w3.org/TR/voicexml20/#dml6.3.2">https://www.w3.org/TR/voicexml20/#dml6.3.2</a> */ public void setConfidenceLevel(Double confidenceLevel) { if (confidenceLevel != null) { Assert.between(0, confidenceLevel, 1.0); } mConfidenceLevel = confidenceLevel; }
public static Duration year(long year) { Assert.between(0, year, Long.MAX_VALUE / YEAR_IN_MILLIS); return new Duration(year * YEAR_IN_MILLIS); }
public static Duration days(long days) { Assert.between(0, days, Long.MAX_VALUE / DAY_IN_MILLIS); return new Duration(days * DAY_IN_MILLIS); }
public static Duration seconds(long seconds) { Assert.between(0, seconds, Long.MAX_VALUE / SECOND_IN_MILLIS); return new Duration(seconds * SECOND_IN_MILLIS); }
public static Duration minutes(long minutes) { Assert.between(0, minutes, Long.MAX_VALUE / MINUTE_IN_MILLIS); return new Duration(minutes * MINUTE_IN_MILLIS); }
public static Duration hours(long hours) { Assert.between(0, hours, Long.MAX_VALUE / HOUR_IN_MILLIS); return new Duration(hours * HOUR_IN_MILLIS); }