TextToSpeechPlugin

版本 v2.0.0·更新於 2022-03-06

Adds char initiated, character specific, situation specific, quotations and free form messages that are displayed and said via Text-To-Speech

模組介紹 作者原文

TaleSpire-TextToSpeechPlugin

Provides chat initiated situational character specific quotes and free form messages via displayed and TTS.

Installation

Install using R2ModMan. Configure as per the Configuration section.

Usage

There are four modes in which this plugin can be used. All modes are triggered by typing a slash, followed

by the command characters, followed by the command parameters at the chat prompt.

Text To Speech Free Text (/ts)

This is a free text text-to-speech. The command is followed by the character name and the text to be spoken.

For example, `/ts Jon Hello everyone!`

This mode displays the text in the corresponding mini speech bubble and records it in the chat history.

Text To Speech Free Text Whisper (/wts)

This is a free text text-to-speech mode which sends the request to a specific player. The command is followed

by the player name, then the character name, and then the text to be spoken.

For example, `/ts LordAshes Jon Hello everyone!`

This mode does not display the text in a character speech bubble and only shows in the chat history of the

player that was the target of the whisper.

Situational Quote To Speech (/tsq)

This mode generates a random quote from the specified character's quote list for the specified situation.

The command is followed by the character name and then the situation.

For example, `/tsq Jon Attack`

This mode displays the quote in the corresponding mini speech bubble and records it in the chat history.

Situational Quote To Speech Whisper (/wtsq)

This mode generates a random quote from the specified character's quote list for the specified situation

and send the result to a specific player. The command is followed by the desired player, then the character

name, and then the situation.

For example, `/wtsq LordAshes Jon Ready`

This mode does not display the text in a character speech bubble and only shows in the chat history of the

player that was the target of the whisper.

Get Voices

Following any of the commands with a? as the parameter will, instead, list all of the available TTS voices

and play a sound sample of each. For example, `/ts?`

You can also run the GetSpeechInstalledVoices.exe from the command line.

Configuration

A configuration is needed to use this plugin. Even the free text functions require a configuration because

the character name is used to look up the actual TTS voice and voice parameters. A sample configuration

file is included for a "Jon" character using "Microsoft David Desktop" and a "Jane" character using

"Microsoft Zira Desktop". The format look like:

{

"characters":

{

"Jon":

{

"name": "Jon",

"voice": "Microsoft David Desktop",

"rate": 1,

"speeches":

{

"Attack":

[

"Die Scum! Die!",

"You'll regret messing with me!",

"You mess with my party, you mess with me!"

],

"Ready":

[

"On your guard!",

"Evil is abroad!",

"Vigilance!"

]

}

},

"Jane":

{

"name": "Jane",

"voice": "Microsoft Zira Desktop",

"rate": 1,

"speeches":

{

"Attack":

[

"Let me give you the kiss of death!",

"Your weapons are no match for my magic!"

],

"Ready":

[

"Keep your eyes peeled.",

"I've got your back!"

]

}

}

},

}

The file is an array of characters. Each character contains a name (repeated), the official TTS voice name,

the rate (negative numbers are slower, positive numbers are faster) and speeches. Speeches are an array of

situations which are then an array of quotes. In the above configurations, two situations have been defined

(Attack and Ready) but you can configure any situations. The situation name is just a key to selecting a

specific quote list.

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

bbepisTaleSpire-BepInExPackbrcoding-SetInjectionFlagPluginLordAshes-FileAccessPluginLordAshes-ChatService

檔案與校驗

檔案名稱
TextToSpeechPlugin-2.0.0.zip
檔案大小
295.0 KiB