跳到正文

C.A.S.S.I.E

[WIP] TTS from SCP:Secret Lab (aka C.A.S.S.I.E)

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

This project is being merged with More SCP Alarm. Therefore, no updates will be done on this page.

1. Available Commands

/cassie <text>

  • Plays a voice message in standard mode.
  • Forbids the use of words starting with “bg_” (reserved for background sounds).
  • Uses an estimated reading time to adjust a background sound before playing the message.

/cassiesl <text>

  • Plays a voice message in special (sl) mode, this mode dissable the background sound effect
  • Unlike /cassie, this mode allows the use of “bg_” words.

/cassiestop

  • Immediately stops the current voice playback.
  • Resets the playback state (isCassiePlaying), allowing a new message to be played without waiting for the previous one to finish.

2. Main Features

✅ Voice Message Playback Management

  • Splits the text into words and plays them one by one as Minecraft sounds.
  • Loads a JSON file containing the estimated duration of each word.
  • Calculates the total estimated reading time of the message.
  • Adds delays between words based on their estimated duration.

✅ Background Sound Management

  • In “cassie” mode, the script plays a background sound before reading the message.
  • The background sound is dynamically selected based on the estimated total message duration.

✅ Playback Control

  • Prevents a new announcement from starting while another is already playing.
  • Displays logs in the console to track execution status.

✅ Interruption System (/cassiestop)

  • Introduces a dedicated thread for message playback.
  • Allows stopping the playback at any moment, useful for canceling incorrect or unnecessary messages.

3. Security and Limitations

  •  ❗ Only players can execute the commands (For now…).
  • ❌ The “bg_” keyword is forbidden in /cassie but allowed in /cassiesl.
  • ✅ Logs are displayed in the console to assist debugging.
  • ✅ Prevention of excessive duration: The adjusted message duration is limited between 4 and 40 seconds.

常见问题

C.A.S.S.I.E 支持哪些 Minecraft 版本?

C.A.S.S.I.E 支持 Minecraft Java 版 1.16.5,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

C.A.S.S.I.E 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

5UP3R_TH30_B4G 的其他作品

查看全部 →