Skip to content

Commit fab175f

Browse files
authored
Fixing example (#64)
1 parent 4b98b0a commit fab175f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/AsyncTranslateMediaUrl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public static void main(String[] args) {
102102
try {
103103
objectTranscript = apiClient.getTranslatedTranscriptObject(jobId, "es");
104104
textTranscript = apiClient.getTranslatedTranscriptText(jobId, "es");
105-
srtCaptions = apiClient.getTranslatedCaptions(jobId, "es", RevAiCaptionType.SRT, null);
106-
vttCaptions = apiClient.getTranslatedCaptions(jobId, "es", RevAiCaptionType.VTT, null);
105+
srtCaptions = apiClient.getTranslatedCaptions(jobId, "es", RevAiCaptionType.SRT);
106+
vttCaptions = apiClient.getTranslatedCaptions(jobId, "es", RevAiCaptionType.VTT);
107107

108108
System.out.println("Translation:" + textTranscript);
109109
} catch (IOException e) {

0 commit comments

Comments
 (0)