# Pirate Audio Clock

**URL:** <https://forums.pimoroni.com/t/pirate-audio-clock/14217>\
**Category:** Support\
**Created:** [June 11, 2020, 8:12pm UTC](https://forums.pimoroni.com/t/pirate-audio-clock/14217 "2020-06-11T20:12:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DNSGeek](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DNSGeek](https://forums.pimoroni.com/u/DNSGeek)\
**Post date:** [June 11, 2020, 8:12pm UTC](https://forums.pimoroni.com/t/pirate-audio-clock/14217/1 "2020-06-11T20:12:09Z")

</div>

I have a Raspberry Pi Zero W with a Pirate Audio (with the mini speaker) HAT attached. I’m trying to make a silly little clock. All my work is being done in Python 3.

I’ve figured out how to display a picture on the LCD display and how to get the current time superimposed over it. I can also read the buttons and call functions when they’re pressed.

What I can’t figure out is how to send any audio to the speaker. I want to make the clock chime at 0, 15, 30 and 45. Being able to control the volume would be great also.

Does anyone have any info or examples of how to send audio to the speaker on this board?

Thanks!

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [June 11, 2020, 8:22pm UTC](https://forums.pimoroni.com/t/pirate-audio-clock/14217/2 "2020-06-11T20:22:05Z")

</div>

To make the pirate Audio the default audio device you need to edit the config.txt file.  
`sudo nano /boot/config.txt`  
and add the following two lines.  
`dtoverlay=hifiberry-dac`  
`gpio=25=op,dh`  
After that it goes something like this.

> <https://raspberrypi.stackexchange.com/questions/7088/playing-audio-files-with-python>

---

<div class="post-metadata">

**Author:** ![DNSGeek](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DNSGeek](https://forums.pimoroni.com/u/DNSGeek)\
**Post date:** [June 11, 2020, 8:31pm UTC](https://forums.pimoroni.com/t/pirate-audio-clock/14217/3 "2020-06-11T20:31:48Z")

</div>

I had

dtoverlay=hifiberry-dac  
gpio=25=op,dh

in my config.txt already. I just tried changing

dtparam=audio=on

To

dtparam=audio=off

and rebooting. That seemed to have fixed the issue. Thanks for your help!

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [June 12, 2020, 12:07am UTC](https://forums.pimoroni.com/t/pirate-audio-clock/14217/4 "2020-06-12T00:07:48Z")

</div>

That’s good to hear. I’ll have to go look up what dtparam=audio=off does. I believe turns off the built in sound chip?
