{"id":13823522,"url":"https://github.com/aerth/playwav","last_synced_at":"2025-06-24T06:37:44.439Z","repository":{"id":95083088,"uuid":"85897332","full_name":"aerth/playwav","owner":"aerth","description":"play a wav file using Golang, ALSA","archived":false,"fork":false,"pushed_at":"2024-11-17T18:32:01.000Z","size":12,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T11:11:18.274Z","etag":null,"topics":["alsa","audio","linux","sound","wav"],"latest_commit_sha":null,"homepage":"","language":"Go","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/aerth.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}},"created_at":"2017-03-23T02:21:43.000Z","updated_at":"2024-11-17T18:32:05.000Z","dependencies_parsed_at":"2023-04-03T23:03:08.022Z","dependency_job_id":null,"html_url":"https://github.com/aerth/playwav","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aerth/playwav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fplaywav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fplaywav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fplaywav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fplaywav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aerth","download_url":"https://codeload.github.com/aerth/playwav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerth%2Fplaywav/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261622815,"owners_count":23186023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","audio","linux","sound","wav"],"created_at":"2024-08-04T09:00:36.039Z","updated_at":"2025-06-24T06:37:44.404Z","avatar_url":"https://github.com/aerth.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# playwav\n\n## play a .wav file\n\n  * stuck with FormatS16LE for now (Little Endian 16, 2 bytes per sample)\n  * compilation adds requirements: CGO and some c libraries (ALSA)\n\n## playwav command\n  ```go get -v github.com/aerth/playwav/cmd/playwav```\n  \nif not build because cant found 'alsa/a ... .h\" \ntry it:\n```\nsudo apt-get install libasound2-dev\n```\n\n## playwav library\n\n```\nimport \"github.com/aerth/playwav\"\n\n// from file\nplaywav.FromFile(\"example.wav\")\n\n```\n\n## cool test with playwav command\n\n```\nfor i in $(find /usr/ -name '*.wav'); do ./playwav $i; done\n```\n\n## output of ldd for playwav command:\n\n```\n    linux-vdso.so.1 (0x00007fff27fcf000)\n    libasound.so.2 =\u003e /usr/lib64/libasound.so.2 (0x00007f418a496000)\n    libpthread.so.0 =\u003e /lib64/libpthread.so.0 (0x00007f418a278000)\n    libc.so.6 =\u003e /lib64/libc.so.6 (0x00007f4189eb2000)\n    libm.so.6 =\u003e /lib64/libm.so.6 (0x00007f4189ba9000)\n    libdl.so.2 =\u003e /lib64/libdl.so.2 (0x00007f41899a5000)\n    librt.so.1 =\u003e /lib64/librt.so.1 (0x00007f418979b000)\n    /lib64/ld-linux-x86-64.so.2 (0x000055ab41acf000)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerth%2Fplaywav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faerth%2Fplaywav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerth%2Fplaywav/lists"}