You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/cognitiveservices/azure-ai-speech-transcription/customization/src/main/java/SpeechTranscriptionCustomization.java
Copy file name to clipboardExpand all lines: sdk/cognitiveservices/azure-ai-speech-transcription/src/main/java/com/azure/ai/speech/transcription/TranscriptionAsyncClient.java
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -142,4 +142,48 @@ public Mono<TranscriptionResult> transcribe(TranscriptionOptions options) {
142
142
requestContent.setOptions(options);
143
143
returntranscribe(requestContent);
144
144
}
145
+
146
+
/**
147
+
* Transcribes the provided audio stream with the specified options.
148
+
*
149
+
* @param options the transcription options including audio file details or audio URL
150
+
* @throws IllegalArgumentException thrown if parameters fail the validation.
151
+
* @throws HttpResponseException thrown if the request is rejected by server.
152
+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
153
+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
154
+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
155
+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
156
+
* @return the response containing the result of the transcribe operation on successful completion of Mono.
Copy file name to clipboardExpand all lines: sdk/cognitiveservices/azure-ai-speech-transcription/src/main/java/com/azure/ai/speech/transcription/TranscriptionClient.java
+45Lines changed: 45 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,4 +138,49 @@ public TranscriptionResult transcribe(TranscriptionOptions options) {
138
138
requestContent.setOptions(options);
139
139
returntranscribe(requestContent);
140
140
}
141
+
142
+
/**
143
+
* Transcribes the provided audio stream with the specified options.
144
+
*
145
+
* @param options the transcription options including audio file details or audio URL
146
+
* @throws IllegalArgumentException thrown if parameters fail the validation.
147
+
* @throws HttpResponseException thrown if the request is rejected by server.
148
+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
149
+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
150
+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
151
+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
152
+
* @return the response containing the result of the transcribe operation.
Copy file name to clipboardExpand all lines: sdk/cognitiveservices/azure-ai-speech-transcription/src/main/java/com/azure/ai/speech/transcription/models/TranscriptionOptions.java
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -71,14 +71,6 @@ public final class TranscriptionOptions implements JsonSerializable<Transcriptio
71
71
@Generated
72
72
privatePhraseListOptionsphraseListOptions;
73
73
74
-
/**
75
-
* Creates an instance of TranscriptionOptions class.
76
-
*/
77
-
@Generated
78
-
publicTranscriptionOptions() {
79
-
this.audioFileDetails = null;
80
-
}
81
-
82
74
/**
83
75
* Get the audioUrl property: The URL of the audio to be transcribed. The audio must be shorter than 2 hours in
84
76
* audio duration and smaller than 250 MB in size. If both Audio and AudioUrl are provided, Audio is used.
0 commit comments