Train sounds not working in both train directions

add an ABS node in front of your speed variable:
That will retain the value but always returns a positive.