代码之家  ›  专栏  ›  技术社区  ›  Ashish

sapi事件spei_word_边界通知不起作用

  •  0
  • Ashish  · 技术社区  · 15 年前
    I have used this function to speak sentence ascynchronously .    
    

    m_cpvoice->speak(m_sinputtext,spf_async,空)

    I want to get notification of SPEI_WORD_BOUNDARY event so i did these.
    
    
     m_cpVoice->SetInterest(SPFEI(SPEI_WORD_BOUNDARY),SPFEI(SPEI_WORD_BOUNDARY));
     m_cpVoice->SetNotifyWindowMessage(GetSafeHwnd(),CTTSDlgDlg::MSG_SAPI_EVENT,0,0);
    
     CTTSDlgDlg::MSG_SAPI_EVENT maps to my event handler.
    
    Am i missing something and whats the problem that i am not getting notification?
    
    1 回复  |  直到 15 年前
        1
  •  1
  •   Eric Brown    15 年前

    为了将事件传递到对象,MFC需要on_registered_message而不是on_message。

    推荐文章