Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import alsaaudio
- out = alsaaudio.PCM(alsaaudio.PCM_PLAYBACK)
- out.setchannels(1)
- out.setrate(8000)
- out.setformat(alsaaudio.PCM_FORMAT_S16_LE)
- out.setperiodsize(160)
- while True:
- #ingresar algún método para recibir la data
- out.write(data)
Advertisement
Add Comment
Please, Sign In to add comment