1

I would like to find a beginner test program for audio in Python. A program that can play sounds (.wav files or whatever). From the code, I can then begin to learn how to work with audio output.

Specifically, I am thinking of having the audio go out over the HDMI to my monitor. Any beginner program will help. I can do the research on the individual commands after seeing the basics. If the program only sends to the audio output jack, that will be a good start also. (And yes, I have searched the site for "audio test program", and more).

I have looked here on stack exchange , but there isn't shown a program to get started.

2

Further looking, I have answered my own question sufficiently.

I had been looking in Python but found my answers more related to Linux or Raspbian. The commands are related to using alsa-utils and were already on my disk.

The following commands allow me to hear audio on my headphones:

modprobe snd_bcm2835  # apparently addresses the processor audio section.
amixer cset numid=1 90%  # sets volume
aplay chime.wav  # my file chime.wav and heard through the audio headphone jack on Pi
| improve this answer | |
  • btw, amixer cset numid=3 2 will enroute you audio to the HDMI instead the analog ;) – javirs May 23 '14 at 8:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.