Skip to content

Commit f4548f2

Browse files
feat(text-to-speech): generated code
chore(text-to-speech): manual changes chore(text-to-speech): manual changes
1 parent d3de7f1 commit f4548f2

27 files changed

+62
-58
lines changed

text-to-speech/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Installation
44

55
##### Maven
6+
67
```xml
78
<dependency>
89
<groupId>com.ibm.watson</groupId>
@@ -12,11 +13,13 @@
1213
```
1314

1415
##### Gradle
16+
1517
```gradle
1618
'com.ibm.watson:text-to-speech:8.2.1'
1719
```
1820

1921
## Usage
22+
2023
Use the [Text to Speech][text_to_speech] service to get the available voices to synthesize.
2124

2225
```java
@@ -28,7 +31,9 @@ System.out.println(voices);
2831
```
2932

3033
## Usage with WebSockets
34+
3135
The Watson Text to Speech service supports the use of WebSockets as an alternative to the `synthesize()` method, which converts text to speech. Here is an example of using the WebSocket version of the method to get an audio file:
36+
3237
```java
3338
Authenticator authenticator = new IamAuthenticator("<iam_api_key>");
3439
TextToSpeech service = new TextToSpeech(authenticator);
@@ -67,4 +72,4 @@ byteArrayOutputStream.close();
6772
fileOutputStream.close();
6873
```
6974

