How to output a sound over the 3.5 mm jack of the Raspberry Pi using Python? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 4

How to output a sound over the 3.5 mm jack of the Raspberry Pi using Python?

I want to play a simple 440 Hz sound [no solutions about playing files please] + using the 3.5 mm jack [no GPIO solutions here please] plugged loudspeaker of the raspberry pi + using a python script without any additional library that i have to download EDIT 1: the audio output for the raspberry pi works fine. my problem is only that i cant find a code for Python to output sound.

15th Apr 2017, 9:41 PM
Johann Leis
Johann Leis - avatar
1 Réponse
+ 3
you can select the audio output in the raspiconfig menu. Probably you have it set to hdmi out. Select the audio jack option. https://www.raspberrypi.org/documentation/configuration/audio-config.md
20th Apr 2017, 9:41 PM
seamiki
seamiki - avatar