You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/game/werewolves/README.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,9 +65,51 @@ You can replace one of the agents with a `UserAgent` to play with AI agents.
65
65
66
66
Just modify the `model` parameter in `main.py` to try different models. Note you need to change the formatter at the same time to match the model's output format.
67
67
68
+
## Enable Text-to-Speech (TTS)
69
+
70
+
The game supports Text-to-Speech functionality. To enable TTS:
71
+
72
+
1.**In `main.py`**:
73
+
- Uncomment the import statement:
74
+
```python
75
+
import random
76
+
from agentscope.tts import DashScopeTTSModel
77
+
```
78
+
- Uncomment the `tts_model` parameter in the `get_official_agents` function:
0 commit comments