ReActAgentWithTTSDemo
public class ReActAgentWithTTSDemo
源码Source
io/agentscope/examples/chattts/ReActAgentWithTTSDemo.java:42–92ReAct 智能体使用 TTS Demo,处理低延迟的实时语音与多模态交互。位于 io.agentscope.examples.chattts 包。核心成员包括 main。
Interactive CLI demo of ReActAgent with real-time TTS.
Features:
-
Real-time TTS: Agent speaks while generating response
-
Auto-interrupt: When user sends a new message while Agent is speaking, the current audio is automatically interrupted and new audio starts
Usage:
export DASHSCOPE_API_KEY=sk-xxx
mvn exec:java -pl agentscope-examples/chat-tts \
-Dexec.mainClass="io.agentscope.examples.chattts.ReActAgentWithTTSDemo"
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static void main(String[] args)static | 设置主。 Main entry point. |
方法详情Method Detail
main
public static void main(String[] args)
static
设置主。
Main entry point.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
args | String[] | 参数(类型 `String[]`)。command line arguments |
源码Source
io/agentscope/examples/chattts/ReActAgentWithTTSDemo.java:49–91