godot-dialogtreetools
godot-dialogtreetools copied to clipboard
Support voice for Line node
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.
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!
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)