Class DashScopeQwenTTSApi
java.lang.Object
com.alibaba.cloud.ai.dashscope.api.tts.DashScopeQwenTTSApi
DashScope Qwen-TTS REST API client.
Supports call (sync) and stream (SSE) for Qwen-TTS models.
- Author:
- spring-ai-alibaba
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDashScopeQwenTTSApi(String baseUrl, org.springframework.ai.model.ApiKey apiKey, String workSpaceId, org.springframework.util.MultiValueMap<String, String> headers, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder, org.springframework.web.client.ResponseErrorHandler responseErrorHandler) -
Method Summary
Modifier and TypeMethodDescriptionstatic DashScopeQwenTTSApi.Builderbuilder()call(String text, DashScopeAudioSpeechOptions options) reactor.core.publisher.Flux<DashScopeTTSApiSpec.DashScopeAudioTTSResponse>stream(String text, DashScopeAudioSpeechOptions options)
-
Constructor Details
-
DashScopeQwenTTSApi
public DashScopeQwenTTSApi(String baseUrl, org.springframework.ai.model.ApiKey apiKey, String workSpaceId, org.springframework.util.MultiValueMap<String, String> headers, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
-
-
Method Details
-
call
public DashScopeTTSApiSpec.DashScopeAudioTTSResponse call(String text, DashScopeAudioSpeechOptions options) -
stream
public reactor.core.publisher.Flux<DashScopeTTSApiSpec.DashScopeAudioTTSResponse> stream(String text, DashScopeAudioSpeechOptions options) -
builder
-