Skip to content

Commit 3674ec7

Browse files
committed
docs(Speech to Text): Update code comments
1 parent 4bf11b8 commit 3674ec7

7 files changed

Lines changed: 22 additions & 13 deletions

File tree

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/AddAudioOptions.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,10 @@ public String customizationId() {
290290
* The name of the new audio resource for the custom acoustic model. Use a localized name that matches the language of
291291
* the custom model and reflects the contents of the resource.
292292
* * Include a maximum of 128 characters in the name.
293-
* * Do not include spaces, slashes, or backslashes in the name.
293+
* * Do not use characters that need to be URL-encoded. For example, do not use spaces, slashes, backslashes, colons,
294+
* ampersands, double quotes, plus signs, equals signs, questions marks, and so on in the name. (The service does not
295+
* prevent the use of these characters. But because they must be URL-encoded wherever used, their use is strongly
296+
* discouraged.)
294297
* * Do not use the name of an audio resource that has already been added to the custom model.
295298
*
296299
* @return the audioName

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/AddCorpusOptions.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,14 @@ public String customizationId() {
169169
* The name of the new corpus for the custom language model. Use a localized name that matches the language of the
170170
* custom model and reflects the contents of the corpus.
171171
* * Include a maximum of 128 characters in the name.
172-
* * Do not include spaces, slashes, or backslashes in the name.
172+
* * Do not use characters that need to be URL-encoded. For example, do not use spaces, slashes, backslashes, colons,
173+
* ampersands, double quotes, plus signs, equals signs, questions marks, and so on in the name. (The service does not
174+
* prevent the use of these characters. But because they must be URL-encoded wherever used, their use is strongly
175+
* discouraged.)
173176
* * Do not use the name of an existing corpus or grammar that is already defined for the custom model.
174177
* * Do not use the name `user`, which is reserved by the service to denote custom words that are added or modified by
175178
* the user.
179+
* * Do not use the name `base_lm` or `default_lm`. Both names are reserved for future use by the service.
176180
*
177181
* @return the corpusName
178182
*/

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/AddGrammarOptions.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,14 @@ public String customizationId() {
200200
* The name of the new grammar for the custom language model. Use a localized name that matches the language of the
201201
* custom model and reflects the contents of the grammar.
202202
* * Include a maximum of 128 characters in the name.
203-
* * Do not include spaces, slashes, or backslashes in the name.
203+
* * Do not use characters that need to be URL-encoded. For example, do not use spaces, slashes, backslashes, colons,
204+
* ampersands, double quotes, plus signs, equals signs, questions marks, and so on in the name. (The service does not
205+
* prevent the use of these characters. But because they must be URL-encoded wherever used, their use is strongly
206+
* discouraged.)
204207
* * Do not use the name of an existing grammar or corpus that is already defined for the custom model.
205208
* * Do not use the name `user`, which is reserved by the service to denote custom words that are added or modified by
206209
* the user.
210+
* * Do not use the name `base_lm` or `default_lm`. Both names are reserved for future use by the service.
207211
*
208212
* @return the grammarName
209213
*/

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/ListWordsOptions.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public interface WordType {
4343
* `+` or `-` to an argument to indicate whether the results are to be sorted in ascending or descending order. By
4444
* default, words are sorted in ascending alphabetical order. For alphabetical ordering, the lexicographical
4545
* precedence is numeric values, uppercase letters, and lowercase letters. For count ordering, values with the same
46-
* count are ordered alphabetically. With the `curl` command, URL encode the `+` symbol as `%2B`.
46+
* count are ordered alphabetically. With the `curl` command, URL-encode the `+` symbol as `%2B`.
4747
*/
4848
public interface Sort {
4949
/** alphabetical. */
@@ -178,7 +178,7 @@ public String wordType() {
178178
* `+` or `-` to an argument to indicate whether the results are to be sorted in ascending or descending order. By
179179
* default, words are sorted in ascending alphabetical order. For alphabetical ordering, the lexicographical
180180
* precedence is numeric values, uppercase letters, and lowercase letters. For count ordering, values with the same
181-
* count are ordered alphabetically. With the `curl` command, URL encode the `+` symbol as `%2B`.
181+
* count are ordered alphabetically. With the `curl` command, URL-encode the `+` symbol as `%2B`.
182182
*
183183
* @return the sort
184184
*/

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/ProcessingMetrics.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
import com.ibm.cloud.sdk.core.service.model.GenericModel;
1717

1818
/**
19-
* If processing metrics are requested, information about the service's processing of the input audio.
19+
* If processing metrics are requested, information about the service's processing of the input audio. Processing
20+
* metrics are not available with the synchronous **Recognize audio** method.
2021
*/
2122
public class ProcessingMetrics extends GenericModel {
2223

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/SpeechRecognitionResults.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public List<SpeakerLabelsResult> getSpeakerLabels() {
7676
/**
7777
* Gets the processingMetrics.
7878
*
79-
* If processing metrics are requested, information about the service's processing of the input audio.
79+
* If processing metrics are requested, information about the service's processing of the input audio. Processing
80+
* metrics are not available with the synchronous **Recognize audio** method.
8081
*
8182
* @return the processingMetrics
8283
*/

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/TrainLanguageModelOptions.java‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,9 @@ public class TrainLanguageModelOptions extends GenericModel {
2828
* trained on new words extracted from corpora or grammars.
2929
*/
3030
public interface WordTypeToAdd {
31-
/**
32-
* all.
33-
*/
31+
/** all. */
3432
String ALL = "all";
35-
/**
36-
* user.
37-
*/
33+
/** user. */
3834
String USER = "user";
3935
}
4036

0 commit comments

Comments
 (0)