# Csound Working in a Docker Container, But Producing Silent Outputs

**URL:** <https://forum.csound.com/t/csound-working-in-a-docker-container-but-producing-silent-outputs/1636>\
**Category:** Newbies\
**Created:** [April 28, 2024, 12:50am UTC](https://forum.csound.com/t/csound-working-in-a-docker-container-but-producing-silent-outputs/1636 "2024-04-28T00:50:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabh](https://forum.csound.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@saurabh](https://forum.csound.com/u/saurabh)\
**Post date:** [April 28, 2024, 12:50am UTC](https://forum.csound.com/t/csound-working-in-a-docker-container-but-producing-silent-outputs/1636/1 "2024-04-28T00:50:56Z")

</div>

Hi all,

I installed Csound in a Docker container. It seems to be working in that I’m able to generate output files in .wav format but i cant hear anything.

I tried changing the sample rate of output file to 48kHz (as suggested here: [https://youtu.be/5cL5sQDyRD8?t=207](https://youtu.be/5cL5sQDyRD8?t=207)). To do that, I used the command `csound -r 48000 -o output.wav simple.orc simple.sco` and it does change the sample rate of my file from 44.1kHZ to 48kHz but I still don’t hear anything.

Do i need to change the setting of my csound installation inside Docker? If so, how do I do that? If not, why am i gettig silent outputs?

I’d appreciate any help. Thanks in advance! Sharing code below for additional reference:

Docker file —\>

```csound
# Start from a base image
FROM ubuntu:latest

# Update package lists
RUN apt-get update

# Install necessary dependencies
RUN apt-get install -y build-essential libsndfile1-dev libfftw3-dev libasound2-dev libjack-jackd2-dev

# Download and install Csound
RUN apt-get install -y csound

# Set the working directory
WORKDIR /app

# Set the command or entry point
CMD ["csound"]

```

simple.orc —\>

```csound
instr 1
  aOut oscil 1, 1000, 1
  out aOut
endin

```

simple.sco —\>

```csound
f1 0 8192 10 1
i1 0 30

```

---

<div class="post-metadata">

**Author:** ![Andy.Fillebrown](https://forum.csound.com/user_avatar/forum.csound.com/andy.fillebrown/32/40_2.png) [@Andy.Fillebrown](https://forum.csound.com/u/Andy.Fillebrown)\
**Post date:** [May 4, 2024, 6:35am UTC](https://forum.csound.com/t/csound-working-in-a-docker-container-but-producing-silent-outputs/1636/2 "2024-05-04T06:35:48Z")

</div>

I don’t know much about Docker, but you would probably need to setup the Docker container to use the host machine’s sound output in order to hear anything.

This example might help:

> **[GitHub - TheBiggerGuy/docker-pulseaudio-example: An example of a PulseAudio...](https://github.com/TheBiggerGuy/docker-pulseaudio-example)**
>
> An example of a PulseAudio app working within a Docker container using the hosts sound system - TheBiggerGuy/docker-pulseaudio-example
