title: No Sound - RPi Cam Web Interface
body: <p>I have a project about streaming camera via Web Interface. I use the RPi Cam Web Interface.</p>
  <p>I have an issue with the sound. I want to run .mp3 .ogg or .wav, code is work in thonny or therminal but when i use the userbuttons, the code
  works but the sound doesnt work. By the way userbuttons run the python code via .sh files.</p>
  <p>I tried to run this command but it doesnt work too. ( <strong>sudo adduser www-data audio</strong> )</p>
  <p>i am using pygame and i have written these codes which is following line;</p>
  <pre><code>import serial
  import pygame
  import time
  
  ser=serial.Serial('/dev/serial0',115200,timeout=1)
  ser.write(b&quot;Hello World&quot;)
  ser.close()
  
  pygame.init()
  asound = pygame.mixer.sound('/home/pi/02.ogg') # i used the .mp3 and .wav but the problem is not solved
  achannel = pygame.mixer.Channel(1)
  achannel.stop()
  achannel.play(asound)
  time.sleep(10)
  </code></pre>
  <p>does anyone know how to solve this problem ?</p>