Selecting a audio port using ptb in ubuntu

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Ubuntu 22.04
PsychoPy version (e.g. 1.84.x): 2023
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
I wanted to present the audio stimulus to subject on the ubuntu software. When i will be presenting the audio stimulus i will be recording the brain activity of the subjects. So basically for least latency, i am using ptb and connected my audio jack(that goes to eeg recording booth) to some port which is not the headphone port that is present infront, but behind.

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.
Now when i run the experiment, the audio stimulus is not coming in the headphone, but rather played automatically with the speaker. not able to figure out or control specifically to send my audio stimulus through some specific audio port using ptb. How to do that. Any help will be good.
Regards