{"id":45733613,"url":"https://github.com/sippy/libg722","last_synced_at":"2026-02-25T10:12:14.603Z","repository":{"id":25757076,"uuid":"29195097","full_name":"sippy/libg722","owner":"sippy","description":"The ITU G.722 codec, Copyright (C) 2005 Steve Underwood, Copyright (c) CMU 1993 Computer Science, Speech Group Chengxiang Lu and Alex Hauptmann","archived":false,"fork":false,"pushed_at":"2025-12-26T04:51:21.000Z","size":165,"stargazers_count":39,"open_issues_count":1,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-12-27T12:27:12.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sippy.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-01-13T15:02:43.000Z","updated_at":"2025-12-26T04:51:25.000Z","dependencies_parsed_at":"2024-04-22T02:17:02.089Z","dependency_job_id":"b70ecbaa-a225-48bb-9f9c-e9349d4d8304","html_url":"https://github.com/sippy/libg722","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/sippy/libg722","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sippy%2Flibg722","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sippy%2Flibg722/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sippy%2Flibg722/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sippy%2Flibg722/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sippy","download_url":"https://codeload.github.com/sippy/libg722/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sippy%2Flibg722/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29817358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","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":[],"created_at":"2026-02-25T10:12:13.186Z","updated_at":"2026-02-25T10:12:14.589Z","avatar_url":"https://github.com/sippy.png","language":"C","funding_links":[],"categories":["Interconnect"],"sub_categories":["SBC, IMS"],"readme":"# libg722\n\n[![Build \u0026 Test](https://github.com/sippy/libg722/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/sippy/libg722/actions/workflows/build_and_test.yml)\n\n## Introduction\n\nThe G.722 module is a bit exact implementation of the ITU G.722 specification\nfor all three specified bit rates - 64000bps, 56000bps and 48000bps. It passes\nthe ITU tests.\n\nTo allow fast and flexible interworking with narrow band telephony, the\nencoder and decoder support an option for the linear audio to be an 8k\nsamples/second stream. In this mode the codec is considerably faster, and\nstill fully compatible with wideband terminals using G.722.\n\n## History\n\nThe code was originally written by Milton Anderson \u003cmilton@thumper.bellcore.com\u003e\nfrom BELLCORE, and has been modified by the Chengxiang Lu and Alex Hauptmann\nfrom the Speech Group, School of Computer Science, Carnegie Mellon University,\nto be fairly fast and efficient, while retaining high fidelity.\n\nSteve Underwood \u003csteveu@coppice.org\u003e improved the code a lot later on and\ncontributed it into several popular open source projects.\n\nHimanshu Soni \u003csonihimanshu@gmail.com\u003e has adjusted some coefficients\nto avoid over/under-flows in the decoder.\n\nPhil Schatzmann \u003cphil.schatzmann@gmail.com\u003e has added cmake-glue and Arduino\nsupport.\n\nLibrarized by Sippy Software, Inc.\n\n## Build and Install library:\n\n### MacOS \u0026 Linux\n\n```\ngit clone https://github.com/sippy/libg722.git\ncmake -B libg722/build -S libg722\nmake -C libg722/build clean all test install\n```\n\n**Note for macOS users:** The library will be installed to `~/Library/libg722` by default. If you prefer a different location, you can specify it with:\n```\ncmake -B libg722/build -S libg722 -DCMAKE_INSTALL_PREFIX=/your/preferred/path\n```\n\nAfter installation, you may need to add the library path to your environment:\n```\nexport DYLD_LIBRARY_PATH=\"$HOME/Library/libg722/lib:$DYLD_LIBRARY_PATH\"\n```\n\n### iOS\n\n```\ngit clone https://github.com/sippy/libg722.git\ncmake -B libg722/build-ios-device -S libg722 \\\n  -DCMAKE_SYSTEM_NAME=iOS \\\n  -DCMAKE_OSX_ARCHITECTURES=arm64 \\\n  -DCMAKE_OSX_SYSROOT=iphoneos \\\n  -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0\nmake -C libg722/build-ios-device\n```\n\n## Install Python module from PyPy:\n\n```\npip install G722\n```\n\n## Build and Install Python module from source code:\n\n```\ngit clone https://github.com/sippy/libg722.git\npip install libg722/\n```\n\nTo build/install without NumPy support, set `LIBG722_NO_NUMPY=1`:\n\n```\nLIBG722_NO_NUMPY=1 pip install libg722/\n```\n\n`LIBG722_BUILD_MODE` controls build profile for the main `G722` extension:\n- `production`: build with optimization (`-O2`, or `/O2` on Windows).\n- `debug`: build with `-g3 -O0`.\n- `auto` (default): if `.` is a git repository, run `git diff v{version} -- .`; build in `debug` mode when it differs, otherwise `production`. If `.` is not a git repository, use `production`.\n\n`G722(sample_rate, bit_rate, use_numpy=None)` accepts an optional `use_numpy` flag:\n- `True`: return NumPy arrays from `decode()` (raises if built without NumPy support).\n- `False`: return Python `array('h')` from `decode()`.\n- omitted: use the build default (NumPy arrays when available, otherwise `array('h')`).\n\n## Pull library into your Docker container:\n```\nARG BASE_IMAGE=debian:sid-slim\nARG LIBG722_IMAGE=sippylabs/libg722:latest-debian_sid-slim\nFROM ${LIBG722_IMAGE} AS libg722\nFROM ${BASE_IMAGE} AS build\nCOPY --from=libg722 /usr/local/lib/libg722.* /usr/local/lib/\nCOPY --from=libg722 /usr/local/include/g722* /usr/local/include/\n```\n\n## License\n\nThis code is mostly Public Domain. Library test code is under BSD 2-clause\nlicense.\n\nSee LICENSE for copyright details and each individual file for specifics.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsippy%2Flibg722","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsippy%2Flibg722","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsippy%2Flibg722/lists"}