THIS PROJECT IS 32 BIT and as such will not work with newest versions of GMS.
Please use the below project for 64 bit. It not only encapsulates this project, but has screen reader support!
https://github.com/Gannio/GMSTolkTalk
This project includes the DLL and example project that shows off each of them.This DLL allows you to make games using Text to Speech (TTS) it includes the following features:
TTSSay(String) Will read out the passed string.
TTSCheck() Returns a 1 if the voice is going, 0 if it's stopped, 2 if it's paused.
TTSPause() Pauses speaking voice.
TTSResume() Unpauses the TTS Voice.
TTSRate(Double) Can be set between -10 to 10 for how quickly the voice can read.
TTSVolume(Double) How loud the voice is. Set between 0-100.
TTSVoic(Double) Set 1 to male default voice, 2 to female voice.
If you want to manually change the settings of the voice, they are stored here: %windir%\sysWOW64\speech\SpeechUX\SAPI.cpl
End User Licence Agreement (EULA).