|
7.
|
|
|
For example::
|
|
|
|
例如:
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/voice.rst:37
|
|
8.
|
|
|
Automatic Voice
|
|
|
|
自动语音
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/voice.rst:62
|
|
9.
|
|
|
Ren'Py includes support for automatically determining the voice file to play, making it possible to play back voice without having to put voice statements before each line of dialogue.
|
|
|
|
Ren'py支持自动确定需要播放的语音文件,使您无需在每行对话之前都输入voice语句就能够实现语音播放。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/voice.rst:64
|
|
10.
|
|
|
This is done by creating voice files that match the identifier for each line of dialogue. To determine the identifiers to use , first export the dialogue to a spreadsheet by choosing from the launcher "Extract Dialogue", "Tab-delimited Spreadsheet (dialogue.tab)", and "Continue". This will produce a file, dialogue.tab, that can be loaded in a spreasheet program.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/voice.rst:68
|
|
11.
|
|
|
The first column of the spreadsheet is the identifier to use, with other columns giving more information about the dialogue.
|
|
|
|
电子表格第一列为使用的识别符,其他列则给出对话的更多信息。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/voice.rst:74
|
|
12.
|
|
|
To make Ren'Py automatically play voices, set :var:`config.auto_voice` to a string containing `{id}`. When dialogue occurs, `{id}` is replaced with the dialogue identifier, forming a filename. If the filename exists, it is played.
|
|
|
|
要让Ren'py自动播放语音,设定:var:`config.auto_voice`成一个字串符,其中包含`{id}`。当对话发生时,`{id}`就会替换为对话识别符,构成文件名。如果文件名存在,则文件就被播放。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/voice.rst:77
|
|
13.
|
|
|
For example, if we have::
|
|
|
|
例如,假设我们有:
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/voice.rst:82
|
|
14.
|
|
|
And the dialogue identifier is ``demo_minigame_03fc91ef``, then when the corresponding line is shown, Ren'Py will look for the file ``voice/demo_minigame_03fc91ef.ogg``. If the file exists, Ren'Py will play it.
|
|
|
|
然后对话识别符为``demo_minigame_03fc91ef``,那么当对应的行被显示出来时,Ren'py就会寻找文件``voice/demo_minigame_03fc91ef.ogg``。如果文件存在,Ren'py就会播放它。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/voice.rst:86
|
|
15.
|
|
|
Voice Functions
|
|
|
|
Voice函数
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/voice.rst:93
|
|
16.
|
|
|
Plays `filename` on the voice channel. The equivalent of the voice statement.
|
|
|
|
在语音通道中播放`文件名`,与使用voice语句是同样的效果。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/voice:5
|