Solution:
First, you need to determine whether the speaker supports the ARC function and whether the HDMI cable used is a standard cable of 1.4a or above. Second, connect the HDMI cable to the HDMI ARC interface of the TV and the speaker. Xiaomi TV needs to enable HDMI control option under Input section, the specific path: Settings-Input-HDMI Control.
Does it help?