-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(werewolf): Add commented tts codes for werewolf game #1090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
DavdGao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, plz also update the tts related information in the README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds text-to-speech (TTS) functionality to the werewolf game example, with the implementation commented out by default to maintain backward compatibility. The changes enable users to optionally activate TTS features for the game moderator and player agents.
Key Changes
- Modified
EchoAgentclass to support TTS model integration with streaming and non-streaming synthesis - Added commented TTS configuration examples in both agent initialization and moderator setup
- Imported necessary TTS-related types and utilities for audio support
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| examples/game/werewolves/utils.py | Updated EchoAgent to accept optional TTS model parameter and modified reply method to handle TTS synthesis with streaming support |
| examples/game/werewolves/main.py | Added commented TTS import statements and configuration example in get_official_agents function |
| examples/game/werewolves/game.py | Added commented TTS imports and configuration example for moderator initialization |
DavdGao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
AgentScope Version
1.0.11
Description
As the title says.
Checklist
Please check the following items before code is ready to be reviewed.
pre-commit run --all-filescommand