SpeechSampleDlg.h
上传用户:zhaopin
上传日期:2007-01-07
资源大小:79k
文件大小:2k
源码类别:

语音合成与识别

开发平台:

Visual C++

  1. // SpeechSampleDlg.h : header file
  2. //
  3. #if !defined(AFX_SPEECHSAMPLEDLG_H__90E57029_9FA9_11D1_9F11_444553540000__INCLUDED_)
  4. #define AFX_SPEECHSAMPLEDLG_H__90E57029_9FA9_11D1_9F11_444553540000__INCLUDED_
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. #include "cspeech.h"
  9. class CSpeechSampleDlg;
  10. class CSampleSpeech: public CSpeech
  11. {
  12. public:
  13. CSampleSpeech(CSpeechSampleDlg* dlg) { m_dialog = dlg; }
  14. virtual BOOL OnAudioStart (timestamp_t qTimeStamp);
  15. virtual BOOL OnAudioStop(timestamp_t qTimeStamp);
  16. protected:
  17. CSpeechSampleDlg* m_dialog;
  18. };
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CSpeechSampleDlg dialog
  21. class CSpeechSampleDlg : public CDialog
  22. {
  23. // Construction
  24. public:
  25. CSpeechSampleDlg(CWnd* pParent = NULL); // standard constructor
  26. // Dialog Data
  27. //{{AFX_DATA(CSpeechSampleDlg)
  28. enum { IDD = IDD_SPEECHSAMPLE_DIALOG };
  29. // NOTE: the ClassWizard will add data members here
  30. //}}AFX_DATA
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CSpeechSampleDlg)
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. protected:
  38. HICON m_hIcon;
  39. CSampleSpeech m_speech;
  40. // Generated message map functions
  41. //{{AFX_MSG(CSpeechSampleDlg)
  42. virtual BOOL OnInitDialog();
  43. afx_msg void OnPaint();
  44. afx_msg HCURSOR OnQueryDragIcon();
  45. afx_msg void OnSpeak();
  46. afx_msg void OnVoice();
  47. afx_msg void OnClose();
  48. virtual void OnOK();
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_SPEECHSAMPLEDLG_H__90E57029_9FA9_11D1_9F11_444553540000__INCLUDED_)