|
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
|
|
17.
|
|
|
`filename`
|
|
|
|
`filename`
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/voice:11
|
|
18.
|
|
|
The filename to play. This is used with :var:`config.voice_filename_format` to produce the filename that will be played.
|
|
|
|
需要播放的文件名。这需要用到:var:`config.voice_filename_format`来提供需要播放的文件名。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/voice:9
|
|
19.
|
|
|
`tag`
|
|
|
|
`tag`
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/voice:20
|