DE EN FR ES IT CZ
Back Back to top

Changing volume of a soundfile in narration text

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  • #1, by AkcayKaraazmak 9 years ago Quote
    Hi guys is there any way to change the volume of the soundfile of a narration text? Narration text doesnt have any volume controls just loading a sound file.

    Cheers smile
  • New to Visionaire Studio?

    Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.

    See the Indie Bundle Try it for free
  • #2, by afrlme 9 years ago Quote
    I believe audio files linked to narration texts are also controlled by the global voice volume.
  • #3, by AkcayKaraazmak 9 years ago Quote
    But if yes, then it will change all the voice volumes. I need to change them separately:\
  • #4, by afrlme 9 years ago Quote
    You might be able to do that once Simon has finished working on the new audio system.
  • #5, by AkcayKaraazmak 9 years ago Quote
    Thank you Lee! Looking forward for the update
  • #6, by sebastian 9 years ago Quote
    Thank you Lee! Looking forward for the update

    you could try and see if getting the soundID of the current played narration audio file via lua and then use the SetSoundProperty function to set its volume independantly:

    local soundID = getSoundId('vispath:path/to/narratortext.ogg')
    setSoundProperty(soundID, {flags=1, volume=80}
  • #7, by AkcayKaraazmak 9 years ago Quote
    Thank you so much Sebastian, I'll try that!
  • #8, by afrlme 9 years ago Quote
    @Sebastian: The current Lua sound engine uses the global sound volume channel for sounds played via it. You can tweak the volumes of the individual sound, but it will be x volume level percent of the global sound volume value.
  • #9, by sebastian 9 years ago Quote
    @Sebastian: The current Lua sound engine uses the global sound volume channel for sounds played via it. You can tweak the volumes of the individual sound, but it will be x volume level percent of the global sound volume value.
    Maybe exactly what he needs?
  • #10, by afrlme 9 years ago Quote
    Can you access sounds played via action parts with it? I don't think I've ever actually tried.