{"id":17268186,"url":"https://github.com/gen2brain/aac-go","last_synced_at":"2025-04-14T08:31:39.908Z","repository":{"id":44632948,"uuid":"124017261","full_name":"gen2brain/aac-go","owner":"gen2brain","description":"Go bindings for vo-aacenc","archived":false,"fork":false,"pushed_at":"2023-01-19T10:22:05.000Z","size":218,"stargazers_count":62,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T22:04:18.459Z","etag":null,"topics":["aac","aac-audio","golang","golang-bindings"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gen2brain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-06T03:49:40.000Z","updated_at":"2025-02-15T15:19:19.000Z","dependencies_parsed_at":"2023-02-10T22:15:17.311Z","dependency_job_id":null,"html_url":"https://github.com/gen2brain/aac-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Faac-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Faac-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Faac-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Faac-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gen2brain","download_url":"https://codeload.github.com/gen2brain/aac-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248845600,"owners_count":21170818,"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":["aac","aac-audio","golang","golang-bindings"],"created_at":"2024-10-15T08:12:44.760Z","updated_at":"2025-04-14T08:31:39.852Z","avatar_url":"https://github.com/gen2brain.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## aac-go\n[![Build Status](https://github.com/gen2brain/aac-go/actions/workflows/build.yml/badge.svg)](https://github.com/gen2brain/aac-go/actions)\n[![GoDoc](https://godoc.org/github.com/gen2brain/aac-go?status.svg)](https://godoc.org/github.com/gen2brain/aac-go) \n[![Go Report Card](https://goreportcard.com/badge/github.com/gen2brain/aac-go?branch=master)](https://goreportcard.com/report/github.com/gen2brain/aac-go) \n\n`aac-go` provides AAC codec encoder based on [VisualOn AAC encoder](https://github.com/mstorsjo/vo-aacenc) library.\n\n### Installation\n\n    go get -u github.com/gen2brain/aac-go\n\n### Examples\n\nSee [micgrab](https://github.com/gen2brain/aac-go/blob/master/examples/micgrab/micgrab.go) example.\n\n### Usage\n\n```go\npackage main\n\nimport (\n\t\"bytes\"\n\t\"os\"\n\n\t\"github.com/gen2brain/aac-go\"\n\t\"github.com/youpy/go-wav\"\n)\n\nfunc main() {\n\tfile, err := os.Open(\"test.wav\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\twreader := wav.NewReader(file)\n\tf, err := wreader.Format()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tbuf := bytes.NewBuffer(make([]byte, 0))\n\n\topts := \u0026aac.Options{}\n\topts.SampleRate = int(f.SampleRate)\n\topts.NumChannels = int(f.NumChannels)\n\n\tenc, err := aac.NewEncoder(buf, opts)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\terr = enc.Encode(wreader)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\terr = enc.Close()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\terr = os.WriteFile(\"test.aac\", buf.Bytes(), 0644)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n\n## More\n\nFor H.264 encoder see [x264-go](https://github.com/gen2brain/x264-go).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen2brain%2Faac-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgen2brain%2Faac-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen2brain%2Faac-go/lists"}