|
8.
|
|
|
Automatic Voice
|
|
|
|
Автоматический выбор голоса
|
|
Translated and reviewed by
theadmin
|
|
|
|
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
theadmin
|
|
|
|
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
theadmin
|
|
|
|
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.
|
|
|
|
Для автоматического воспроизведения голоса, установите в :var:`config.auto_voice` строку, содержащую `{id}`. Когда случается диалог, `{id}` будет изменено на идентификатор диалога, что позволит формировать имя файла. Если имя файла существует, файл будет воспроизведен.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/voice.rst:77
|
|
13.
|
|
|
For example, if we have::
|
|
|
|
Например::
|
|
Translated and reviewed by
theadmin
|
|
|
|
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`` и воспроизведет его, если он существует.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/voice.rst:86
|
|
15.
|
|
|
Voice Functions
|
|
|
|
Функции голоса
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/voice.rst:93
|
|
16.
|
|
|
Plays `filename` on the voice channel. The equivalent of the voice statement.
|
|
|
|
Играет `filename` на голосовом канале. Аналогично оператору voice.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/inc/voice:5
|
|
17.
|
|
|
`filename`
|
|
|
|
`filename`
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/inc/voice:11
|