Skip to content

Commit

Permalink
transcript not transcription
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrice6713 committed Jun 20, 2024
1 parent 7e4dcdb commit 2a02d00
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/main/java/com/bandwidth/voice/models/Track.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Track {
@JsonInclude(JsonInclude.Include.NON_NULL)
private String track;
@JsonInclude(JsonInclude.Include.NON_NULL)
private String transcription;
private String transcript;
@JsonInclude(JsonInclude.Include.NON_NULL)
private Double confidence;

Expand All @@ -33,17 +33,17 @@ public Track() {
* Initialization constructor.
* @param detectedLanguage String value for detectedLanguag3.
* @param track String value for track.
* @param transcription String value for transcription.
* @param transcript String value for transcript.
* @param confidence Double value for confidence.
*/
public Track(
String detectedLanguage,
String track,
String transcription,
String transcript,
Double confidence) {
this.detectedLanguage = detectedLanguage;
this.track = track;
this.transcription = transcription;
this.transcript = transcript;
this.confidence = confidence;
}

Expand Down Expand Up @@ -84,21 +84,21 @@ public void setTrack(String track) {
}

/**
* Getter for transcription.
* Getter for transcript.
* @return Returns the String
*/
@JsonGetter("transcription")
public String getTranscription() {
return transcription;
@JsonGetter("transcript")
public String getTranscript() {
return transcript;
}

/**
* Setter for transcription.
* @param transcription Value for String
* Setter for transcript.
* @param transcript Value for String
*/
@JsonSetter("transcription")
public void setTranscription(String transcription) {
this.transcription = transcription;
@JsonSetter("transcript")
public void setTranscript(String transcript) {
this.transcript = transcript;
}

/**
Expand All @@ -125,7 +125,7 @@ public void setConfidence(Double confidence) {
*/
@Override
public String toString() {
return "Track [" + "detectedLanguage=" + detectedLanguage + ", track=" + track + ", transcription=" + transcription
return "Track [" + "detectedLanguage=" + detectedLanguage + ", track=" + track + ", transcript=" + transcript
+ ", confidence=" + confidence + "]";
}

Expand All @@ -138,7 +138,7 @@ public Builder toBuilder() {
Builder builder = new Builder()
.detectedLanguage(getDetectedLanguage())
.track(getTrack())
.transcription(getTranscription())
.transcript(getTranscript())
.confidence(getConfidence());
return builder;
}
Expand All @@ -149,7 +149,7 @@ public Builder toBuilder() {
public static class Builder {
private String detectedLanguage;
private String track;
private String transcription;
private String transcript;
private Double confidence;


Expand All @@ -175,12 +175,12 @@ public Builder track(String track) {
}

/**
* Setter for transcription.
* @param transcription String value for transcription.
* Setter for transcript.
* @param transcript String value for transcript.
* @return Builder
*/
public Builder transcription(String transcription) {
this.transcription = transcription;
public Builder transcript(String transcript) {
this.transcript = transcript;
return this;
}

Expand All @@ -199,7 +199,7 @@ public Builder confidence(Double confidence) {
* @return {@link Track}
*/
public Track build() {
return new Track(detectedLanguage, track, transcription, confidence);
return new Track(detectedLanguage, track, transcript, confidence);
}
}
}

0 comments on commit 2a02d00

Please sign in to comment.