Maybe not the same but I had a similar problem some time ago when, I think, the speakers somehow broke the sound card socket. In he end I had to get a new sound card and speakers. You could check the sound output by using headphones and maybe borrow speakers. I would think new speakers are cheaper than another repair.
Samsung Galaxy S8 review