Step one is to connect the Android box to the TV with HDMI. Do you get picture and sound on the TV speakers? Make sure that the TV speakers are turned on in the TV menu.
Step two is to connect the soundbar to the TV audio output. How you do that depends on what audio outputs the TV has and what inputs the soundbar has. Check the owners manuals. You may need a converter if the connections don't match.