采用windows的SpeechLib组件实现语音播报; 主线程播报正常, 子线程播报异常,各路大神若有空,帮我看看
资 源 简 介
WideString SountContent = Memo1->Text.Trim(); TSpVoice *SpVoice1 = new TSpVoice(NULL); try { SpVoice1->Speak(SountContent.c_bstr(), SVSFDefault); }__finally { delete SpVoice1; }
文 件 列 表
MySound
Speech
SoundPro.cbproj
SoundPro.cpp
SoundPro.res
Unit5.cpp
Unit5.dfm
Unit5.h
UnitThreadSound.cpp
UnitThreadSound.h