SAPI for Firemonkey FMX 2

By Andreas Faltinek

Freeware 03 Dec 2018

In category

Components > Sound Effects > Other

Description

A dll that export 3 functions: InitSapiFMX, SayOutLoud and FreeSapiFMX. Firemonkey does not support using any OLE-based component that wraps the Windows Speech API - because that Type-Library uses OLE which is VCL-based. So here is a basic speak function in a dll ready for use in Firemonkey apps. Just make sure that SapiFMX resides in the same directory as your exe. See how to declare the 3 functions using ... stdcall; external 'SapiFMX.dll'; in the source - and also note: You cannot send string - the DLL requires PWideChar as follows: procedure TForm1.Button1Click(Sender: TObject); var pch: PWideChar; begin pch := PWideChar(Edit1.text); SayOutLoud(pch); end; You need to call InitSapiFMX before calling SayOutLoud. Tested with Delphi XE7 - might work with others... Have fun.

Informations

  • Status: Fully functional
  • Source: FW
  • Size: 9 281 820kB

Platforms:

  • C++ Builder 10
  • CBuilder 10.1 Berlin
  • CBuilder 10.2 Tokyo
  • CBuilder 10.3 Rio
  • C++ Builder XE8
  • Delphi 10
  • Delphi 10.1 Berlin
  • Delphi 10.2 Tokyo
  • Delphi 10.3 Rio
  • Delphi XE7
  • Delphi XE8

Downloads