godot-dialogtreetools icon indicating copy to clipboard operation
godot-dialogtreetools copied to clipboard

Support voice for Line node

Open StraToN opened this issue 8 years ago • 2 comments

This will be supported by adding a specific input for each "say" block in a Line node. This input can be filled with a link coming from a new "Voice node". This node should take a Sound resource as parameter.

StraToN avatar Sep 06 '16 11:09 StraToN

Hi StraTon I would like to do this - add audio (voice) to each line. Can you assist me on how I could add the input? I love your tool, and I appreciate it for sharing your addon!

ghost avatar Dec 14 '19 16:12 ghost

Hi @ChaqSilent

If you want to develop this feature, you can do it by many ways. The one I described above (adding a Voice graphnode) might be too complicated actually, and will bloat the tree inefficiently. I would not do it that way anymore.

I'd thus prefer the simplest method, easy to do, easy to use:

  • modify the "say" block scene to add a file chooser to it, so you're able to select a sound file
  • edit the parser so that saving the tree as JSON will effectively save the sound file path as a new json field.

Then modify the parser script to manage voices (load file, play file, etc)

StraToN avatar Dec 16 '19 16:12 StraToN