extern "C" {

extern __declspec(dllexport) BOOL MakeSamSay(LPCSTR text, LPSTR* OutFile) {
	VOICE_INFO voiceInfo;
	bool ret = false;
	if (!InitializeForVoice("Sam", &voiceInfo)) {
		goto end;
	}

	UINT64 len;
	if (GetTTS(&voiceInfo, 100, 150, text, &len, OutFile)) {
		ret = true;
	}

	DeinitializeForVoice(&voiceInfo);
end:
	return ret;
}

}