I have a ReactJS application that is deployed in AWS Amplify. The application has two mp3 files to play on certain conditions. They work fine in the localhost but in the deployed one I can't hear anything. Any ideas what could be wrong?
import ErrorSound from "../../assets/sounds/error.mp3";
import SuccessSound from "../../assets/sounds/success.mp3";
<audio controls={false} autoPlay>
<source src={props.correct ? SuccessSound : ErrorSound} type="audio/mpeg" />
</audio>