{"id":24905951,"url":"https://github.com/led-mirage/sapiclip","last_synced_at":"2026-04-27T23:38:31.620Z","repository":{"id":275163338,"uuid":"924118846","full_name":"led-mirage/SAPIClip","owner":"led-mirage","description":"SAPIClip is a utility program for Windows that automatically reads aloud text copied to the clipboard. ","archived":false,"fork":false,"pushed_at":"2025-01-31T15:29:37.000Z","size":1241,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T16:27:16.403Z","etag":null,"topics":["clipboard","multilingual","python","sapi5","text-to-speech","utilities","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","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/led-mirage.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":"2025-01-29T12:59:56.000Z","updated_at":"2025-01-31T15:29:41.000Z","dependencies_parsed_at":"2025-01-31T16:27:19.811Z","dependency_job_id":"129e55c1-b824-457d-a5bf-eea6363d40ad","html_url":"https://github.com/led-mirage/SAPIClip","commit_stats":null,"previous_names":["led-mirage/sapiclip"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/led-mirage%2FSAPIClip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/led-mirage%2FSAPIClip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/led-mirage%2FSAPIClip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/led-mirage%2FSAPIClip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/led-mirage","download_url":"https://codeload.github.com/led-mirage/SAPIClip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245931756,"owners_count":20695959,"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":["clipboard","multilingual","python","sapi5","text-to-speech","utilities","windows"],"created_at":"2025-02-02T00:26:19.259Z","updated_at":"2026-04-27T23:38:31.614Z","avatar_url":"https://github.com/led-mirage.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"image/application.ico\" width=\"48\"\u003e SAPIClip\n\n[![GitHub All Releases](https://img.shields.io/github/downloads/led-mirage/SAPIClip/total?color=blue)](https://github.com/led-mirage/SAPIClip/releases)\n[![GitHub release](https://img.shields.io/github/v/release/led-mirage/SAPIClip?color=blue)](https://github.com/led-mirage/SAPIClip/releases)\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nCopyright (c) 2025-2026 led-mirage\n\n[English](Readme_en.md)\n\n## 概要\n\n`SAPIClip（サピクリップ）`は、Windows用のユーティリティプログラムで、クリップボードにコピーされたテキストを自動的に読み上げます。SAPI5を利用した多言語対応の音声合成を特徴とし、言語の自動検出も行います。仕事や勉強の効率化に最適なツールです。\n\n## 姉妹アプリケーション\n\n| アプリ | 音声合成エンジン | エンジン備考 |\n|-|-|-|\n| [VoivoClip](https://github.com/led-mirage/VoivoClip) | [VOICEVOX](https://voicevox.hiroshiba.jp/) | 別途インストールが必要（無料） |\n| [CoeiroClip](https://github.com/led-mirage/CoeiroClip) | [COEIROINK](https://coeiroink.com/) | 別途インストールが必要（無料） |\n| [AivoClip](https://github.com/led-mirage/AivoClip) | [A.I.Voice](https://aivoice.jp/) | 別途インストールが必要（有料） |\n| [SAPIClip](https://github.com/led-mirage/SAPIClip) | SAPI5 | Windows標準（無料） |\n\n## デモ\n\nhttps://github.com/user-attachments/assets/c029f66b-f2df-4e5a-9b24-1d208fb0e03d\n\n## 機能\n\n- **自動クリップボード監視:** クリップボードに新しいテキストがコピーされると、自動で検出し読み上げを開始します。\n- **多言語対応の音声合成:** SAPI5を使用し、さまざまな言語を自動で読み上げることができます。\n- **音声の切り替え:** 利用可能な音声（話者）間で簡単に切り替えができ、好みの声を選択できます。\n- **言語の自動検出:** 話者を`Auto`にすることで言語の自動検出も行い、対応する音声での合成を実現します。\n- **話速設定:** 話速を調節できるので、自分の好みに合わせて音声の速さを変更可能です。\n- **シンプルなインターフェース:** GUIは直感的に操作でき、コンパクトなため邪魔になりなりません。\n- **繰り返し再生:** 最後に読み上げた内容を簡単に再生し直すことができます。\n\n## 動作確認環境\n\n- Windows 11 Pro 25H2\n- Python 3.12.0\n\n※アプリケーションは Windows 10でも、Homeエディションでも動作すると思いますが、その環境でのテストは行っていません。\n\n## 実行方法\n\n### 🛩️ 実行ファイル（EXE）を使う場合\n\n#### 1. プロジェクト用のフォルダの作成\n\n任意の場所にプロジェクト用のフォルダを作成してください。\n\n#### 2. アプリのダウンロード\n\n以下のリンクから SAPIClip.ZIP をダウンロードして、作成したフォルダに解凍してください。\n\nhttps://github.com/led-mirage/SAPIClip/releases/tag/v0.1.2\n\n#### 3. 実行\n\nSAPIClip.exe をダブルクリックすればアプリが起動します。\n\n### 🛩️ Pythonで実行する場合\n\n#### 1. プロジェクト用のフォルダの作成\n\n任意の場所にプロジェクト用のフォルダを作成してください。\n\n#### 2. ターミナルの起動\n\nターミナルかコマンドプロンプトを起動して、作成したプロジェクトフォルダに移動します。\n\n#### 3. ソースファイルのダウンロード\n\nZIPファイルをダウンロードして作成したフォルダに展開してください。  \nまたは、Gitが使える方は以下のコマンドを実行してクローンしてもOKです。\n\n```bash\ngit clone https://github.com/led-mirage/SAPIClip.git\n```\n\n#### 4. ライブラリのインストール\n\n以下のコマンドを実行して必要なライブラリをインストールします。\n\n```bash\npip install -r requirements.txt\n```\n\n#### 5. 実行\n\n以下のコマンドを実行するとアプリが起動します。  \n\n```bash\npython src\\application.py\n```\n\n## 設定\n\n### ⚙️ アプリケーション設定ファイル\n\n`settings.json`ファイルにはこのアプリの設定情報が記載されています。\n\n※プログラム引数で設定ファイル名を渡すことで、使用する設定ファイルを切り替えることができます。  \n例）SAPIClip --setting my_settings.json\n\n#### ✨ voice（既定値 Auto）\n\n使用する音声名を記載します。`Auto`を指定すると、読み上げるテキストにあった音声を自動選択し読み上げます。\n\n#### ✨ speed（既定値 1.2）\n\n読み上げの速さの設定です。アプリのGUIで設定できます。\n\n#### ✨ replacements（既定値 []）\n\n読み上げるテキストの置換設定です。置換対象（pattern）を正規表現で、置換後の文字列（replacement）を通常の文字列で指定します。\n\n例えば括弧内のテキストと、URLを除去して読み上げたい場合は、以下のように設定します。置換パターンは複数個記載でき、上から順に処理されます。\n\n```json\n    \"replacements\": [\n        {\n            \"pattern\": \"\\\\(.*?\\\\)|（.*?）\",\n            \"replacement\": \"\"\n        },\n        {\n            \"pattern\": \"https?:\\\\/\\\\/(?:[\\\\w\\\\-\\\\.]+)+(?:[\\\\w\\\\.\\\\/\\\\?%\u0026=]*)?\",\n            \"replacement\": \"\"\n        }\n    ]\n```\n\n#### ✨ preferred_voices（既定値 下記参照）\n\n音声が`Auto`の際に優先される音声名を言語ごと指定できます。下記既定値では、テキストが英語の場合には`Microsoft Zira`が使われ、日本語の場合では`Microsoft Haruka`が使用されます。\n\nテキストから推論された言語の音声がインストールされていない場合は、ここで指定した最初の言語の音声が使用されます。例えば、テキストがフランス語でフランス語の音声がインストールされていない場合、`Microsoft Zira`で読み上げようと試みます。\n\n```json\n    \"preferred_voices\": {\n        \"en\": [\n            \"Microsoft Zira Desktop\"\n        ],\n        \"ja\": [\n            \"Microsoft Haruka\"\n        ]\n    }\n```\n\n## 音声の追加\n\nWindows 11で音声を追加する方法を説明します。\n\n1. Windowsの設定を開き、`時刻と言語` - `音声認識`と進みます。\n2. 音声の管理の`音声を追加`ボタンを押して、インストールしたい言語を追加します。\n\n**注意事項:** 追加ボタンを押してもすぐには反映されません。インストールの経過も表示されないので不安になりますが、しばらく待つとインストールされます。ちょっと不親切なインターフェイスです。\n\n## 注意事項\n\n### ⚡ ウィルス対策ソフトの誤認問題\n\nこのプログラムの実行ファイル（SAPIClip.exe）は PyInstaller というライブラリを使って作成していますが、ウィルス対策ソフトにマルウェアと誤認されることがあります。\n\nもちろん、このアプリに悪意のあるプログラムは入っていませんが、気になる人は上記の「Pythonで実行する方法」で実行してください。\n\n誤認問題が解決できるのが一番いいのですが、いい方法が見つかっていないので申し訳ありませんがご了承ください。\n\nVirusTotalでの[チェック結果](https://www.virustotal.com/gui/file/a9484323a331fd7657e085591e0ae439898dc792e44f0867fedc6db2e798ea8d/detection)は以下の通りです（2026/02/14 v0.1.2）  \nSAPIClip.exe … 72個中3個のアンチウィルスエンジンで検出\n\n\u003cimg src=\"doc/virustotal_0.1.2.png\" width=\"600\"\u003e\n\n## 使用しているライブラリ\n\n### 🔖 pyperclip 1.9.0 \n\nホームページ： https://github.com/asweigart/pyperclip/tree/master  \nライセンス：[BSD 3-Clause \"New\" or \"Revised\" License](https://github.com/asweigart/pyperclip/blob/master/LICENSE.txt)\n\n### 🔖 Pillow 12.1.1\n\nホームページ： https://github.com/python-pillow/Pillow  \nライセンス：[MIT-CMUライセンス](https://github.com/python-pillow/Pillow/blob/main/LICENSE)\n\n### 🔖 langdetect 1.0.9\n\nホームページ： https://github.com/Mimino666/langdetect  \nライセンス：[Apache License 2.0](https://github.com/Mimino666/langdetect/blob/master/LICENSE)\n\n### 🔖 pywin32 308\n\nホームページ： https://github.com/mhammond/pywin32  \nライセンス：[PSF-2.0 license](https://spdx.org/licenses/PSF-2.0.html)\n\n## ライセンス\n\n© 2025-2026 led-mirage\n\n本アプリケーションは [MITライセンス](https://opensource.org/licenses/MIT) の下で公開されています。詳細については、プロジェクトに含まれる LICENSE ファイルを参照してください。\n\n## バージョン履歴\n\n### 0.1.0 (2025/02/01)\n\n- ファーストリリース\n\n### 0.1.1 (2025/06/15)\n\n- 使用していないrequestsライブラリを削除\n\n### 0.1.2 (2026/02/14)\n\n- 高DPIディスプレイ対応（文字がぼやけないようにする）\n- pillowのバージョンを12.1.1に更新（CVE-2026-25990対応）\n- PyInstallerのバージョンを6.14.2に更新\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fled-mirage%2Fsapiclip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fled-mirage%2Fsapiclip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fled-mirage%2Fsapiclip/lists"}