Skip to content

Commit 108ed83

Browse files
regenerate sdk from typespec
1 parent 822b629 commit 108ed83

File tree

2 files changed

+2
-51
lines changed

2 files changed

+2
-51
lines changed

sdk/cognitiveservices/azure-ai-speech-transcription/src/main/java/com/azure/ai/speech/transcription/TranscriptionAsyncClient.java

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public final class TranscriptionAsyncClient {
4848
/**
4949
* Transcribes the provided audio stream.
5050
* <p><strong>Response Body Schema</strong></p>
51-
*
51+
*
5252
* <pre>
5353
* {@code
5454
* {
@@ -125,18 +125,6 @@ Mono<TranscriptionResult> transcribe(TranscriptionContent body) {
125125
.map(protocolMethodData -> protocolMethodData.toObject(TranscriptionResult.class));
126126
}
127127

128-
/**
129-
* Transcribes the provided audio stream with the specified options.
130-
*
131-
* @param options the transcription options including audio file details or audio URL
132-
* @throws IllegalArgumentException thrown if parameters fail the validation.
133-
* @throws HttpResponseException thrown if the request is rejected by server.
134-
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
135-
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
136-
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
137-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
138-
* @return the result of the transcribe operation on successful completion of Mono.
139-
*/
140128
// Customized method added via post-generation customization
141129
@ServiceMethod(returns = ReturnType.SINGLE)
142130
public Mono<TranscriptionResult> transcribe(TranscriptionOptions options) {
@@ -147,18 +135,6 @@ public Mono<TranscriptionResult> transcribe(TranscriptionOptions options) {
147135
return transcribe(requestContent);
148136
}
149137

150-
/**
151-
* Transcribes the provided audio stream with the specified options.
152-
*
153-
* @param options the transcription options including audio file details or audio URL
154-
* @throws IllegalArgumentException thrown if parameters fail the validation.
155-
* @throws HttpResponseException thrown if the request is rejected by server.
156-
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
157-
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
158-
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
159-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
160-
* @return the response containing the result of the transcribe operation on successful completion of Mono.
161-
*/
162138
// Customized method added via post-generation customization
163139
public Mono<Response<TranscriptionResult>> transcribeWithResponse(TranscriptionOptions options) {
164140
TranscriptionContent requestContent = new TranscriptionContent(options);

sdk/cognitiveservices/azure-ai-speech-transcription/src/main/java/com/azure/ai/speech/transcription/TranscriptionClient.java

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public final class TranscriptionClient {
4646
/**
4747
* Transcribes the provided audio stream.
4848
* <p><strong>Response Body Schema</strong></p>
49-
*
49+
*
5050
* <pre>
5151
* {@code
5252
* {
@@ -121,19 +121,6 @@ TranscriptionResult transcribe(TranscriptionContent body) {
121121
requestOptions).getValue().toObject(TranscriptionResult.class);
122122
}
123123

124-
// Customized method added via post-generation customization
125-
/**
126-
* Transcribes the provided audio stream with the specified options.
127-
*
128-
* @param options the transcription options including audio file details or audio URL
129-
* @throws IllegalArgumentException thrown if parameters fail the validation.
130-
* @throws HttpResponseException thrown if the request is rejected by server.
131-
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
132-
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
133-
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
134-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
135-
* @return the result of the transcribe operation.
136-
*/
137124
// Customized method added via post-generation customization
138125
@ServiceMethod(returns = ReturnType.SINGLE)
139126
public TranscriptionResult transcribe(TranscriptionOptions options) {
@@ -144,18 +131,6 @@ public TranscriptionResult transcribe(TranscriptionOptions options) {
144131
return transcribe(requestContent);
145132
}
146133

147-
/**
148-
* Transcribes the provided audio stream with the specified options.
149-
*
150-
* @param options the transcription options including audio file details or audio URL
151-
* @throws IllegalArgumentException thrown if parameters fail the validation.
152-
* @throws HttpResponseException thrown if the request is rejected by server.
153-
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
154-
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
155-
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
156-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
157-
* @return the response containing the result of the transcribe operation.
158-
*/
159134
// Customized method added via post-generation customization
160135
public Response<TranscriptionResult> transcribeWithResponse(TranscriptionOptions options) {
161136
TranscriptionContent requestContent = new TranscriptionContent(options);

0 commit comments

Comments
 (0)