IBM Watson Text to Speech
Synthesize speech from text with IBM Watson Text to Speech, and list or get its voices, custom models and the pronunciation of words.
What’s inside
-
IBM Watson Text to Speech component, URI syntax:
ibm-watson-text-to-speech:label
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-ibm-watson-text-to-speech-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 12 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.ibm-watson-text-to-speech.accept | The audio format (MIME type) that synthesize returns, for example audio/wav, audio/mp3, audio/flac, audio/ogg;codecs=opus or audio/webm. audio/l16, audio/alaw and audio/mulaw also need the sampling rate, as in audio/l16;rate=22050. The CamelIBMWatsonTTSAccept header replaces this option. | audio/wav | String |
camel.component.ibm-watson-text-to-speech.api-key | The IBM Cloud API key of the Text to Speech service instance. The client gets IAM access tokens with it. The endpoint fails to start without it. | String | |
camel.component.ibm-watson-text-to-speech.autowired-enabled | 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 type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.ibm-watson-text-to-speech.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 org.apache.camel.component.ibm.watson.tts.WatsonTextToSpeechConfiguration type. | WatsonTextToSpeechConfiguration | |
camel.component.ibm-watson-text-to-speech.customization-id | The customization ID (a GUID) of the custom model that synthesize uses, which defines custom pronunciations of words. The language of the custom model must match the language of the voice, and the custom model must belong to the service instance of the apiKey. If not set, the voice is used with no customization. The CamelIBMWatsonTTSCustomizationId header replaces this option. | String | |
camel.component.ibm-watson-text-to-speech.enabled | Whether to enable auto configuration of the ibm-watson-text-to-speech component. This is enabled by default. | Boolean | |
camel.component.ibm-watson-text-to-speech.health-check-consumer-enabled | Used for enabling or disabling all consumer based health checks from this component | true | Boolean |
camel.component.ibm-watson-text-to-speech.health-check-producer-enabled | 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 producer checks globally by setting camel.health.producersEnabled=true. | true | Boolean |
camel.component.ibm-watson-text-to-speech.lazy-start-producer | 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 during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.ibm-watson-text-to-speech.operation | The operation that the producer performs: synthesize converts text to audio, listVoices and getVoice return the voices, listCustomModels and getCustomModel the custom models, and getPronunciation the pronunciation of a word. The CamelIBMWatsonTTSOperation header replaces this option, and the producer fails if neither is set. | WatsonTextToSpeechOperations | |
camel.component.ibm-watson-text-to-speech.service-url | The URL of the Text to Speech service instance, for example https://api.eu-de.text-to-speech.watson.cloud.ibm.com. If not set, the IBM Watson SDK uses https://api.us-south.text-to-speech.watson.cloud.ibm.com, unless its external configuration, such as the TEXT_TO_SPEECH_URL environment variable, gives a URL. | String | |
camel.component.ibm-watson-text-to-speech.voice | The voice that synthesize speaks with, for example en-US_AllisonV3Voice, en-GB_KateV3Voice or es-ES_EnriqueV3Voice. Use a voice of the language of the text; listVoices returns the available voices. getPronunciation returns the pronunciation in the language of this voice. The CamelIBMWatsonTTSVoice header replaces this option. | en-US_MichaelV3Voice | String |