Copyright (c) 2025 led-mirage
SAPIClip
is a utility program for Windows that automatically reads aloud text copied to the clipboard. It features multilingual speech synthesis utilizing SAPI5 and includes automatic language detection. This tool is perfect for enhancing efficiency in work and study.
Application | Speech Synthesis Engine | Engine Note |
---|---|---|
VoivoClip | VOICEVOX | Requires separate installation (Free) |
CoeiroClip | COEIROINK | Requires separate installation (Free) |
AivoClip | A.I.Voice | Requires separate installation (Paid) |
SAPIClip | SAPI5 | Built into Windows (Free) |
SAPIClip_0.1.0.mp4
- Automatic Clipboard Monitoring: Automatically detects and starts reading aloud whenever new text is copied to the clipboard.
- Multilingual Speech Synthesis: Utilizes SAPI5 to automatically read aloud in various languages.
- Voice Switching: Easily switch between available voices (speakers) and select your preferred voice.
- Automatic Language Detection: By setting the speaker to Auto, it detects the language and uses the corresponding voice for synthesis.
- Speech Speed Adjustment: You can adjust the speaking speed, allowing you to change the speed of the speech to suit your preference.
- Simple Interface: The GUI is intuitive and compact, so it does not get in the way.
- Replay Functionality: Easily replay the last spoken content.
- Windows 11 Pro 24H2
- Python 3.12.0
The application is expected to work on Windows 10 and Windows Home editions as well, although these environments have not been explicitly tested.
Create a folder at a location of your choice for the project.
Download the SAPIClip.ZIP from the link below and extract it to the folder you created.
https://github.com/led-mirage/SAPIClip/releases/tag/v0.1.0
Double-click on SAPIClip.exe to launch the application.
Create a folder at a location of your choice for the project.
Open the terminal or command prompt and navigate to the project folder you created.
Download the ZIP file and extract it to the folder you created. Alternatively, if you have Git installed, you can clone the repository using the following command:
git clone https://github.com/led-mirage/SAPIClip.git
Run the following command to install the necessary libraries:
pip install -r requirements.txt
Run the following command to launch the application:
python src\application.py
The settings.json file contains the configuration information for this application.
Note: You can switch the configuration file by passing its name as a program argument. Example: SAPIClip --setting my_settings.json
Specify the name of the voice to use. When set to Auto, the application automatically selects and uses the appropriate voice for the text being read.
Sets the speed of the speech. This can be adjusted through the application's GUI.
Defines text replacement settings for reading aloud. Specify the target (pattern) with a regular expression and the replacement string with a normal string.
For example, to remove text within parentheses and URLs from speech, configure as follows. Multiple replacement patterns can be specified and are processed in order.
"replacements": [
{
"pattern": "\\(.*?\\)|(.*?)",
"replacement": ""
},
{
"pattern": "https?:\\/\\/(?:[\\w\\-\\.]+)+(?:[\\w\\.\\/\\?%&=]*)?",
"replacement": ""
}
]
Specifies preferred voice names for languages when the voice is set to Auto. In the default settings below, Microsoft Zira is used for English text and Microsoft Haruka for Japanese text.
If no voice is installed for the detected language, the first available voice specified here is used. For instance, if the text is in French and no French voice is available, it will attempt to use Microsoft Zira.
"preferred_voices": {
"en": [
"Microsoft Zira Desktop"
],
"ja": [
"Microsoft Haruka"
]
}
Here's how to add voices in Windows 11.
- Open Windows Settings and navigate to
Time & Language
-Speech
. - Click the
Add voices
button under Manage Voices and select the language you want to install.
Note: After clicking the add button, changes won't be reflected immediately. There's no progress indicator during installation which might make you anxious, but just wait for a while and it will complete. The interface is a bit unfriendly in this regard.
The executable file (SAPIClip.exe) for this program is created using a library called PyInstaller, but it may sometimes be falsely identified as malware by antivirus software.
Rest assured, there are no malicious elements in this application. For those concerned, please run the program using the method described above under "Running with Python."
We apologize for any inconvenience caused by these false detections and are actively seeking a solution, though we have yet to find a definitive one.
The check results on VirusTotal are as follows (2025/01/31 v0.1.0)
SAPIClip.exe ... Detected by 6 out of 72 antivirus engines
Homepage: https://requests.readthedocs.io/en/latest/
License: Apache License 2.0
Homepage: https://github.com/asweigart/pyperclip/tree/master
License: BSD 3-Clause "New" or "Revised" License
Homepage: https://github.com/python-pillow/Pillow
License: MIT-CMU License
Homepage: https://github.com/Mimino666/langdetect
License: Apache License 2.0
Homepage: https://github.com/mhammond/pywin32
License: PSF-2.0 license
© 2025 led-mirage
This application is released under the MIT License. For more details, please refer to the LICENSE file included in the project.
- Initial release