dart_tolk 1.4.0 copy "dart_tolk: ^1.4.0" to clipboard
dart_tolk: ^1.4.0 copied to clipboard

Dart bindings for the Tolk screen reader library.

example/dart_tolk_example.dart

// ignore_for_file: avoid_print
/// A simple tolk example.
import 'package:dart_tolk/dart_tolk.dart';

Future<void> main() async {
  final t = Tolk.fromPath('tolk.dll')..load();
  print('Loaded tolk.');
  print('Screen reader: ${t.currentScreenReader}.');
  print('Screen reader ${t.hasBraille ? "has" : "does not have"} braille.');
  print('Screen reader ${t.hasSpeech ? "has" : "does not have"} speech.');
  t.trySapi = true;
  print('Trying SAPI.');
  t.output('Hello from Tolk, speaking through dart.');
  await Future<void>.delayed(const Duration(seconds: 2));
  t.unload();
  print('Unloaded Tolk.');
}
0
likes
110
pub points
0%
popularity

Publisher

verified publisherbackstreets.site

Dart bindings for the Tolk screen reader library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL-2.0 (LICENSE)

Dependencies

ffi

More

Packages that depend on dart_tolk