{"id":15940456,"url":"https://github.com/keinos/dockerfile_of_speaker-test-for-machost","last_synced_at":"2026-03-09T11:03:24.731Z","repository":{"id":102704417,"uuid":"199233880","full_name":"KEINOS/Dockerfile_of_Speaker-Test-for-MacHost","owner":"KEINOS","description":"✅ Just plays a test sound of ALSA from the macOS host's speaker in Docker container. (Debian slim base image)","archived":false,"fork":false,"pushed_at":"2020-03-16T02:08:05.000Z","size":14,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T08:42:23.735Z","etag":null,"topics":["alsa","dockerfile","macos","sound"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/keinos/speaker-test","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KEINOS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-28T02:35:28.000Z","updated_at":"2025-01-23T19:15:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f478a8e-2ae6-4075-bacc-0a497d9f57a3","html_url":"https://github.com/KEINOS/Dockerfile_of_Speaker-Test-for-MacHost","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KEINOS/Dockerfile_of_Speaker-Test-for-MacHost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KEINOS%2FDockerfile_of_Speaker-Test-for-MacHost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KEINOS%2FDockerfile_of_Speaker-Test-for-MacHost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KEINOS%2FDockerfile_of_Speaker-Test-for-MacHost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KEINOS%2FDockerfile_of_Speaker-Test-for-MacHost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KEINOS","download_url":"https://codeload.github.com/KEINOS/Dockerfile_of_Speaker-Test-for-MacHost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KEINOS%2FDockerfile_of_Speaker-Test-for-MacHost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30291844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alsa","dockerfile","macos","sound"],"created_at":"2024-10-07T06:41:38.483Z","updated_at":"2026-03-09T11:03:24.708Z","avatar_url":"https://github.com/KEINOS.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://images.microbadger.com/badges/image/keinos/speaker-test.svg)](https://microbadger.com/images/keinos/speaker-test \"View image details on microbadger.com\")\n[![](https://img.shields.io/docker/cloud/automated/keinos/speaker-test)](https://hub.docker.com/r/keinos/speaker-test \"View on Docker Hub\")\n[![](https://img.shields.io/docker/cloud/build/keinos/speaker-test)](https://hub.docker.com/r/keinos/speaker-test/builds \"View on Docker Hub\")\n\n# Speaker-Test for macOS Host\n\nThis Docker image just plays the [ALSA](https://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture)'s test sound in the container from the macOS host's speaker.\n\n```bash\ncurl -L https://git.io/Jvihu -o run-test-local.sh \u0026\u0026 chmod +x \"$_\"\n./run-test-local.sh\n```\n\n```bash\ndocker pull keinos/speaker-test\n```\n\n## Requirements\n\n- `pulseaudio` must be installed on your macOS host. Using [Homebrew](https://brew.sh/) is the easiest way.\n\n    ```shellsession\n    $ # Install pulseaudio\n    $ brew install pulseaudio\n    ...\n    ```\n\n## How to use\n\n### The Easy Way\n\nDownload the shell script from https://git.io/Jvihu and run.\n\n```shellsession\n$ # Download the script\n$ cd ~/\n$ curl -L https://git.io/Jvihu -o run-test-local.sh \u0026\u0026 chmod +x \"$_\"\n$ # Run the script\n$ ./run-test-local.sh\n```\n\n- **NOTE:** \n  - It might be asked for a permission to let PalseAudio access your host.\n  - https://git.io/Jvihu is an alias of https://KEINOS.github.io/Dockerfile_of_Speaker-Test-for-MacHost/run-test-local.sh\n\n### The Proper Way\n\n1. Be sure that `pulseaudio` is running on host's (macOS') backgroud as a daemon.\n\n    ```shellsession\n    $ # Run pulseaudio daemon\n    $ pulseaudio --load=module-native-protocol-tcp --exit-idle-time=-1 --daemon\n    ...\n    ```\n\n2. `pull` or `build` the image.\n\n    ```shellsession\n    $ docker pull keinos/speaker-test\n    ```\n\n    Or clone the repo and build it locally. Try if your architecture is not x86_64 and get errors.\n\n    ```shellsession\n    $ cd ~/\n    $ git clone https://github.com/KEINOS/Dockerfile_of_Speaker-Test-for-MacHost.git speaker-test\n    $ cd \"$_\"\n    $ docker build --no-cache -t keinos/speaker-test .\n    ```\n\n3. Run the container.\n\n    ```bash\n    docker run --rm -it -v ~/.config/pulse:/home/pulseaudio/.config/pulse keinos/speaker-test\n    ```\n\n    Be sure that `~/.config/pulse` directory exists in your host and contains files such like below:\n\n    ```shellsession\n    $ ls ~/.config/pulse\n    YourMachineName.local-card-database.x86_64-apple-darwin18.0.0.simple\n    YourMachineName.local-default-sink\n    YourMachineName.local-default-source\n    YourMachineName.local-device-volumes.x86_64-apple-darwin18.0.0.simple\n    YourMachineName.local-runtime\n    YourMachineName.local-stream-volumes.x86_64-apple-darwin18.0.0.simple\n    ```\n\n3. If you hear \"Front, left. Front, right\" then it works.\n\n## TIPS\n\n- How to check if the `pulseaudio` daemon is running.\n\n    ```shellsession\n    $ # Results if the daemon is running\n    $ pulseaudio --check -v\n    W: [] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.\n    I: [] main.c: Daemon running as PID 18848\n\n    $ # Results if the daemon is NOT running\n    $ pulseaudio --check -v\n    W: [] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.\n    I: [] main.c: Daemon not running\n    ```\n\n## Tested Machines\n\n- [List of env info that worked](https://github.com/KEINOS/Dockerfile_of_Speaker-Test-for-MacHost/issues/1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeinos%2Fdockerfile_of_speaker-test-for-machost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeinos%2Fdockerfile_of_speaker-test-for-machost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeinos%2Fdockerfile_of_speaker-test-for-machost/lists"}