This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new befa315add74 CAMEL-23832: camel-ibm-watson-speech-to-text - improve
the component and option descriptions (#30964)
befa315add74 is described below
commit befa315add744b98c99f10b219db090d28d7a5bc
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:55:05 2026 +0100
CAMEL-23832: camel-ibm-watson-speech-to-text - improve the component and
option descriptions (#30964)
This commit rewrites the component description, the texts of 8 options
shared by the component and the endpoint, the
configuration component option, the label path and 10 headers. The new
texts name the header that replaces each option,
the operations that use it and the defaults of the IBM Watson SDK, such as
the default service URL. The speakerLabels
text now says that the service then also returns timestamps.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-ibm-watson-speech-to-text is marked as done in
tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../components/ibm-watson-speech-to-text.json | 58 +++++-----
.../docs/ibm-watson-speech-to-text-component.adoc | 3 +-
.../ibm/watson/stt/ibm-watson-speech-to-text.json | 58 +++++-----
.../docs/ibm-watson-speech-to-text-component.adoc | 3 +-
.../watson/stt/WatsonSpeechToTextComponent.java | 6 +-
.../stt/WatsonSpeechToTextConfiguration.java | 67 ++++++------
.../watson/stt/WatsonSpeechToTextConstants.java | 38 +++++--
.../ibm/watson/stt/WatsonSpeechToTextEndpoint.java | 6 +-
.../component/ComponentsBuilderFactory.java | 3 +-
...mWatsonSpeechToTextComponentBuilderFactory.java | 57 +++++++---
.../builder/endpoint/EndpointHeaderBuilders.java | 3 +-
.../builder/endpoint/StaticEndpointBuilders.java | 12 ++-
.../WatsonSpeechToTextEndpointBuilderFactory.java | 119 ++++++++++++++-------
tasks/component-descriptions.md | 2 +-
14 files changed, 263 insertions(+), 172 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watson-speech-to-text.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watson-speech-to-text.json
index ff58a25bde20..38bb85cbc096 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watson-speech-to-text.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watson-speech-to-text.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "ibm-watson-speech-to-text",
"title": "IBM Watson Speech to Text",
- "description": "Convert speech audio to text using IBM Watson Speech to
Text",
+ "description": "Transcribe audio to text with IBM Watson Speech to Text,
and list or get its speech models and custom language models.",
"deprecated": false,
"firstVersion": "4.17.0",
"label": "ai,cloud",
@@ -24,46 +24,46 @@
"remote": true
},
"componentProperties": {
- "configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "producer", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description":
"Component configuration" },
- "serviceUrl": { "index": 1, "kind": "property", "displayName": "Service
Url", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The service endpoint
URL. If not specified, the default URL will be used." },
- "contentType": { "index": 2, "kind": "property", "displayName": "Content
Type", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "audio\/wav", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The audio format (MIME
type). Default is audio\/wav. Su [...]
+ "configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "producer", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "The
shared configuration of the endpoints. Each endpoint starts from a copy of it,
and its endpoint options override the values." },
+ "serviceUrl": { "index": 1, "kind": "property", "displayName": "Service
Url", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The URL of the Speech to
Text service instance, for example https:\/\/api.eu-de.speech-to-t [...]
+ "contentType": { "index": 2, "kind": "property", "displayName": "Content
Type", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "audio\/wav", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The format (MIME type)
of the audio for recognize, for [...]
"lazyStartProducer": { "index": 3, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
- "model": { "index": 4, "kind": "property", "displayName": "Model",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "en-US_BroadbandModel", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The language model to
use for recognition. Default is en-U [...]
- "operation": { "index": 5, "kind": "property", "displayName": "Operation",
"group": "producer", "label": "producer", "required": false, "type": "enum",
"javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations",
"enum": [ "recognize", "listModels", "getModel", "listCustomModels",
"getCustomModel" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"con [...]
- "speakerLabels": { "index": 6, "kind": "property", "displayName": "Speaker
Labels", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to identify
different speakers in the audio. Default is fa [...]
- "timestamps": { "index": 7, "kind": "property", "displayName":
"Timestamps", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to include
timestamps for each word in the transcription. Default [...]
- "wordConfidence": { "index": 8, "kind": "property", "displayName": "Word
Confidence", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to include
confidence scores for each word. Default is f [...]
+ "model": { "index": 4, "kind": "property", "displayName": "Model",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "en-US_BroadbandModel", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The speech model that
recognize uses, for example en-US_Mu [...]
+ "operation": { "index": 5, "kind": "property", "displayName": "Operation",
"group": "producer", "label": "producer", "required": false, "type": "enum",
"javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations",
"enum": [ "recognize", "listModels", "getModel", "listCustomModels",
"getCustomModel" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"con [...]
+ "speakerLabels": { "index": 6, "kind": "property", "displayName": "Speaker
Labels", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns labels that identify which speaker spoke [...]
+ "timestamps": { "index": 7, "kind": "property", "displayName":
"Timestamps", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns the start and end time of each word, in seconds [...]
+ "wordConfidence": { "index": 8, "kind": "property", "displayName": "Word
Confidence", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns a confidence score from 0.0 to 1.0 for [...]
"autowiredEnabled": { "index": 9, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
"healthCheckConsumerEnabled": { "index": 10, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
"healthCheckProducerEnabled": { "index": 11, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on produce [...]
- "apiKey": { "index": 12, "kind": "property", "displayName": "Api Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The IBM Cloud API key
for authentication" }
+ "apiKey": { "index": 12, "kind": "property", "displayName": "Api Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The IBM Cloud API key of
the Speech to Text service instance. The client g [...]
},
"headers": {
- "CamelIBMWatsonSTTOperation": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operation to perform", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#OPERATION"
},
- "CamelIBMWatsonSTTAudioFile": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.io.File", "deprecated": false, "autowired": false, "secret":
false, "description": "The audio file to transcribe", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#AUDIO_FILE"
},
- "CamelIBMWatsonSTTModel": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
language model to use for recognition", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#MODEL" },
- "CamelIBMWatsonSTTContentType": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The audio format (e.g., audio\/wav, audio\/mp3, audio\/flac)",
"constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#CONTENT_TYPE"
},
- "CamelIBMWatsonSTTTimestamps": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether to include timestamps in the transcription",
"constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#TIMESTAMPS"
},
- "CamelIBMWatsonSTTWordConfidence": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether to include word confidence scores",
"constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#WORD_CONFIDENCE"
},
- "CamelIBMWatsonSTTSpeakerLabels": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether to identify different speakers", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#SPEAKER_LABELS"
},
- "CamelIBMWatsonSTTModelName": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the model to retrieve", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#MODEL_NAME"
},
- "CamelIBMWatsonSTTLanguage": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The language for filtering models", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#LANGUAGE"
},
- "CamelIBMWatsonSTTTranscript": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The transcription result text", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#TRANSCRIPT"
}
+ "CamelIBMWatsonSTTOperation": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operation that the producer performs. It replaces the
operation option.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#OPERATION"
},
+ "CamelIBMWatsonSTTAudioFile": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.io.File", "deprecated": false, "autowired": false, "secret":
false, "description": "The audio file that recognize transcribes. If set, the
producer sends this file instead of the message body.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#AUDIO_FILE"
},
+ "CamelIBMWatsonSTTModel": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
speech model that recognize uses. It replaces the model option. The producer
sets it on the result to the model it used.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#MODEL" },
+ "CamelIBMWatsonSTTContentType": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The format (MIME type) of the audio for recognize. It replaces
the contentType option. The producer sets it on the result to the format it
sent.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#CONTENT_TYPE"
},
+ "CamelIBMWatsonSTTTimestamps": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether recognize returns the start and end time of each
word. It replaces the timestamps option.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#TIMESTAMPS"
},
+ "CamelIBMWatsonSTTWordConfidence": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether recognize returns a confidence score for each
word. It replaces the wordConfidence option.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#WORD_CONFIDENCE"
},
+ "CamelIBMWatsonSTTSpeakerLabels": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether recognize returns labels that identify the
speaker of each word. It replaces the speakerLabels option.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#SPEAKER_LABELS"
},
+ "CamelIBMWatsonSTTModelName": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the speech model for getModel, or the customization
ID of the custom language model for getCustomModel. If not set, the producer
reads it from the message body.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConsta [...]
+ "CamelIBMWatsonSTTLanguage": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The language for listCustomModels, for example en-US, to list
only the custom language models of that language. If not set, all custom
language models of the service instance are listed.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeec [...]
+ "CamelIBMWatsonSTTTranscript": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The transcript that recognize sets: the text of the first
alternative of each result, joined in order.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#TRANSCRIPT"
}
},
"bodyTypes": {
"producerIn": { "carriers": [ "bytes", "stream", "file" ], "byOption": [ {
"option": "operation", "value": "listModels", "carriers": [ "any" ] }, {
"option": "operation", "value": "getModel", "carriers": [ "text" ] }, {
"option": "operation", "value": "listCustomModels", "carriers": [ "any" ] }, {
"option": "operation", "value": "getCustomModel", "carriers": [ "text" ] } ],
"description": "The audio to recognize in the format of contentType (audio\/wav
by default), as bytes, a stream [...]
"producerOut": { "carriers": [ "pojo" ], "javaType":
"com.ibm.watson.speech_to_text.v1.model.SpeechRecognitionResults", "byOption":
[ { "option": "operation", "value": "listModels", "carriers": [ "list" ] }, {
"option": "operation", "value": "getModel", "carriers": [ "pojo" ], "javaType":
"com.ibm.watson.speech_to_text.v1.model.SpeechModel" }, { "option":
"operation", "value": "listCustomModels", "carriers": [ "list" ] }, { "option":
"operation", "value": "getCustomModel", "carriers" [...]
},
"properties": {
- "label": { "index": 0, "kind": "path", "displayName": "Label", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "Logical name" },
- "serviceUrl": { "index": 1, "kind": "parameter", "displayName": "Service
Url", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The service endpoint
URL. If not specified, the default URL will be used." },
- "contentType": { "index": 2, "kind": "parameter", "displayName": "Content
Type", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "audio\/wav", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The audio format (MIME
type). Default is audio\/wav. S [...]
- "model": { "index": 3, "kind": "parameter", "displayName": "Model",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "en-US_BroadbandModel", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The language model to
use for recognition. Default is en- [...]
- "operation": { "index": 4, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations",
"enum": [ "recognize", "listModels", "getModel", "listCustomModels",
"getCustomModel" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"co [...]
- "speakerLabels": { "index": 5, "kind": "parameter", "displayName":
"Speaker Labels", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to identify
different speakers in the audio. Default is f [...]
- "timestamps": { "index": 6, "kind": "parameter", "displayName":
"Timestamps", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to include
timestamps for each word in the transcription. Defaul [...]
- "wordConfidence": { "index": 7, "kind": "parameter", "displayName": "Word
Confidence", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to include
confidence scores for each word. Default is [...]
+ "label": { "index": 0, "kind": "path", "displayName": "Label", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "A logical name for the endpoint, for example to tell endpoints
apart. The component does not use it." },
+ "serviceUrl": { "index": 1, "kind": "parameter", "displayName": "Service
Url", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The URL of the Speech to
Text service instance, for example https:\/\/api.eu-de.speech-to- [...]
+ "contentType": { "index": 2, "kind": "parameter", "displayName": "Content
Type", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "audio\/wav", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The format (MIME type)
of the audio for recognize, for [...]
+ "model": { "index": 3, "kind": "parameter", "displayName": "Model",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "en-US_BroadbandModel", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The speech model that
recognize uses, for example en-US_M [...]
+ "operation": { "index": 4, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations",
"enum": [ "recognize", "listModels", "getModel", "listCustomModels",
"getCustomModel" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"co [...]
+ "speakerLabels": { "index": 5, "kind": "parameter", "displayName":
"Speaker Labels", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns labels that identify which speaker spok [...]
+ "timestamps": { "index": 6, "kind": "parameter", "displayName":
"Timestamps", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns the start and end time of each word, in second [...]
+ "wordConfidence": { "index": 7, "kind": "parameter", "displayName": "Word
Confidence", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns a confidence score from 0.0 to 1.0 fo [...]
"lazyStartProducer": { "index": 8, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
- "apiKey": { "index": 9, "kind": "parameter", "displayName": "Api Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The IBM Cloud API key
for authentication" }
+ "apiKey": { "index": 9, "kind": "parameter", "displayName": "Api Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The IBM Cloud API key of
the Speech to Text service instance. The client g [...]
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watson-speech-to-text-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watson-speech-to-text-component.adoc
index b8dbfb5af0e6..26849a91c80f 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watson-speech-to-text-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watson-speech-to-text-component.adoc
@@ -2,7 +2,7 @@
:doctitle: IBM Watson Speech to Text
:shortname: ibm-watson-speech-to-text
:artifactid: camel-ibm-watson-speech-to-text
-:description: Convert speech audio to text using IBM Watson Speech to Text
+:description: Transcribe audio to text with IBM Watson Speech to Text, and
list or get its speech models and custom language models.
:since: 4.17
:supportlevel: Stable
:tabs-sync-option:
@@ -610,4 +610,3 @@ Maven users will need to add the following dependency to
their `pom.xml`.
----
where `x.x.x` is the version number of Camel.
-
diff --git
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/generated/resources/META-INF/org/apache/camel/component/ibm/watson/stt/ibm-watson-speech-to-text.json
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/generated/resources/META-INF/org/apache/camel/component/ibm/watson/stt/ibm-watson-speech-to-text.json
index ff58a25bde20..38bb85cbc096 100644
---
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/generated/resources/META-INF/org/apache/camel/component/ibm/watson/stt/ibm-watson-speech-to-text.json
+++
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/generated/resources/META-INF/org/apache/camel/component/ibm/watson/stt/ibm-watson-speech-to-text.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "ibm-watson-speech-to-text",
"title": "IBM Watson Speech to Text",
- "description": "Convert speech audio to text using IBM Watson Speech to
Text",
+ "description": "Transcribe audio to text with IBM Watson Speech to Text,
and list or get its speech models and custom language models.",
"deprecated": false,
"firstVersion": "4.17.0",
"label": "ai,cloud",
@@ -24,46 +24,46 @@
"remote": true
},
"componentProperties": {
- "configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "producer", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description":
"Component configuration" },
- "serviceUrl": { "index": 1, "kind": "property", "displayName": "Service
Url", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The service endpoint
URL. If not specified, the default URL will be used." },
- "contentType": { "index": 2, "kind": "property", "displayName": "Content
Type", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "audio\/wav", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The audio format (MIME
type). Default is audio\/wav. Su [...]
+ "configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "producer", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "The
shared configuration of the endpoints. Each endpoint starts from a copy of it,
and its endpoint options override the values." },
+ "serviceUrl": { "index": 1, "kind": "property", "displayName": "Service
Url", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The URL of the Speech to
Text service instance, for example https:\/\/api.eu-de.speech-to-t [...]
+ "contentType": { "index": 2, "kind": "property", "displayName": "Content
Type", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "audio\/wav", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The format (MIME type)
of the audio for recognize, for [...]
"lazyStartProducer": { "index": 3, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
- "model": { "index": 4, "kind": "property", "displayName": "Model",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "en-US_BroadbandModel", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The language model to
use for recognition. Default is en-U [...]
- "operation": { "index": 5, "kind": "property", "displayName": "Operation",
"group": "producer", "label": "producer", "required": false, "type": "enum",
"javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations",
"enum": [ "recognize", "listModels", "getModel", "listCustomModels",
"getCustomModel" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"con [...]
- "speakerLabels": { "index": 6, "kind": "property", "displayName": "Speaker
Labels", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to identify
different speakers in the audio. Default is fa [...]
- "timestamps": { "index": 7, "kind": "property", "displayName":
"Timestamps", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to include
timestamps for each word in the transcription. Default [...]
- "wordConfidence": { "index": 8, "kind": "property", "displayName": "Word
Confidence", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to include
confidence scores for each word. Default is f [...]
+ "model": { "index": 4, "kind": "property", "displayName": "Model",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "en-US_BroadbandModel", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The speech model that
recognize uses, for example en-US_Mu [...]
+ "operation": { "index": 5, "kind": "property", "displayName": "Operation",
"group": "producer", "label": "producer", "required": false, "type": "enum",
"javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations",
"enum": [ "recognize", "listModels", "getModel", "listCustomModels",
"getCustomModel" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"con [...]
+ "speakerLabels": { "index": 6, "kind": "property", "displayName": "Speaker
Labels", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns labels that identify which speaker spoke [...]
+ "timestamps": { "index": 7, "kind": "property", "displayName":
"Timestamps", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns the start and end time of each word, in seconds [...]
+ "wordConfidence": { "index": 8, "kind": "property", "displayName": "Word
Confidence", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns a confidence score from 0.0 to 1.0 for [...]
"autowiredEnabled": { "index": 9, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
"healthCheckConsumerEnabled": { "index": 10, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
"healthCheckProducerEnabled": { "index": 11, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on produce [...]
- "apiKey": { "index": 12, "kind": "property", "displayName": "Api Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The IBM Cloud API key
for authentication" }
+ "apiKey": { "index": 12, "kind": "property", "displayName": "Api Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The IBM Cloud API key of
the Speech to Text service instance. The client g [...]
},
"headers": {
- "CamelIBMWatsonSTTOperation": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operation to perform", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#OPERATION"
},
- "CamelIBMWatsonSTTAudioFile": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.io.File", "deprecated": false, "autowired": false, "secret":
false, "description": "The audio file to transcribe", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#AUDIO_FILE"
},
- "CamelIBMWatsonSTTModel": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
language model to use for recognition", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#MODEL" },
- "CamelIBMWatsonSTTContentType": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The audio format (e.g., audio\/wav, audio\/mp3, audio\/flac)",
"constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#CONTENT_TYPE"
},
- "CamelIBMWatsonSTTTimestamps": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether to include timestamps in the transcription",
"constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#TIMESTAMPS"
},
- "CamelIBMWatsonSTTWordConfidence": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether to include word confidence scores",
"constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#WORD_CONFIDENCE"
},
- "CamelIBMWatsonSTTSpeakerLabels": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether to identify different speakers", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#SPEAKER_LABELS"
},
- "CamelIBMWatsonSTTModelName": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the model to retrieve", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#MODEL_NAME"
},
- "CamelIBMWatsonSTTLanguage": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The language for filtering models", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#LANGUAGE"
},
- "CamelIBMWatsonSTTTranscript": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The transcription result text", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#TRANSCRIPT"
}
+ "CamelIBMWatsonSTTOperation": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operation that the producer performs. It replaces the
operation option.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#OPERATION"
},
+ "CamelIBMWatsonSTTAudioFile": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.io.File", "deprecated": false, "autowired": false, "secret":
false, "description": "The audio file that recognize transcribes. If set, the
producer sends this file instead of the message body.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#AUDIO_FILE"
},
+ "CamelIBMWatsonSTTModel": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
speech model that recognize uses. It replaces the model option. The producer
sets it on the result to the model it used.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#MODEL" },
+ "CamelIBMWatsonSTTContentType": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The format (MIME type) of the audio for recognize. It replaces
the contentType option. The producer sets it on the result to the format it
sent.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#CONTENT_TYPE"
},
+ "CamelIBMWatsonSTTTimestamps": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether recognize returns the start and end time of each
word. It replaces the timestamps option.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#TIMESTAMPS"
},
+ "CamelIBMWatsonSTTWordConfidence": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether recognize returns a confidence score for each
word. It replaces the wordConfidence option.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#WORD_CONFIDENCE"
},
+ "CamelIBMWatsonSTTSpeakerLabels": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Whether recognize returns labels that identify the
speaker of each word. It replaces the speakerLabels option.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#SPEAKER_LABELS"
},
+ "CamelIBMWatsonSTTModelName": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the speech model for getModel, or the customization
ID of the custom language model for getCustomModel. If not set, the producer
reads it from the message body.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConsta [...]
+ "CamelIBMWatsonSTTLanguage": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The language for listCustomModels, for example en-US, to list
only the custom language models of that language. If not set, all custom
language models of the service instance are listed.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeec [...]
+ "CamelIBMWatsonSTTTranscript": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The transcript that recognize sets: the text of the first
alternative of each result, joined in order.", "constantName":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConstants#TRANSCRIPT"
}
},
"bodyTypes": {
"producerIn": { "carriers": [ "bytes", "stream", "file" ], "byOption": [ {
"option": "operation", "value": "listModels", "carriers": [ "any" ] }, {
"option": "operation", "value": "getModel", "carriers": [ "text" ] }, {
"option": "operation", "value": "listCustomModels", "carriers": [ "any" ] }, {
"option": "operation", "value": "getCustomModel", "carriers": [ "text" ] } ],
"description": "The audio to recognize in the format of contentType (audio\/wav
by default), as bytes, a stream [...]
"producerOut": { "carriers": [ "pojo" ], "javaType":
"com.ibm.watson.speech_to_text.v1.model.SpeechRecognitionResults", "byOption":
[ { "option": "operation", "value": "listModels", "carriers": [ "list" ] }, {
"option": "operation", "value": "getModel", "carriers": [ "pojo" ], "javaType":
"com.ibm.watson.speech_to_text.v1.model.SpeechModel" }, { "option":
"operation", "value": "listCustomModels", "carriers": [ "list" ] }, { "option":
"operation", "value": "getCustomModel", "carriers" [...]
},
"properties": {
- "label": { "index": 0, "kind": "path", "displayName": "Label", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "Logical name" },
- "serviceUrl": { "index": 1, "kind": "parameter", "displayName": "Service
Url", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The service endpoint
URL. If not specified, the default URL will be used." },
- "contentType": { "index": 2, "kind": "parameter", "displayName": "Content
Type", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "audio\/wav", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The audio format (MIME
type). Default is audio\/wav. S [...]
- "model": { "index": 3, "kind": "parameter", "displayName": "Model",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "en-US_BroadbandModel", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The language model to
use for recognition. Default is en- [...]
- "operation": { "index": 4, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations",
"enum": [ "recognize", "listModels", "getModel", "listCustomModels",
"getCustomModel" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"co [...]
- "speakerLabels": { "index": 5, "kind": "parameter", "displayName":
"Speaker Labels", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to identify
different speakers in the audio. Default is f [...]
- "timestamps": { "index": 6, "kind": "parameter", "displayName":
"Timestamps", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to include
timestamps for each word in the transcription. Defaul [...]
- "wordConfidence": { "index": 7, "kind": "parameter", "displayName": "Word
Confidence", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether to include
confidence scores for each word. Default is [...]
+ "label": { "index": 0, "kind": "path", "displayName": "Label", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "A logical name for the endpoint, for example to tell endpoints
apart. The component does not use it." },
+ "serviceUrl": { "index": 1, "kind": "parameter", "displayName": "Service
Url", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The URL of the Speech to
Text service instance, for example https:\/\/api.eu-de.speech-to- [...]
+ "contentType": { "index": 2, "kind": "parameter", "displayName": "Content
Type", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "audio\/wav", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The format (MIME type)
of the audio for recognize, for [...]
+ "model": { "index": 3, "kind": "parameter", "displayName": "Model",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "en-US_BroadbandModel", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The speech model that
recognize uses, for example en-US_M [...]
+ "operation": { "index": 4, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations",
"enum": [ "recognize", "listModels", "getModel", "listCustomModels",
"getCustomModel" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"co [...]
+ "speakerLabels": { "index": 5, "kind": "parameter", "displayName":
"Speaker Labels", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns labels that identify which speaker spok [...]
+ "timestamps": { "index": 6, "kind": "parameter", "displayName":
"Timestamps", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns the start and end time of each word, in second [...]
+ "wordConfidence": { "index": 7, "kind": "parameter", "displayName": "Word
Confidence", "group": "producer", "label": "producer", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "Whether recognize
returns a confidence score from 0.0 to 1.0 fo [...]
"lazyStartProducer": { "index": 8, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
- "apiKey": { "index": 9, "kind": "parameter", "displayName": "Api Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The IBM Cloud API key
for authentication" }
+ "apiKey": { "index": 9, "kind": "parameter", "displayName": "Api Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration",
"configurationField": "configuration", "description": "The IBM Cloud API key of
the Speech to Text service instance. The client g [...]
}
}
diff --git
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/docs/ibm-watson-speech-to-text-component.adoc
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/docs/ibm-watson-speech-to-text-component.adoc
index b8dbfb5af0e6..26849a91c80f 100644
---
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/docs/ibm-watson-speech-to-text-component.adoc
+++
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/docs/ibm-watson-speech-to-text-component.adoc
@@ -2,7 +2,7 @@
:doctitle: IBM Watson Speech to Text
:shortname: ibm-watson-speech-to-text
:artifactid: camel-ibm-watson-speech-to-text
-:description: Convert speech audio to text using IBM Watson Speech to Text
+:description: Transcribe audio to text with IBM Watson Speech to Text, and
list or get its speech models and custom language models.
:since: 4.17
:supportlevel: Stable
:tabs-sync-option:
@@ -610,4 +610,3 @@ Maven users will need to add the following dependency to
their `pom.xml`.
----
where `x.x.x` is the version number of Camel.
-
diff --git
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextComponent.java
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextComponent.java
index d9e847f45fcc..fada7540f28e 100644
---
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextComponent.java
+++
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextComponent.java
@@ -26,7 +26,8 @@ import org.apache.camel.support.HealthCheckComponent;
@Component("ibm-watson-speech-to-text")
public class WatsonSpeechToTextComponent extends HealthCheckComponent {
- @Metadata
+ @Metadata(description = "The shared configuration of the endpoints. Each
endpoint starts from a copy of it, and"
+ + " its endpoint options override the values.")
private WatsonSpeechToTextConfiguration configuration = new
WatsonSpeechToTextConfiguration();
public WatsonSpeechToTextComponent() {
@@ -47,9 +48,6 @@ public class WatsonSpeechToTextComponent extends
HealthCheckComponent {
return configuration;
}
- /**
- * Component configuration
- */
public void setConfiguration(WatsonSpeechToTextConfiguration
configuration) {
this.configuration = configuration;
}
diff --git
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextConfiguration.java
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextConfiguration.java
index 710a9d3df8ef..e1885c87a170 100644
---
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextConfiguration.java
+++
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextConfiguration.java
@@ -24,38 +24,60 @@ import org.apache.camel.spi.UriParams;
@UriParams
public class WatsonSpeechToTextConfiguration implements Cloneable {
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "The IBM Cloud API key of the Speech to Text
service instance. The client gets IAM access tokens"
+ + " with it. The endpoint fails to start without
it.")
@Metadata(required = true)
private String apiKey;
- @UriParam(label = "common")
+ @UriParam(label = "common",
+ description = "The URL of the Speech to Text service instance,
for example"
+ + "
https://api.eu-de.speech-to-text.watson.cloud.ibm.com. If not set, the IBM
Watson SDK uses"
+ + "
https://api.us-south.speech-to-text.watson.cloud.ibm.com, unless its external
configuration,"
+ + " such as the SPEECH_TO_TEXT_URL environment
variable, gives a URL.")
private String serviceUrl;
- @UriParam(label = "producer")
+ @UriParam(label = "producer",
+ description = "The operation that the producer performs:
recognize transcribes audio, listModels and getModel"
+ + " return the speech models, and listCustomModels
and getCustomModel the custom language models."
+ + " The CamelIBMWatsonSTTOperation header replaces
this option, and the producer fails if neither"
+ + " is set.")
private WatsonSpeechToTextOperations operation;
- @UriParam(label = "producer", defaultValue = "en-US_BroadbandModel")
+ @UriParam(label = "producer", defaultValue = "en-US_BroadbandModel",
+ description = "The speech model that recognize uses, for example
en-US_Multimedia or en-GB_Telephony. The"
+ + " sampling rate of the audio must be at least 16
kHz for a broadband or multimedia model and"
+ + " 8 kHz for a narrowband or telephony model. The
CamelIBMWatsonSTTModel header replaces this"
+ + " option.")
private String model = "en-US_BroadbandModel";
- @UriParam(label = "producer", defaultValue = "audio/wav")
+ @UriParam(label = "producer", defaultValue = "audio/wav",
+ description = "The format (MIME type) of the audio for
recognize, for example audio/wav, audio/flac, audio/mp3,"
+ + " audio/ogg or audio/webm. audio/l16, audio/alaw
and audio/mulaw also need the sampling rate, as in"
+ + " audio/l16;rate=16000, and
application/octet-stream lets the service detect the format. The"
+ + " CamelIBMWatsonSTTContentType header replaces
this option.")
private String contentType = "audio/wav";
- @UriParam(label = "producer", defaultValue = "false")
+ @UriParam(label = "producer", defaultValue = "false",
+ description = "Whether recognize returns the start and end time
of each word, in seconds. The"
+ + " CamelIBMWatsonSTTTimestamps header replaces
this option.")
private boolean timestamps = false;
- @UriParam(label = "producer", defaultValue = "false")
+ @UriParam(label = "producer", defaultValue = "false",
+ description = "Whether recognize returns a confidence score from
0.0 to 1.0 for each word. The"
+ + " CamelIBMWatsonSTTWordConfidence header
replaces this option.")
private boolean wordConfidence = false;
- @UriParam(label = "producer", defaultValue = "false")
+ @UriParam(label = "producer", defaultValue = "false",
+ description = "Whether recognize returns labels that identify
which speaker spoke which words. The service"
+ + " then also returns the timestamps of the words,
whatever the timestamps option is. The"
+ + " CamelIBMWatsonSTTSpeakerLabels header replaces
this option.")
private boolean speakerLabels = false;
public String getApiKey() {
return apiKey;
}
- /**
- * The IBM Cloud API key for authentication
- */
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
@@ -64,9 +86,6 @@ public class WatsonSpeechToTextConfiguration implements
Cloneable {
return serviceUrl;
}
- /**
- * The service endpoint URL. If not specified, the default URL will be
used.
- */
public void setServiceUrl(String serviceUrl) {
this.serviceUrl = serviceUrl;
}
@@ -75,9 +94,6 @@ public class WatsonSpeechToTextConfiguration implements
Cloneable {
return operation;
}
- /**
- * The operation to perform
- */
public void setOperation(WatsonSpeechToTextOperations operation) {
this.operation = operation;
}
@@ -86,10 +102,6 @@ public class WatsonSpeechToTextConfiguration implements
Cloneable {
return 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
- */
public void setModel(String model) {
this.model = model;
}
@@ -98,10 +110,6 @@ public class WatsonSpeechToTextConfiguration implements
Cloneable {
return contentType;
}
- /**
- * The audio format (MIME type). Default is audio/wav. Supported formats:
audio/wav, audio/mp3, audio/flac,
- * audio/ogg, audio/webm
- */
public void setContentType(String contentType) {
this.contentType = contentType;
}
@@ -110,9 +118,6 @@ public class WatsonSpeechToTextConfiguration implements
Cloneable {
return timestamps;
}
- /**
- * Whether to include timestamps for each word in the transcription.
Default is false.
- */
public void setTimestamps(boolean timestamps) {
this.timestamps = timestamps;
}
@@ -121,9 +126,6 @@ public class WatsonSpeechToTextConfiguration implements
Cloneable {
return wordConfidence;
}
- /**
- * Whether to include confidence scores for each word. Default is false.
- */
public void setWordConfidence(boolean wordConfidence) {
this.wordConfidence = wordConfidence;
}
@@ -132,9 +134,6 @@ public class WatsonSpeechToTextConfiguration implements
Cloneable {
return speakerLabels;
}
- /**
- * Whether to identify different speakers in the audio. Default is false.
- */
public void setSpeakerLabels(boolean speakerLabels) {
this.speakerLabels = speakerLabels;
}
diff --git
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextConstants.java
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextConstants.java
index 27c184cd81a3..cdba46b8174a 100644
---
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextConstants.java
+++
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextConstants.java
@@ -23,30 +23,48 @@ import org.apache.camel.spi.Metadata;
*/
public interface WatsonSpeechToTextConstants {
- @Metadata(description = "The operation to perform", javaType = "String")
+ @Metadata(description = "The operation that the producer performs. It
replaces the operation option.", javaType = "String")
String OPERATION = "CamelIBMWatsonSTTOperation";
// Recognition headers
- @Metadata(description = "The audio file to transcribe", javaType =
"java.io.File")
+ @Metadata(description = "The audio file that recognize transcribes. If
set, the producer sends this file instead of the"
+ + " message body.",
+ javaType = "java.io.File")
String AUDIO_FILE = "CamelIBMWatsonSTTAudioFile";
- @Metadata(description = "The language model to use for recognition",
javaType = "String")
+ @Metadata(description = "The speech model that recognize uses. It replaces
the model option. The producer sets it on"
+ + " the result to the model it used.",
+ javaType = "String")
String MODEL = "CamelIBMWatsonSTTModel";
- @Metadata(description = "The audio format (e.g., audio/wav, audio/mp3,
audio/flac)", javaType = "String")
+ @Metadata(description = "The format (MIME type) of the audio for
recognize. It replaces the contentType option. The"
+ + " producer sets it on the result to the format
it sent.",
+ javaType = "String")
String CONTENT_TYPE = "CamelIBMWatsonSTTContentType";
- @Metadata(description = "Whether to include timestamps in the
transcription", javaType = "Boolean")
+ @Metadata(description = "Whether recognize returns the start and end time
of each word. It replaces the timestamps"
+ + " option.",
+ javaType = "Boolean")
String TIMESTAMPS = "CamelIBMWatsonSTTTimestamps";
- @Metadata(description = "Whether to include word confidence scores",
javaType = "Boolean")
+ @Metadata(description = "Whether recognize returns a confidence score for
each word. It replaces the wordConfidence"
+ + " option.",
+ javaType = "Boolean")
String WORD_CONFIDENCE = "CamelIBMWatsonSTTWordConfidence";
- @Metadata(description = "Whether to identify different speakers", javaType
= "Boolean")
+ @Metadata(description = "Whether recognize returns labels that identify
the speaker of each word. It replaces the"
+ + " speakerLabels option.",
+ javaType = "Boolean")
String SPEAKER_LABELS = "CamelIBMWatsonSTTSpeakerLabels";
// Model headers
- @Metadata(description = "The name of the model to retrieve", javaType =
"String")
+ @Metadata(description = "The name of the speech model for getModel, or the
customization ID of the custom language"
+ + " model for getCustomModel. If not set, the
producer reads it from the message body.",
+ javaType = "String")
String MODEL_NAME = "CamelIBMWatsonSTTModelName";
- @Metadata(description = "The language for filtering models", javaType =
"String")
+ @Metadata(description = "The language for listCustomModels, for example
en-US, to list only the custom language models"
+ + " of that language. If not set, all custom
language models of the service instance are listed.",
+ javaType = "String")
String LANGUAGE = "CamelIBMWatsonSTTLanguage";
// Output headers
- @Metadata(description = "The transcription result text", javaType =
"String")
+ @Metadata(description = "The transcript that recognize sets: the text of
the first alternative of each result, joined"
+ + " in order.",
+ javaType = "String")
String TRANSCRIPT = "CamelIBMWatsonSTTTranscript";
}
diff --git
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextEndpoint.java
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextEndpoint.java
index 4fe829b6a456..01c6f8f4cfde 100644
---
a/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextEndpoint.java
+++
b/components/camel-ibm/camel-ibm-watson-speech-to-text/src/main/java/org/apache/camel/component/ibm/watson/stt/WatsonSpeechToTextEndpoint.java
@@ -33,7 +33,8 @@ import org.apache.camel.spi.UriPath;
import org.apache.camel.support.DefaultEndpoint;
/**
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or get
its speech models and custom language
+ * models.
*/
@UriEndpoint(firstVersion = "4.17.0", scheme = "ibm-watson-speech-to-text",
title = "IBM Watson Speech to Text",
syntax = "ibm-watson-speech-to-text:label", producerOnly = true,
category = { Category.AI, Category.CLOUD },
@@ -68,7 +69,8 @@ import org.apache.camel.support.DefaultEndpoint;
+ " and listCustomModels a
List of LanguageModel"))
public class WatsonSpeechToTextEndpoint extends DefaultEndpoint implements
EndpointServiceLocation {
- @UriPath(description = "Logical name")
+ @UriPath(description = "A logical name for the endpoint, for example to
tell endpoints apart. The component does not"
+ + " use it.")
@Metadata(required = true)
private String label;
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index bf8799ea0166..c086047c8f52 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -2635,7 +2635,8 @@ public interface ComponentsBuilderFactory {
}
/**
* IBM Watson Speech to Text (camel-ibm-watson-speech-to-text)
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or get
+ * its speech models and custom language models.
*
* Category: ai,cloud
* Since: 4.17
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonSpeechToTextComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonSpeechToTextComponentBuilderFactory.java
index c56eabacc275..05c0871c7302 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonSpeechToTextComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonSpeechToTextComponentBuilderFactory.java
@@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextComponent;
/**
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or get its
+ * speech models and custom language models.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -33,7 +34,8 @@ public interface IbmWatsonSpeechToTextComponentBuilderFactory
{
/**
* IBM Watson Speech to Text (camel-ibm-watson-speech-to-text)
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or get
+ * its speech models and custom language models.
*
* Category: ai,cloud
* Since: 4.17
@@ -51,7 +53,8 @@ public interface IbmWatsonSpeechToTextComponentBuilderFactory
{
interface IbmWatsonSpeechToTextComponentBuilder extends
ComponentBuilder<WatsonSpeechToTextComponent> {
/**
- * Component configuration.
+ * The shared configuration of the endpoints. Each endpoint starts from
+ * a copy of it, and its endpoint options override the values.
*
* The option is a:
*
<code>org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextConfiguration</code>
type.
@@ -67,8 +70,12 @@ public interface
IbmWatsonSpeechToTextComponentBuilderFactory {
}
/**
- * The service endpoint URL. If not specified, the default URL will be
- * used.
+ * The URL of the Speech to Text service instance, for example
+ * https://api.eu-de.speech-to-text.watson.cloud.ibm.com. If not set,
+ * the IBM Watson SDK uses
+ * https://api.us-south.speech-to-text.watson.cloud.ibm.com, unless its
+ * external configuration, such as the SPEECH_TO_TEXT_URL environment
+ * variable, gives a URL.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -84,8 +91,12 @@ public interface
IbmWatsonSpeechToTextComponentBuilderFactory {
/**
- * The audio format (MIME type). Default is audio/wav. Supported
- * formats: audio/wav, audio/mp3, audio/flac, audio/ogg, audio/webm.
+ * The format (MIME type) of the audio for recognize, for example
+ * audio/wav, audio/flac, audio/mp3, audio/ogg or audio/webm.
audio/l16,
+ * audio/alaw and audio/mulaw also need the sampling rate, as in
+ * audio/l16;rate=16000, and application/octet-stream lets the service
+ * detect the format. The CamelIBMWatsonSTTContentType header replaces
+ * this option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -127,9 +138,11 @@ public interface
IbmWatsonSpeechToTextComponentBuilderFactory {
/**
- * 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 speech model that recognize uses, for example en-US_Multimedia
or
+ * en-GB_Telephony. The sampling rate of the audio must be at least 16
+ * kHz for a broadband or multimedia model and 8 kHz for a narrowband
or
+ * telephony model. The CamelIBMWatsonSTTModel header replaces this
+ * option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -145,7 +158,11 @@ public interface
IbmWatsonSpeechToTextComponentBuilderFactory {
}
/**
- * The operation to perform.
+ * The operation that the producer performs: recognize transcribes
+ * audio, listModels and getModel return the speech models, and
+ * listCustomModels and getCustomModel the custom language models. The
+ * CamelIBMWatsonSTTOperation header replaces this option, and the
+ * producer fails if neither is set.
*
* The option is a:
*
<code>org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations</code>
type.
@@ -162,8 +179,10 @@ public interface
IbmWatsonSpeechToTextComponentBuilderFactory {
/**
- * Whether to identify different speakers in the audio. Default is
- * false.
+ * Whether recognize returns labels that identify which speaker spoke
+ * which words. The service then also returns the timestamps of the
+ * words, whatever the timestamps option is. The
+ * CamelIBMWatsonSTTSpeakerLabels header replaces this option.
*
* The option is a: <code>boolean</code> type.
*
@@ -180,8 +199,8 @@ public interface
IbmWatsonSpeechToTextComponentBuilderFactory {
/**
- * Whether to include timestamps for each word in the transcription.
- * Default is false.
+ * Whether recognize returns the start and end time of each word, in
+ * seconds. The CamelIBMWatsonSTTTimestamps header replaces this
option.
*
* The option is a: <code>boolean</code> type.
*
@@ -198,7 +217,9 @@ public interface
IbmWatsonSpeechToTextComponentBuilderFactory {
/**
- * Whether to include confidence scores for each word. Default is
false.
+ * Whether recognize returns a confidence score from 0.0 to 1.0 for
each
+ * word. The CamelIBMWatsonSTTWordConfidence header replaces this
+ * option.
*
* The option is a: <code>boolean</code> type.
*
@@ -274,7 +295,9 @@ public interface
IbmWatsonSpeechToTextComponentBuilderFactory {
}
/**
- * The IBM Cloud API key for authentication.
+ * The IBM Cloud API key of the Speech to Text service instance. The
+ * client gets IAM access tokens with it. The endpoint fails to start
+ * without it.
*
* The option is a: <code>java.lang.String</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 1ee9d8e1b817..fe2235220996 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -2066,7 +2066,8 @@ public class EndpointHeaderBuilders {
}
/**
* IBM Watson Speech to Text (camel-ibm-watson-speech-to-text)
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or get
+ * its speech models and custom language models.
*
* Category: ai,cloud
* Since: 4.17
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 0caa77cf2870..53a512ce8c59 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -8646,7 +8646,8 @@ public class StaticEndpointBuilders {
}
/**
* IBM Watson Speech to Text (camel-ibm-watson-speech-to-text)
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or get
+ * its speech models and custom language models.
*
* Category: ai,cloud
* Since: 4.17
@@ -8655,7 +8656,8 @@ public class StaticEndpointBuilders {
* Syntax: <code>ibm-watson-speech-to-text:label</code>
*
* Path parameter: label (required)
- * Logical name
+ * A logical name for the endpoint, for example to tell endpoints apart.
The
+ * component does not use it.
*
* @param path label
* @return the dsl builder
@@ -8665,7 +8667,8 @@ public class StaticEndpointBuilders {
}
/**
* IBM Watson Speech to Text (camel-ibm-watson-speech-to-text)
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or get
+ * its speech models and custom language models.
*
* Category: ai,cloud
* Since: 4.17
@@ -8674,7 +8677,8 @@ public class StaticEndpointBuilders {
* Syntax: <code>ibm-watson-speech-to-text:label</code>
*
* Path parameter: label (required)
- * Logical name
+ * A logical name for the endpoint, for example to tell endpoints apart.
The
+ * component does not use it.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonSpeechToTextEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonSpeechToTextEndpointBuilderFactory.java
index a8c7390608c6..98366712d8a2 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonSpeechToTextEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonSpeechToTextEndpointBuilderFactory.java
@@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or get its
+ * speech models and custom language models.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -45,8 +46,12 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
}
/**
- * The service endpoint URL. If not specified, the default URL will be
- * used.
+ * The URL of the Speech to Text service instance, for example
+ * https://api.eu-de.speech-to-text.watson.cloud.ibm.com. If not set,
+ * the IBM Watson SDK uses
+ * https://api.us-south.speech-to-text.watson.cloud.ibm.com, unless its
+ * external configuration, such as the SPEECH_TO_TEXT_URL environment
+ * variable, gives a URL.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -60,8 +65,12 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * The audio format (MIME type). Default is audio/wav. Supported
- * formats: audio/wav, audio/mp3, audio/flac, audio/ogg, audio/webm.
+ * The format (MIME type) of the audio for recognize, for example
+ * audio/wav, audio/flac, audio/mp3, audio/ogg or audio/webm.
audio/l16,
+ * audio/alaw and audio/mulaw also need the sampling rate, as in
+ * audio/l16;rate=16000, and application/octet-stream lets the service
+ * detect the format. The CamelIBMWatsonSTTContentType header replaces
+ * this option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -76,9 +85,11 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * 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 speech model that recognize uses, for example en-US_Multimedia
or
+ * en-GB_Telephony. The sampling rate of the audio must be at least 16
+ * kHz for a broadband or multimedia model and 8 kHz for a narrowband
or
+ * telephony model. The CamelIBMWatsonSTTModel header replaces this
+ * option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -93,7 +104,11 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * The operation to perform.
+ * The operation that the producer performs: recognize transcribes
+ * audio, listModels and getModel return the speech models, and
+ * listCustomModels and getCustomModel the custom language models. The
+ * CamelIBMWatsonSTTOperation header replaces this option, and the
+ * producer fails if neither is set.
*
* The option is a:
*
<code>org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations</code>
type.
@@ -108,7 +123,11 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * The operation to perform.
+ * The operation that the producer performs: recognize transcribes
+ * audio, listModels and getModel return the speech models, and
+ * listCustomModels and getCustomModel the custom language models. The
+ * CamelIBMWatsonSTTOperation header replaces this option, and the
+ * producer fails if neither is set.
*
* The option will be converted to a
*
<code>org.apache.camel.component.ibm.watson.stt.WatsonSpeechToTextOperations</code>
type.
@@ -123,8 +142,10 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * Whether to identify different speakers in the audio. Default is
- * false.
+ * Whether recognize returns labels that identify which speaker spoke
+ * which words. The service then also returns the timestamps of the
+ * words, whatever the timestamps option is. The
+ * CamelIBMWatsonSTTSpeakerLabels header replaces this option.
*
* The option is a: <code>boolean</code> type.
*
@@ -139,8 +160,10 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * Whether to identify different speakers in the audio. Default is
- * false.
+ * Whether recognize returns labels that identify which speaker spoke
+ * which words. The service then also returns the timestamps of the
+ * words, whatever the timestamps option is. The
+ * CamelIBMWatsonSTTSpeakerLabels header replaces this option.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -155,8 +178,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * Whether to include timestamps for each word in the transcription.
- * Default is false.
+ * Whether recognize returns the start and end time of each word, in
+ * seconds. The CamelIBMWatsonSTTTimestamps header replaces this
option.
*
* The option is a: <code>boolean</code> type.
*
@@ -171,8 +194,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * Whether to include timestamps for each word in the transcription.
- * Default is false.
+ * Whether recognize returns the start and end time of each word, in
+ * seconds. The CamelIBMWatsonSTTTimestamps header replaces this
option.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -187,7 +210,9 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * Whether to include confidence scores for each word. Default is
false.
+ * Whether recognize returns a confidence score from 0.0 to 1.0 for
each
+ * word. The CamelIBMWatsonSTTWordConfidence header replaces this
+ * option.
*
* The option is a: <code>boolean</code> type.
*
@@ -202,7 +227,9 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * Whether to include confidence scores for each word. Default is
false.
+ * Whether recognize returns a confidence score from 0.0 to 1.0 for
each
+ * word. The CamelIBMWatsonSTTWordConfidence header replaces this
+ * option.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -217,7 +244,9 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return this;
}
/**
- * The IBM Cloud API key for authentication.
+ * The IBM Cloud API key of the Speech to Text service instance. The
+ * client gets IAM access tokens with it. The endpoint fails to start
+ * without it.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -294,7 +323,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
public interface WatsonSpeechToTextBuilders {
/**
* IBM Watson Speech to Text (camel-ibm-watson-speech-to-text)
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or
+ * get its speech models and custom language models.
*
* Category: ai,cloud
* Since: 4.17
@@ -307,7 +337,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
}
/**
* IBM Watson Speech to Text (camel-ibm-watson-speech-to-text)
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or
+ * get its speech models and custom language models.
*
* Category: ai,cloud
* Since: 4.17
@@ -316,7 +347,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
* Syntax: <code>ibm-watson-speech-to-text:label</code>
*
* Path parameter: label (required)
- * Logical name
+ * A logical name for the endpoint, for example to tell endpoints
apart.
+ * The component does not use it.
*
* @param path label
* @return the dsl builder
@@ -326,7 +358,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
}
/**
* IBM Watson Speech to Text (camel-ibm-watson-speech-to-text)
- * Convert speech audio to text using IBM Watson Speech to Text
+ * Transcribe audio to text with IBM Watson Speech to Text, and list or
+ * get its speech models and custom language models.
*
* Category: ai,cloud
* Since: 4.17
@@ -335,7 +368,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
* Syntax: <code>ibm-watson-speech-to-text:label</code>
*
* Path parameter: label (required)
- * Logical name
+ * A logical name for the endpoint, for example to tell endpoints
apart.
+ * The component does not use it.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
@@ -358,7 +392,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
public static final WatsonSpeechToTextHeaderNameBuilder INSTANCE = new
WatsonSpeechToTextHeaderNameBuilder();
/**
- * The operation to perform.
+ * The operation that the producer performs. It replaces the operation
+ * option.
*
* The option is a: {@code String} type.
*
@@ -370,7 +405,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return "CamelIBMWatsonSTTOperation";
}
/**
- * The audio file to transcribe.
+ * The audio file that recognize transcribes. If set, the producer
sends
+ * this file instead of the message body.
*
* The option is a: {@code java.io.File} type.
*
@@ -382,7 +418,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return "CamelIBMWatsonSTTAudioFile";
}
/**
- * The language model to use for recognition.
+ * The speech model that recognize uses. It replaces the model option.
+ * The producer sets it on the result to the model it used.
*
* The option is a: {@code String} type.
*
@@ -394,7 +431,9 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return "CamelIBMWatsonSTTModel";
}
/**
- * The audio format (e.g., audio/wav, audio/mp3, audio/flac).
+ * The format (MIME type) of the audio for recognize. It replaces the
+ * contentType option. The producer sets it on the result to the format
+ * it sent.
*
* The option is a: {@code String} type.
*
@@ -406,7 +445,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return "CamelIBMWatsonSTTContentType";
}
/**
- * Whether to include timestamps in the transcription.
+ * Whether recognize returns the start and end time of each word. It
+ * replaces the timestamps option.
*
* The option is a: {@code Boolean} type.
*
@@ -418,7 +458,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return "CamelIBMWatsonSTTTimestamps";
}
/**
- * Whether to include word confidence scores.
+ * Whether recognize returns a confidence score for each word. It
+ * replaces the wordConfidence option.
*
* The option is a: {@code Boolean} type.
*
@@ -430,7 +471,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return "CamelIBMWatsonSTTWordConfidence";
}
/**
- * Whether to identify different speakers.
+ * Whether recognize returns labels that identify the speaker of each
+ * word. It replaces the speakerLabels option.
*
* The option is a: {@code Boolean} type.
*
@@ -442,7 +484,9 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return "CamelIBMWatsonSTTSpeakerLabels";
}
/**
- * The name of the model to retrieve.
+ * The name of the speech model for getModel, or the customization ID
of
+ * the custom language model for getCustomModel. If not set, the
+ * producer reads it from the message body.
*
* The option is a: {@code String} type.
*
@@ -454,7 +498,9 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return "CamelIBMWatsonSTTModelName";
}
/**
- * The language for filtering models.
+ * The language for listCustomModels, for example en-US, to list only
+ * the custom language models of that language. If not set, all custom
+ * language models of the service instance are listed.
*
* The option is a: {@code String} type.
*
@@ -466,7 +512,8 @@ public interface WatsonSpeechToTextEndpointBuilderFactory {
return "CamelIBMWatsonSTTLanguage";
}
/**
- * The transcription result text.
+ * The transcript that recognize sets: the text of the first
alternative
+ * of each result, joined in order.
*
* The option is a: {@code String} type.
*
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index a3ec323d0151..456ce9f86a48 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -216,7 +216,7 @@ or removes its row.
| camel-ibm-secrets-manager | ibm-secrets-manager | |
| camel-ibm-watson-discovery | ibm-watson-discovery | |
| camel-ibm-watson-language | ibm-watson-language | |
-| camel-ibm-watson-speech-to-text | ibm-watson-speech-to-text | |
+| camel-ibm-watson-speech-to-text | ibm-watson-speech-to-text | yes |
| camel-ibm-watson-text-to-speech | ibm-watson-text-to-speech | |
| camel-ibm-watsonx-ai | ibm-watsonx-ai | |
| camel-ibm-watsonx-data | ibm-watsonx-data | |