Skip to content

Commit 0a7058b

Browse files
jeff-arnapaparazzi0329
authored andcommitted
feat(speech to text): update based on new api definitions
1 parent 54fd47d commit 0a7058b

File tree

78 files changed

+530
-281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+530
-281
lines changed

speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java

Lines changed: 52 additions & 104 deletions
Large diffs are not rendered by default.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2022.
2+
* (C) Copyright IBM Corp. 2023.
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
@@ -61,6 +61,8 @@ public interface Status {
6161
protected Long progress;
6262
protected String warnings;
6363

64+
protected AcousticModel() {}
65+
6466
/**
6567
* Gets the customizationId.
6668
*

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

Lines changed: 3 additions & 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. 2023.
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
@@ -20,6 +20,8 @@ public class AcousticModels extends GenericModel {
2020

2121
protected List<AcousticModel> customizations;
2222

23+
protected AcousticModels() {}
24+
2325
/**
2426
* Gets the customizations.
2527
*

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2022.
2+
* (C) Copyright IBM Corp. 2023.
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
@@ -85,6 +85,11 @@ public static class Builder {
8585
private String containedContentType;
8686
private Boolean allowOverwrite;
8787

88+
/**
89+
* Instantiates a new Builder from an existing AddAudioOptions instance.
90+
*
91+
* @param addAudioOptions the instance to initialize the Builder with
92+
*/
8893
private Builder(AddAudioOptions addAudioOptions) {
8994
this.customizationId = addAudioOptions.customizationId;
9095
this.audioName = addAudioOptions.audioName;

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2022.
2+
* (C) Copyright IBM Corp. 2023.
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
@@ -33,6 +33,11 @@ public static class Builder {
3333
private InputStream corpusFile;
3434
private Boolean allowOverwrite;
3535

36+
/**
37+
* Instantiates a new Builder from an existing AddCorpusOptions instance.
38+
*
39+
* @param addCorpusOptions the instance to initialize the Builder with
40+
*/
3641
private Builder(AddCorpusOptions addCorpusOptions) {
3742
this.customizationId = addCorpusOptions.customizationId;
3843
this.corpusName = addCorpusOptions.corpusName;

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2022.
2+
* (C) Copyright IBM Corp. 2023.
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
@@ -35,6 +35,11 @@ public static class Builder {
3535
private String contentType;
3636
private Boolean allowOverwrite;
3737

38+
/**
39+
* Instantiates a new Builder from an existing AddGrammarOptions instance.
40+
*
41+
* @param addGrammarOptions the instance to initialize the Builder with
42+
*/
3843
private Builder(AddGrammarOptions addGrammarOptions) {
3944
this.customizationId = addGrammarOptions.customizationId;
4045
this.grammarName = addGrammarOptions.grammarName;

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2022.
2+
* (C) Copyright IBM Corp. 2023.
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
@@ -33,6 +33,11 @@ public static class Builder {
3333
private List<String> soundsLike;
3434
private String displayAs;
3535

36+
/**
37+
* Instantiates a new Builder from an existing AddWordOptions instance.
38+
*
39+
* @param addWordOptions the instance to initialize the Builder with
40+
*/
3641
private Builder(AddWordOptions addWordOptions) {
3742
this.customizationId = addWordOptions.customizationId;
3843
this.wordName = addWordOptions.wordName;

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2022.
2+
* (C) Copyright IBM Corp. 2023.
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
@@ -27,6 +27,11 @@ public static class Builder {
2727
private String customizationId;
2828
private List<CustomWord> words;
2929

30+
/**
31+
* Instantiates a new Builder from an existing AddWordsOptions instance.
32+
*
33+
* @param addWordsOptions the instance to initialize the Builder with
34+
*/
3035
private Builder(AddWordsOptions addWordsOptions) {
3136
this.customizationId = addWordsOptions.customizationId;
3237
this.words = addWordsOptions.words;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2021.
2+
* (C) Copyright IBM Corp. 2023.
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
@@ -50,6 +50,8 @@ public interface Compression {
5050
protected Long frequency;
5151
protected String compression;
5252

53+
protected AudioDetails() {}
54+
5355
/**
5456
* Gets the type.
5557
*

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2021.
2+
* (C) Copyright IBM Corp. 2023.
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
@@ -44,6 +44,8 @@ public interface Status {
4444
protected AudioResource container;
4545
protected List<AudioResource> audio;
4646

47+
protected AudioListing() {}
48+
4749
/**
4850
* Gets the duration.
4951
*

0 commit comments

Comments
 (0)