Changing volume of a soundfile in narration text

  • #1, by AkcayKaraazmakSunday, 11. February 2018, 14:31 2 years ago
    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

    Great Poster

    437 Posts


  • #2, by afrlmeSunday, 11. February 2018, 15:02 2 years ago
    I believe audio files linked to narration texts are also controlled by the global voice volume.

    Imperator

    6846 Posts

  • #3, by AkcayKaraazmakSunday, 11. February 2018, 15:05 2 years ago
    But if yes, then it will change all the voice volumes. I need to change them separately:\

    Great Poster

    437 Posts

  • #4, by afrlmeSunday, 11. February 2018, 16:03 2 years ago
    You might be able to do that once Simon has finished working on the new audio system.

    Imperator

    6846 Posts

  • #5, by AkcayKaraazmakSunday, 11. February 2018, 16:13 2 years ago
    Thank you Lee! Looking forward for the update

    Great Poster

    437 Posts

  • #6, by sebastianSunday, 11. February 2018, 16:36 2 years ago
    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}
    1
    2

    Thread Captain

    2337 Posts

  • #7, by AkcayKaraazmakSunday, 11. February 2018, 17:45 2 years ago
    Thank you so much Sebastian, I'll try that!

    Great Poster

    437 Posts

  • #8, by afrlmeSunday, 11. February 2018, 18:24 2 years ago
    @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.

    Imperator

    6846 Posts

  • #9, by sebastianSunday, 11. February 2018, 23:09 2 years ago
    @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?

    Thread Captain

    2337 Posts

  • #10, by afrlmeMonday, 12. February 2018, 12:13 2 years ago
    Can you access sounds played via action parts with it? I don't think I've ever actually tried.

    Imperator

    6846 Posts

Write post