public class HttpSpeechSynthesizerUsage extends Object
Make sure to set the DASHSCOPE_API_KEY environment variable before running this example.
| 构造器和说明 |
|---|
HttpSpeechSynthesizerUsage() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
customParameters()
Demonstrates custom parameter settings.
|
static void |
main(String[] args) |
static void |
streamCallWithCallback()
Demonstrates streaming call with callback - receives audio chunks as they arrive.
|
static void |
syncCall()
Demonstrates synchronous call with SSE - blocks until synthesis is complete and returns audio
data.
|
static void |
syncCallWithUrl()
Demonstrates synchronous call without SSE - returns audio URL instead of audio data.
|
public static void syncCall()
public static void syncCallWithUrl()
public static void streamCallWithCallback()
public static void customParameters()
public static void main(String[] args)
Copyright © 2026. All rights reserved.