Change the TTS voice in a function based on the contents of the message?

I am new to Node-RED and experimenting with functions

What I would like to do is to change the voice used by TTS depending on the content of the message. I can parse the message and determine whether the voice should be changed but how do I change it ?

I am currently using the play audio node but the only way that I can see to change the voice is from the node properties but, of course, this sets the voice for all messages, which is not what I want. I suspect that there may be other nodes available that can do what I want but I can't find one

EDIT : I am experimenting with the switch node which seems to allow me to do what I want

I also use the switch node to channel the messages to different audio out nodes to play in different voices based on message content.