|
/******************************************************************************
SDI 1.0
A library for Auditory Display
Copyright 2004 Dong Lin
This file is part of SDI.
SDI is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
SDI is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SDI; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Last Updated : Apr.15th, 2004
For any question, suggestion or failure report, please contact me by:
e-mail: jonathan1983@126.com
*******************************************************************************/
/******************************************************************
File Name: Speech.h
Description:
Speech Object
Note:
********************************************************************/
#if !defined(SPEECH_H_3511965A_46F3_4CCB_97DE_BD9AFD536DB4_INCLUDED)
#define SPEECH_H_3511965A_46F3_4CCB_97DE_BD9AFD536DB4_INCLUDED
//////////////////////////////////////////////////////////////
// Included Headers
////////////////////////
#include "SDIKernel.h"
//////////////////////////////////////////////////////////////
// Constants
////////////////////////
#define SDI_SPEECH_BUFFERSIZE (25*1024) // Measured in 'samples'
#define SDI_SPEECH_INTERVAL (1*1024)
#define SDI_MAX_ECI 10
// Message
#define MSG_SPEECH_QUIT 0x0001
#define MSG_SPEECH_SYNTHESIZE 0x0002
#define MSG_SPEECH_SENTENCECOMPLETE 0x0003
#define MSG_SPEECH_PAUSE 0x0004
// Status
#define STATUS_SPEECH_FILL2NDHALF 0x0001
#define STATUS_SPEECH_SYNTHESIZING 0x0002
#define STATUS_SPEECH_PLAYING 0x0004
#define STATUS_SPEECH_PAUSED 0x0008
#define STATUS_SPEECH_PRESETVOICE 0x0010
//////////////////////////////////////////////////////////////
// Macros (Inline Functions)
////////////////////////
//////////////////////////////////////////////////////////////
// Structures
////////////////////////
struct SPEECHSENTENCE{
LISTHEADER list;
PTSTR psText;
};
struct SDISPEECHLIST{
COMMONDATA data;
DWORD dwECIStyle;
VOICEPARAM voice;
VOICEPARAM* pVoice;
ECIHand hECI;
HANDLE hSync;
HANDLE hSyncEnd;
SPEECHSENTENCE* pSentenceHead;
short* buffer;
};
//////////////////////////////////////////////////////////////
// Function Prototypes
// [Non-exported]
////////////////////////
BOOL ResetSpeech(SDISPEECHLIST* pSpeech);
BOOL _setvoice(ECIHand hECIHand,VOICEPARAM* pVoice);
#endif //!defined(SPEECH_H_3511965A_46F3_4CCB_97DE_BD9AFD536DB4_INCLUDED)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
A student at Zhejiang University, Zhejiang, China.
Major in Automation.
Now I want to study machine vision and robotics, but I'm really consumed with choices between hardware and software, and between research and engineering.
I'll be glad if you can give some suggestions.