Interface WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
WatsonSpeechToTextEndpointBuilderFactory
public static interface WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the IBM Watson Speech to Text component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()The IBM Cloud API key for authentication.contentType(String contentType) The audio format (MIME type).The language model to use for recognition.The operation to perform.operation(org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations operation) The operation to perform.serviceUrl(String serviceUrl) The service endpoint URL.speakerLabels(boolean speakerLabels) Whether to identify different speakers in the audio.speakerLabels(String speakerLabels) Whether to identify different speakers in the audio.timestamps(boolean timestamps) Whether to include timestamps for each word in the transcription.timestamps(String timestamps) Whether to include timestamps for each word in the transcription.wordConfidence(boolean wordConfidence) Whether to include confidence scores for each word.wordConfidence(String wordConfidence) Whether to include confidence scores for each word.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
serviceUrl
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder serviceUrl(String serviceUrl) The service endpoint URL. If not specified, the default URL will be used. The option is a:java.lang.Stringtype. Group: common- Parameters:
serviceUrl- the value to set- Returns:
- the dsl builder
-
contentType
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder contentType(String contentType) The audio format (MIME type). Default is audio/wav. Supported formats: audio/wav, audio/mp3, audio/flac, audio/ogg, audio/webm. The option is a:java.lang.Stringtype. Default: audio/wav Group: producer- Parameters:
contentType- the value to set- Returns:
- the dsl builder
-
model
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder model(String model) The language model to use for recognition. Default is en-US_BroadbandModel. Examples: en-US_NarrowbandModel, en-GB_BroadbandModel, es-ES_BroadbandModel, fr-FR_BroadbandModel. The option is a:java.lang.Stringtype. Default: en-US_BroadbandModel Group: producer- Parameters:
model- the value to set- Returns:
- the dsl builder
-
operation
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder operation(org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations operation) The operation to perform. The option is a:org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperationstype. Group: producer- Parameters:
operation- the value to set- Returns:
- the dsl builder
-
operation
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder operation(String operation) The operation to perform. The option will be converted to aorg.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperationstype. Group: producer- Parameters:
operation- the value to set- Returns:
- the dsl builder
-
speakerLabels
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder speakerLabels(boolean speakerLabels) Whether to identify different speakers in the audio. Default is false. The option is a:booleantype. Default: false Group: producer- Parameters:
speakerLabels- the value to set- Returns:
- the dsl builder
-
speakerLabels
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder speakerLabels(String speakerLabels) Whether to identify different speakers in the audio. Default is false. The option will be converted to abooleantype. Default: false Group: producer- Parameters:
speakerLabels- the value to set- Returns:
- the dsl builder
-
timestamps
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder timestamps(boolean timestamps) Whether to include timestamps for each word in the transcription. Default is false. The option is a:booleantype. Default: false Group: producer- Parameters:
timestamps- the value to set- Returns:
- the dsl builder
-
timestamps
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder timestamps(String timestamps) Whether to include timestamps for each word in the transcription. Default is false. The option will be converted to abooleantype. Default: false Group: producer- Parameters:
timestamps- the value to set- Returns:
- the dsl builder
-
wordConfidence
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder wordConfidence(boolean wordConfidence) Whether to include confidence scores for each word. Default is false. The option is a:booleantype. Default: false Group: producer- Parameters:
wordConfidence- the value to set- Returns:
- the dsl builder
-
wordConfidence
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder wordConfidence(String wordConfidence) Whether to include confidence scores for each word. Default is false. The option will be converted to abooleantype. Default: false Group: producer- Parameters:
wordConfidence- the value to set- Returns:
- the dsl builder
-
apiKey
default WatsonSpeechToTextEndpointBuilderFactory.WatsonSpeechToTextEndpointBuilder apiKey(String apiKey) The IBM Cloud API key for authentication. The option is a:java.lang.Stringtype. Required: true Group: security- Parameters:
apiKey- the value to set- Returns:
- the dsl builder
-