70-
[text_to_speech]: https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-about
75+
[text_to_speech]: https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-about

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/TextToSpeech.java

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -71,7 +71,7 @@
7171
* Phonetic Representation (SPR).
7272
*
7373
* @version v1
74-
* @see <a href="https://cloud.ibm.com/docs/services/text-to-speech/">Text to Speech</a>
74+
* @see <a href="https://cloud.ibm.com/docs/text-to-speech/">Text to Speech</a>
7575
*/
7676
public class TextToSpeech extends BaseService {
7777

@@ -126,7 +126,7 @@ public TextToSpeech(String serviceName, Authenticator authenticator) {
126126
* details about the voice. To see information about a specific voice, use the **Get a voice** method.
127127
*
128128
* **See also:** [Listing all available
129-
* voices](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-voices#listVoices).
129+
* voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices#listVoices).
130130
*
131131
* @param listVoicesOptions the {@link ListVoicesOptions} containing the options for the call
132132
* @return a {@link ServiceCall} with a response type of {@link Voices}
@@ -155,7 +155,7 @@ public ServiceCall<Voices> listVoices(ListVoicesOptions listVoicesOptions) {
155155
* details about the voice. To see information about a specific voice, use the **Get a voice** method.
156156
*
157157
* **See also:** [Listing all available
158-
* voices](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-voices#listVoices).
158+
* voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices#listVoices).
159159
*
160160
* @return a {@link ServiceCall} with a response type of {@link Voices}
161161
*/
@@ -171,7 +171,7 @@ public ServiceCall<Voices> listVoices() {
171171
* language of the specified voice. To list information about all available voices, use the **List voices** method.
172172
*
173173
* **See also:** [Listing a specific
174-
* voice](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-voices#listVoice).
174+
* voice](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices#listVoice).
175175
*
176176
* @param getVoiceOptions the {@link GetVoiceOptions} containing the options for the call
177177
* @return a {@link ServiceCall} with a response type of {@link Voice}
@@ -208,7 +208,7 @@ public ServiceCall<Voice> getVoice(GetVoiceOptions getVoiceOptions) {
208208
* array of bytes.
209209
*
210210
* **See also:** [The HTTP
211-
* interface](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-usingHTTP#usingHTTP).
211+
* interface](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-usingHTTP#usingHTTP).
212212
*
213213
* ### Audio formats (accept types)
214214
*
@@ -244,7 +244,7 @@ public ServiceCall<Voice> getVoice(GetVoiceOptions getVoiceOptions) {
244244
* 22,050 Hz.
245245
*
246246
* For more information about specifying an audio format, including additional details about some of the formats, see
247-
* [Audio formats](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-audioFormats#audioFormats).
247+
* [Audio formats](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-audioFormats#audioFormats).
248248
*
249249
*
250250
* ### Warning messages
@@ -317,7 +317,7 @@ public WebSocket synthesizeUsingWebSocket(SynthesizeOptions synthesizeOptions, S
317317
*
318318
* **See also:** [Querying a word from a
319319
* language]
320-
* (https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryLanguage).
320+
* (https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryLanguage).
321321
*
322322
* @param getPronunciationOptions the {@link GetPronunciationOptions} containing the options for the call
323323
* @return a {@link ServiceCall} with a response type of {@link Pronunciation}
@@ -359,7 +359,7 @@ public ServiceCall<Pronunciation> getPronunciation(GetPronunciationOptions getPr
359359
* Arabic, Chinese, and Dutch languages.
360360
*
361361
* **See also:** [Creating a custom
362-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsCreate).
362+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsCreate).
363363
*
364364
* @param createVoiceModelOptions the {@link CreateVoiceModelOptions} containing the options for the call
365365
* @return a {@link ServiceCall} with a response type of {@link VoiceModel}
@@ -400,7 +400,7 @@ public ServiceCall<VoiceModel> createVoiceModel(CreateVoiceModelOptions createVo
400400
* **Note:** This method is currently a beta release.
401401
*
402402
* **See also:** [Querying all custom
403-
* models](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsQueryAll).
403+
* models](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsQueryAll).
404404
*
405405
* @param listVoiceModelsOptions the {@link ListVoiceModelsOptions} containing the options for the call
406406
* @return a {@link ServiceCall} with a response type of {@link VoiceModels}
@@ -435,7 +435,7 @@ public ServiceCall<VoiceModels> listVoiceModels(ListVoiceModelsOptions listVoice
435435
* **Note:** This method is currently a beta release.
436436
*
437437
* **See also:** [Querying all custom
438-
* models](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsQueryAll).
438+
* models](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsQueryAll).
439439
*
440440
* @return a {@link ServiceCall} with a response type of {@link VoiceModels}
441441
*/
@@ -466,11 +466,11 @@ public ServiceCall<VoiceModels> listVoiceModels() {
466466
*
467467
* **See also:**
468468
* * [Updating a custom
469-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsUpdate)
469+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsUpdate)
470470
* * [Adding words to a Japanese custom
471-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuJapaneseAdd)
471+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuJapaneseAdd)
472472
* * [Understanding
473-
* customization](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customIntro#customIntro).
473+
* customization](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customIntro#customIntro).
474474
*
475475
* @param updateVoiceModelOptions the {@link UpdateVoiceModelOptions} containing the options for the call
476476
* @return a {@link ServiceCall} with a response type of Void
@@ -513,7 +513,7 @@ public ServiceCall<Void> updateVoiceModel(UpdateVoiceModelOptions updateVoiceMod
513513
* **Note:** This method is currently a beta release.
514514
*
515515
* **See also:** [Querying a custom
516-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsQuery).
516+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsQuery).
517517
*
518518
* @param getVoiceModelOptions the {@link GetVoiceModelOptions} containing the options for the call
519519
* @return a {@link ServiceCall} with a response type of {@link VoiceModel}
@@ -546,7 +546,7 @@ public ServiceCall<VoiceModel> getVoiceModel(GetVoiceModelOptions getVoiceModelO
546546
* **Note:** This method is currently a beta release.
547547
*
548548
* **See also:** [Deleting a custom
549-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsDelete).
549+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsDelete).
550550
*
551551
* @param deleteVoiceModelOptions the {@link DeleteVoiceModelOptions} containing the options for the call
552552
* @return a {@link ServiceCall} with a response type of Void
@@ -589,11 +589,11 @@ public ServiceCall<Void> deleteVoiceModel(DeleteVoiceModelOptions deleteVoiceMod
589589
*
590590
* **See also:**
591591
* * [Adding multiple words to a custom
592-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordsAdd)
592+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordsAdd)
593593
* * [Adding words to a Japanese custom
594-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuJapaneseAdd)
594+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuJapaneseAdd)
595595
* * [Understanding
596-
* customization](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customIntro#customIntro).
596+
* customization](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customIntro#customIntro).
597597
*
598598
* @param addWordsOptions the {@link AddWordsOptions} containing the options for the call
599599
* @return a {@link ServiceCall} with a response type of Void
@@ -627,7 +627,7 @@ public ServiceCall<Void> addWords(AddWordsOptions addWordsOptions) {
627627
* **Note:** This method is currently a beta release.
628628
*
629629
* **See also:** [Querying all words from a custom
630-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryModel).
630+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryModel).
631631
*
632632
* @param listWordsOptions the {@link ListWordsOptions} containing the options for the call
633633
* @return a {@link ServiceCall} with a response type of {@link Words}
@@ -673,11 +673,11 @@ public ServiceCall<Words> listWords(ListWordsOptions listWordsOptions) {
673673
*
674674
* **See also:**
675675
* * [Adding a single word to a custom
676-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordAdd)
676+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordAdd)
677677
* * [Adding words to a Japanese custom
678-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuJapaneseAdd)
678+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuJapaneseAdd)
679679
* * [Understanding
680-
* customization](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customIntro#customIntro).
680+
* customization](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customIntro#customIntro).
681681
*
682682
* @param addWordOptions the {@link AddWordOptions} containing the options for the call
683683
* @return a {@link ServiceCall} with a response type of Void
@@ -713,7 +713,7 @@ public ServiceCall<Void> addWord(AddWordOptions addWordOptions) {
713713
* **Note:** This method is currently a beta release.
714714
*
715715
* **See also:** [Querying a single word from a custom
716-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordQueryModel).
716+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordQueryModel).
717717
*
718718
* @param getWordOptions the {@link GetWordOptions} containing the options for the call
719719
* @return a {@link ServiceCall} with a response type of {@link Translation}
@@ -746,7 +746,7 @@ public ServiceCall<Translation> getWord(GetWordOptions getWordOptions) {
746746
* **Note:** This method is currently a beta release.
747747
*
748748
* **See also:** [Deleting a word from a custom
749-
* model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordDelete).
749+
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordDelete).
750750
*
751751
* @param deleteWordOptions the {@link DeleteWordOptions} containing the options for the call
752752
* @return a {@link ServiceCall} with a response type of Void
@@ -780,7 +780,7 @@ public ServiceCall<Void> deleteWord(DeleteWordOptions deleteWordOptions) {
780780
*
781781
* **See also:** [Information
782782
* security]
783-
* (https://cloud.ibm.com/docs/services/text-to-speech
783+
* (https://cloud.ibm.com/docs/text-to-speech
784784
* ?topic=text-to-speech-information-security#information-security).
785785
*
786786
* @param deleteUserDataOptions the {@link DeleteUserDataOptions} containing the options for the call

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/AddWordOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -23,7 +23,7 @@ public class AddWordOptions extends GenericModel {
2323
* **Japanese only.** The part of speech for the word. The service uses the value to produce the correct intonation
2424
* for the word. You can create only a single entry, with or without a single part of speech, for any word; you cannot
2525
* create multiple entries with different parts of speech for the same word. For more information, see [Working with
26-
* Japanese entries](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-rules#jaNotes).
26+
* Japanese entries](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-rules#jaNotes).
2727
*/
2828
public interface PartOfSpeech {
2929
/** Dosi. */
@@ -232,7 +232,7 @@ public String translation() {
232232
* **Japanese only.** The part of speech for the word. The service uses the value to produce the correct intonation
233233
* for the word. You can create only a single entry, with or without a single part of speech, for any word; you cannot
234234
* create multiple entries with different parts of speech for the same word. For more information, see [Working with
235-
* Japanese entries](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-rules#jaNotes).
235+
* Japanese entries](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-rules#jaNotes).
236236
*
237237
* @return the partOfSpeech
238238
*/

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/AddWordsOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/CreateVoiceModelOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/DeleteUserDataOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/DeleteVoiceModelOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/DeleteWordOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/GetPronunciationOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/GetVoiceModelOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

0 commit comments

Comments
 (0)