Created
August 31, 2017 03:03
-
-
Save 3735943886/dc91059285db3f5b2bc2bf24c4f6626a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <atlbase.h> | |
#include <sapi.h> | |
void main() | |
{ | |
CComPtr<ISpVoice> cpVoice; | |
::CoInitialize(nullptr); | |
cpVoice.CoCreateInstance(CLSID_SpVoice); | |
cpVoice->Speak(L"Hello World", SPF_DEFAULT, nullptr); | |
::CoUninitialize(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment