Class TranscriptionCreateParams.ChunkingStrategy.VadConfig
-
- All Implemented Interfaces:
public final class TranscriptionCreateParams.ChunkingStrategy.VadConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionCreateParams.ChunkingStrategy.VadConfig.BuilderA builder for VadConfig.
public final classTranscriptionCreateParams.ChunkingStrategy.VadConfig.TypeMust be set to
server_vadto enable manual chunking using server side VAD.
-
Method Summary
Modifier and Type Method Description final TranscriptionCreateParams.ChunkingStrategy.VadConfig.Typetype()Must be set to server_vadto enable manual chunking using server side VAD.final Optional<Long>prefixPaddingMs()Amount of audio to include before the VAD detected speech (in milliseconds). final Optional<Long>silenceDurationMs()Duration of silence to detect speech stop (in milliseconds). final Optional<Double>threshold()Sensitivity threshold (0.0 to 1.0) for voice activity detection. final MultipartField<TranscriptionCreateParams.ChunkingStrategy.VadConfig.Type>_type()Returns the raw multipart value of type. final MultipartField<Long>_prefixPaddingMs()Returns the raw multipart value of prefixPaddingMs. final MultipartField<Long>_silenceDurationMs()Returns the raw multipart value of silenceDurationMs. final MultipartField<Double>_threshold()Returns the raw multipart value of threshold. final Map<String, JsonValue>_additionalProperties()final TranscriptionCreateParams.ChunkingStrategy.VadConfig.BuildertoBuilder()final TranscriptionCreateParams.ChunkingStrategy.VadConfigvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionCreateParams.ChunkingStrategy.VadConfig.Builderbuilder()Returns a mutable builder for constructing an instance of VadConfig. -
-
Method Detail
-
type
final TranscriptionCreateParams.ChunkingStrategy.VadConfig.Type type()
Must be set to
server_vadto enable manual chunking using server side VAD.
-
prefixPaddingMs
final Optional<Long> prefixPaddingMs()
Amount of audio to include before the VAD detected speech (in milliseconds).
-
silenceDurationMs
final Optional<Long> silenceDurationMs()
Duration of silence to detect speech stop (in milliseconds). With shorter values the model will respond more quickly, but may jump in on short pauses from the user.
-
threshold
final Optional<Double> threshold()
Sensitivity threshold (0.0 to 1.0) for voice activity detection. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.
-
_type
final MultipartField<TranscriptionCreateParams.ChunkingStrategy.VadConfig.Type> _type()
Returns the raw multipart value of type.
Unlike type, this method doesn't throw if the multipart field has an unexpected type.
-
_prefixPaddingMs
final MultipartField<Long> _prefixPaddingMs()
Returns the raw multipart value of prefixPaddingMs.
Unlike prefixPaddingMs, this method doesn't throw if the multipart field has an unexpected type.
-
_silenceDurationMs
final MultipartField<Long> _silenceDurationMs()
Returns the raw multipart value of silenceDurationMs.
Unlike silenceDurationMs, this method doesn't throw if the multipart field has an unexpected type.
-
_threshold
final MultipartField<Double> _threshold()
Returns the raw multipart value of threshold.
Unlike threshold, this method doesn't throw if the multipart field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TranscriptionCreateParams.ChunkingStrategy.VadConfig.Builder toBuilder()
-
validate
final TranscriptionCreateParams.ChunkingStrategy.VadConfig validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static TranscriptionCreateParams.ChunkingStrategy.VadConfig.Builder builder()
Returns a mutable builder for constructing an instance of VadConfig.
The following fields are required:
.type()
-
-
-
-