{"id":23084126,"url":"https://github.com/echogarden-project/macos-native-tts","last_synced_at":"2026-02-26T12:01:40.425Z","repository":{"id":265054061,"uuid":"894986923","full_name":"echogarden-project/macos-native-tts","owner":"echogarden-project","description":"Node.js binding to the macOS native text-to-speech API (AVSpeechSynthesizer).","archived":false,"fork":false,"pushed_at":"2024-11-27T11:31:02.000Z","size":108,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-28T02:49:09.189Z","etag":null,"topics":["macos","nodejs","text-to-speech"],"latest_commit_sha":null,"homepage":"","language":"C++","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/echogarden-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-11-27T11:06:01.000Z","updated_at":"2025-07-02T11:22:28.000Z","dependencies_parsed_at":"2024-11-27T14:45:07.580Z","dependency_job_id":null,"html_url":"https://github.com/echogarden-project/macos-native-tts","commit_stats":null,"previous_names":["echogarden-project/macos-native-tts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/echogarden-project/macos-native-tts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echogarden-project%2Fmacos-native-tts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echogarden-project%2Fmacos-native-tts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echogarden-project%2Fmacos-native-tts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echogarden-project%2Fmacos-native-tts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echogarden-project","download_url":"https://codeload.github.com/echogarden-project/macos-native-tts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echogarden-project%2Fmacos-native-tts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29858461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"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":["macos","nodejs","text-to-speech"],"created_at":"2024-12-16T15:49:09.342Z","updated_at":"2026-02-26T12:01:40.411Z","avatar_url":"https://github.com/echogarden-project.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js binding to the macOS native speech synthesizer\n\nUses N-API to bind to the native macOS [`AVSpeechSynthesizer`](https://developer.apple.com/documentation/avfaudio/avspeechsynthesizer/) API.\n\n* Speech is returned as a `Int16Array` raw PCM, `22050` Hz mono\n* Will recognize voices installed via the macOS OS\n* Addon binaries are pre-bundled. Doesn't require any install-time postprocessing\n* Supports macOS `10.14` and later, x64 and arm64\n\n## Installation\n\n`npm install @echogarden/macos-native-tts`\n\n## Usage examples\n\n### Synthesize text\n\n```ts\nimport { synthesize } from '@echogarden/macos-native-tts'\n\nconst text = `\nHello World! How are you doing today?\n`\n\nconst { audioSamples, sampleRate } = synthesize(text, {\n\tvoice: 'en-US',\n\trate: 0.5,\n\tpitchMultiplier: 1.0,\n\tvolume: 1.0,\n})\n```\n\nThe returned `audioSamples` is an `Int16Array` containing mono samples at a sample rate of `sampleRate` (usually `22050` or `11025` Hz).\n\n### List voices:\n```ts\nimport { getVoiceList } from '@echogarden/macos-native-tts'\n\nconst voices = getVoiceList()\n\nconsole.log(voices)\n```\nPrints:\n\n```ts\n[\n  {\n    identifier: 'com.apple.voice.compact.ar-001.Maged',\n    name: 'Majed',\n    quality: 1,\n    gender: 'male',\n    language: 'ar-001'\n  },\n  {\n    identifier: 'com.apple.voice.compact.bg-BG.Daria',\n    name: 'Daria',\n    quality: 1,\n    gender: 'female',\n    language: 'bg-BG'\n  },\n  {\n    identifier: 'com.apple.voice.compact.ca-ES.Montserrat',\n    name: 'Montse',\n    quality: 1,\n    gender: 'female',\n    language: 'ca-ES'\n  },\n\n  //...\n]\n```\n\n## Building the N-API addons\n\nThe library is bundled with pre-built addons, so recompilation shouldn't be needed.\n\nIf you still want to compile yourself, for a modification or a fork:\n\n* In the `addons` directory, run `npm install`, which would install the necessary build tools.\n* Then run `npm run build-x64` (x64) or `npm run build-arm64` (arm64)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechogarden-project%2Fmacos-native-tts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fechogarden-project%2Fmacos-native-tts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechogarden-project%2Fmacos-native-tts/lists"}