AS AgentScopeAPI 手册 / API Reference

ReActAgentWithTTSDemo

public class ReActAgentWithTTSDemo
源码Source io/agentscope/examples/chattts/ReActAgentWithTTSDemo.java:42–92

ReAct 智能体使用 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
argsString[]参数(类型 `String[]`)。command line arguments
源码Source io/agentscope/examples/chattts/ReActAgentWithTTSDemo.java:49–91
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.