Document Category Item: Tutorial > Setting up the voice!Back
Setting up the voice!
Description

Include this if the current branch and page has a voice.

Do not include this if you wish for there to not be any voice.

 

There is 2 way to include a voice.

The first way use a big voice file that can be loaded in the loading portion of the engine and set to the seconds it play and the seconds it end.

Example:
"smfp_load(1, "voice/main_voice_file_big.ogg")"
"vne_set_voice(1, 1, 1, "", 0.0, 1.0)"

In this example, it uses a voice file with the id of "1" and play from 0 second to 1 second.

Start time and end time could also be a float.

 

Else, you can also use individual voice file.

Example: "vne_set_voice(1, 3, 0, "voice/individual.ogg", 0, 0)"

This will play the voice file from beginning to end!

 

NOTE: It is not recommended to use "filename$" to constantly load a big voice file! Also, all voice file has to be using the ".OGG" format!

Definition

vne_set_voice(branchID, page, voice_id, filename$, startTime#, endTime#)

Due to a Cookie law, We are required to notify you that our site is using Cookie(s).
Cookie(s) allow us to provide site services in order to serve you!
You may view our Privacy Policy @ https://visualnovelengine.com/Privacy-Policy/
You may view our Term of Service(s) @ https://visualnovelengine.com/Term of Service(s)/