// TTS.h: CTTS クラスのインターフェイス // // 2006.5.19 by hishida Text-To-Speech using SAPI5.1 ////////////////////////////////////////////////////////////////////// #if !defined(AFX_TTS_H__11F69A4C_1EF6_471C_AF36_86A116A2A2BD__INCLUDED_) #define AFX_TTS_H__11F69A4C_1EF6_471C_AF36_86A116A2A2BD__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include class CTTS { ISpVoice * m_pVoice; // CComPtr m_cpVoice; CComPtr m_cpOutAudio; CString m_TTS_attr_name; // 音声の名称 WCHAR *m_buffer; // 読み上げ文字列 public: CTTS(); virtual ~CTTS(); HRESULT Speak(LPCTSTR buf); HRESULT ChangeVoice( CString name ); HRESULT Stop(); HRESULT EnumVoice( CStringArray *lines ); }; #endif // !defined(AFX_TTS_H__11F69A4C_1EF6_471C_AF36_86A116A2A2BD__INCLUDED_)