error on pygame.mixer.init()

If you’re creating a debugging post, please include the following info:

  1. Are you running your app locally or is it deployed? Deployed
  2. If your app is deployed:
    a. Is it deployed on Community Cloud or another hosting platform?
    b. Share the link to the public deployed app.
    https://timeannouncer-h9vhpqpaearquv798bof8q.streamlit.app
  3. Share the link to your app’s public GitHub repository (including a requirements file).
    GitHub - meenu517/TimeAnnouncer
  4. Share the full text of the error message (not a screenshot). unable to initializer mixer pygame.mixer.init()
  5. Share the Streamlit and Python versions.
    locally playsound, pygame are working fine

pygame.mixer needs to use a local audio device, but streamlit cloud runs your app in a headless server which has no such device.