Skip to content

Conversation

@qbc2016
Copy link
Member

@qbc2016 qbc2016 commented Jan 7, 2026

AgentScope Version

1.0.11

Description

As the title says.

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with pre-commit run --all-files command
  • All tests are passing
  • Docstrings are in Google style
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@qbc2016 qbc2016 changed the title feat(werewofl): Add commented tts codes for werewolf game feat(werewolf): Add commented tts codes for werewolf game Jan 7, 2026
@qbc2016 qbc2016 requested a review from DavdGao January 7, 2026 12:50
Copy link
Member

@DavdGao DavdGao left a 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

Copy link
Contributor

Copilot AI left a 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 EchoAgent class 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

Copy link
Member

@DavdGao DavdGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DavdGao DavdGao merged commit 2bc3951 into agentscope-ai:main Jan 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants