{"id":13451007,"url":"https://github.com/roaldnefs/airpods","last_synced_at":"2025-10-04T07:23:26.076Z","repository":{"id":114855705,"uuid":"330474922","full_name":"roaldnefs/airpods","owner":"roaldnefs","description":"AirPods sound quality fixer and battery life enhancer for macOS.","archived":false,"fork":false,"pushed_at":"2021-11-01T08:24:43.000Z","size":770,"stargazers_count":42,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-17T14:03:23.576Z","etag":null,"topics":["airpods","airpodspro","apple","applescript","macos"],"latest_commit_sha":null,"homepage":"","language":"AppleScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roaldnefs.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":"2021-01-17T19:58:06.000Z","updated_at":"2025-03-09T14:03:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"7adf5261-6846-42b2-bb56-000e18e94653","html_url":"https://github.com/roaldnefs/airpods","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/roaldnefs%2Fairpods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaldnefs%2Fairpods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaldnefs%2Fairpods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaldnefs%2Fairpods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roaldnefs","download_url":"https://codeload.github.com/roaldnefs/airpods/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244543709,"owners_count":20469547,"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":["airpods","airpodspro","apple","applescript","macos"],"created_at":"2024-07-31T07:00:45.380Z","updated_at":"2025-10-04T07:23:21.011Z","avatar_url":"https://github.com/roaldnefs.png","language":"AppleScript","funding_links":[],"categories":["AppleScript"],"sub_categories":[],"readme":"\n\u003ca href=\"https://github.com/roaldnefs/airpods\" style=\"color: black;\"\u003e\n    \u003ch1 align=\"center\"\u003eAirPods fix for macOS\u003c/h1\u003e\n\u003c/a\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/roaldnefs/airpods\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/stars/roaldnefs/airpods?style=for-the-badge\u0026color=blue\"\n            alt=\"GitHub stars\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/roaldnefs/airpods\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/platform-macos-blue?style=for-the-badge\"\n            alt=\"Platform\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://raw.githubusercontent.com/roaldnefs/airpods/main/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/roaldnefs/airpods?color=blue\u0026style=for-the-badge\"\n            alt=\"License\"\u003e\n    \u003c/a\u003e\n    \u003c/br\u003e\n    AirPods sound quality fixer and battery life enhancer for \u003cb\u003emacOS\u003c/b\u003e.\n    \u003cbr /\u003e\n    \u003ca href=\"#usage\"\u003e\u003cstrong\u003eUsage »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"#explanation\"\u003eExplanation\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/roaldnefs/airpods/issues/new\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/roaldnefs/airpods/issues/new\"\u003eRequest Feature\u003c/a\u003e\n\u003c/p\u003e\n\n## Contents\n- [Contents](#contents)\n- [Usage](#usage)\n  - [Setup keyboard shortcut using Automator](#setup-keyboard-shortcut-using-automator)\n- [Explanation](#explanation)\n- [References](#references)\n## Usage\n### Setup keyboard shortcut using Automator\n[\u003cimg align=\"left\" height=\"94px\" width=\"94px\" alt=\"Automator\" src=\"https://help.apple.com/assets/5E3B0F0A094622FF6DF0257E/5E3B0F0C094622FF6DF02585/en_GB/573f95d708cbb258343f5c78cc439bcb.png\"/\u003e](https://support.apple.com/en-gb/guide/automator/welcome/mac)\n**Description:** Setup a keyboard shortcut to change the sound input device to the built-in microphone using [Automator](https://support.apple.com/en-gb/guide/automator/welcome/mac).\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eShow instructions\u003c/b\u003e\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n1. Open [Automator](https://support.apple.com/en-gb/guide/automator/welcome/mac).\n1. Make a **Quick Action**.\n1. Make sure it receives **no input** at all programs.\n1. Select **Run Apple Script** and paste the contents from `airpods.applescript`.\n1. Save the **Quick Action**.\n1. Open **System Preferences** \u003e **Keyboard** \u003e **Shortcuts** and select **Services** from the sidebar and find your under the **General** section.\n1. Add a shortcut by double clicking `(none)`.\n\n\u003c/details\u003e\n\n## Explanation\nWhen the microphone on the AirPods is enabled, the Bluetooth protocol and the compression protocol is changed from A2DP to HSP, downgrading the audio format from 48 kHz to 16 kHz.\n\nUsing  [Audio MIDI Setup](https://support.apple.com/en-gb/guide/audio-midi-setup/welcome/mac) you can this yourself. When the MacBook Pro Microphone is selected as the input device, the AirPods will output at 48,0 kHz:\n\n![AirPods output at 48,0 kHz](screenshots/screenshot_48khz.png)\n\nWhen the AirPods itself are selected as the input device, they will only output at 16,0 kHz:\n\n![AirPods output at 16,0 kHz](screenshots/screenshot_16khz.png)\n\n## References\nFor references and further information about the Airpods issue see:\n- Apple Community: [AirPods stuck on 16kHz/ SCO codec](https://discussions.apple.com/thread/251360777?answerId=252681287022#252681287022)\n- Jeff Geerling’s blog post: [AirPods get stuck in low-quality 16 kHz audio mode when starting a VM](https://www.jeffgeerling.com/blog/2018/airpods-get-stuck-low-quality-16-khz-audio-mode-when-starting-vm)\n- Reddit r/airpods: [AirPods low quality issue](https://www.reddit.com/r/airpods/comments/6jqqu4/airpods_low_quality_issue/)\n\nFor a collection of AppleScript snippets, applets, resources and links, see: [roaldnefs/applescript](https://github.com/roaldnefs/applescript).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froaldnefs%2Fairpods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froaldnefs%2Fairpods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froaldnefs%2Fairpods/lists"}