SpeechCore
SpeechCore is a cross-platform C++ library that abstracts the process of communicating with various screen readers, managing low-level details and providing a clean, simple-to-use interface.
Features
- Simple and intuitive API with straightforward usage
- Cross-platform support for various screen readers, with the option to support additional ones
Supported screen readers
Supported screen readers
- Windows: NVDA, JAWS, System Access, Zhengdu Screen Reader, PCTalker, SAPI 5
- macOS: AVSpeech
- Linux: Speech Dispatcher
Usage
Simple usage example:
#include <iostream>
#include <SpeechCore.h>
int main() {
Speech_Init();
if (Speech_Is_Loaded()) {
std::cout << "Current screen reader: " << Speech_Get_Current_Driver() << std::endl;
std::cout << "Speaking some text" << std::endl;
Speech_Output(L"This is a test for the SpeechCore library. If you're hearing this, it indicates the library is functioning properly.");
}
Speech_Free(); // Free resources when you're done.
return 0;
}
See the documentation for more details.
Bindings
Bindings are available for Python, .NET/C#, and Java.
For Python Install python bindings via pip:
pip install SpeechCore
Dotnet Install via NuGet Package Manager:
dotnet add package SpeechCore.CrossPlatform
Or via Package Manager Console in Visual Studio:
Install-Package SpeechCore.CrossPlatform
Credits
This library was inspired by Tolk, with adaptations for more flexibility. It was initially developed for personal projects and later expanded to be cross-platform.