I want to achieve that, when my character gets smaller than default, the voice chat input should have a higher pitch. Is this possible to do?
Hello @Stickazzii !
I hope all is well.
I may need a bit more info about the effect you’re trying to create, but can give you a couple ideas of how to set up a tentative dynamic pitch shifting system! There are likely a couple ways of accomplishing thing, but could try the following:
First, let’s route the output of your local and non-local voice chat streams into a single Sound Class:
Then, create a Sound Class Mix asset and assign the Sound Class you’d like to modulate:
The next step is now going to involve creating a bit of logic to modify the pitch of the Sound Class (and thus the pitch of all streams running through this asset). You could test with a slider or other game object:
We’ll want to use the node “Set Sound Mix Modifier Override” and provide the character’s size as a percentage expressed as a decimal. You may want to invert this value so that as player’s size decreases, the pitch increases. This value would be fed as an input to the “Set Sound Mix Class Override” node.
This would then be followed by a “Push Sound Mix Modifier” that will essentially update the Sound Class on value changed.
Would also recommend checking out the Sound Class documentation for UE as it may provide extra insight!:
Hope this helps!
Kindly,
Eric
Hello, Eric!
Thank You for Your comment! It does work this way. I can easily change the pitch of the microphone input.
Have a nice day!