I’ve been able to set the environment variable (see here), but I realized that setting NEMO_RESOURCE_CLASS_OVERRIDE=event
has an unintended side-effect: after the audio starts playing, the audio output will change to speaker+wired headphone.
Any idea how to avoid this behavior?