Class DashScopeAudioTranscriptionApi
java.lang.Object
com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi
Turn audio into text or text into audio. Based on DashScope
Audio Model
- Author:
- Kevin Lin, yuluo-yx, xuguan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionDashScopeAudioTranscriptionApi(String baseUrl, org.springframework.ai.model.ApiKey apiKey, String model, String workSpaceId, org.springframework.util.MultiValueMap<String, String> headers, String webSocketUrl, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.client.ResponseErrorHandler responseErrorHandler) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()org.springframework.ai.model.ApiKeygetModel()getOutcome(String transcriptionUrl) mutate()Returns a builder pre-populated with the current configuration for mutation.org.springframework.http.ResponseEntity<DashScopeAudioTranscriptionApi.Response>queryTaskResult(String taskId) voidreactor.core.publisher.Flux<DashScopeAudioTranscriptionApi.RealtimeResponse>realtimeStream(reactor.core.publisher.Flux<ByteBuffer> audio) org.springframework.http.ResponseEntity<DashScopeAudioTranscriptionApi.Response>
-
Constructor Details
-
DashScopeAudioTranscriptionApi
public DashScopeAudioTranscriptionApi(String baseUrl, org.springframework.ai.model.ApiKey apiKey, String model, String workSpaceId, org.springframework.util.MultiValueMap<String, String> headers, String webSocketUrl, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
-
-
Method Details
-
mutate
Returns a builder pre-populated with the current configuration for mutation. -
builder
-
submitTask
public org.springframework.http.ResponseEntity<DashScopeAudioTranscriptionApi.Response> submitTask(DashScopeAudioTranscriptionApi.Request request) -
queryTaskResult
public org.springframework.http.ResponseEntity<DashScopeAudioTranscriptionApi.Response> queryTaskResult(String taskId) -
realtimeSendTask
-
realtimeStream
public reactor.core.publisher.Flux<DashScopeAudioTranscriptionApi.RealtimeResponse> realtimeStream(reactor.core.publisher.Flux<ByteBuffer> audio) -
getOutcome
-
getBaseUrl
-
getModel
-
getApiKey
public org.springframework.ai.model.ApiKey getApiKey() -
getWorkSpaceId
-
getWebSocketUrl
-
getHeaders
-