# No audio through headphone jack

**URL:** <https://in-thread.sonic-pi.net/t/no-audio-through-headphone-jack/4549>\
**Category:** Support, Help & Resources\
**Created:** [October 28, 2020, 7:08pm UTC](https://in-thread.sonic-pi.net/t/no-audio-through-headphone-jack/4549 "2020-10-28T19:08:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PreSkool](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@PreSkool](https://in-thread.sonic-pi.net/u/PreSkool)\
**Post date:** [October 28, 2020, 7:08pm UTC](https://in-thread.sonic-pi.net/t/no-audio-through-headphone-jack/4549/1 "2020-10-28T19:08:27Z")

</div>

Hello,

I installed Sonic-pi 3.2.2.4, on my Raspberry Pi 4. Can’t switch audio from HDMI to headphone output. The headphone output works fine when I play a Youtube video, but sonic-pi only outputs via my hdmi display. I set the OS preferences to analog. New to sonic-pi, I am sure I ammissing something, if any one can help I would appreciate it.

---

<div class="post-metadata">

**Author:** ![maedoc](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/maedoc/32/1077_2.png) [@maedoc](https://in-thread.sonic-pi.net/u/maedoc)\
**Post date:** [October 28, 2020, 7:14pm UTC](https://in-thread.sonic-pi.net/t/no-audio-through-headphone-jack/4549/2 "2020-10-28T19:14:14Z")

</div>

On my RPi3 I had to set the preference to headphone jack and then restart sonic. Or restart the RPi? Not sure which but both are worth trying.

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [October 28, 2020, 10:58pm UTC](https://in-thread.sonic-pi.net/t/no-audio-through-headphone-jack/4549/3 "2020-10-28T22:58:27Z")

</div>

Yes you have to select the audio output required BEFORE starting Sonic Pi. It uses the value which is the current default when it starts, and you can’t change it without stopping Sonic Pi, changing the default, then restarting it.

---

<div class="post-metadata">

**Author:** ![PreSkool](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@PreSkool](https://in-thread.sonic-pi.net/u/PreSkool)\
**Post date:** [November 23, 2020, 6:09pm UTC](https://in-thread.sonic-pi.net/t/no-audio-through-headphone-jack/4549/4 "2020-11-23T18:09:34Z")

</div>

Solved! Turning on the audio preferences on the computer before starting the Sonic Pi, ( latest version) got the audio going through the headphone jack. Thanks very much for the help
