Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

SDI (Sound Device Interface)--A library for Auditory Display

, 2 May 2004
A GDI-like API for 3D positioning of speech, and MIDI composition using a single string.
newseverywhere.zip
newseverywhere_release.zip
release_sdi.zip
Release
sdi32.lib
sdi32.dll
a3dapi.dll
ibmeci.dll
SDI1.0Document.doc
TestSDI.exe
sdi.zip
sdi32.lib
sdi32.dll
a3dapi.dll
ibmeci.dll
SDI1.0Document.doc
TestSDI.exe
sdi_demo.zip
SDI_Demo
resource.aps
sdi32.lib
sdi32.dll
a3dapi.dll
TestSDIdll.dsp
ibmeci.dll
TestSDIdll.dsw
TestSDIdll.exe
comeacross.mid
sdi_src.zip
sdi32.lib
sdi32.dll
a3dapi.dll
ibmeci.dll
SDI1.0Document.doc
TestSDI.exe
src_sdi.zip
Source
sdi32
sdi32.dsw
exports.def
sdi32.dsp
DS_Buffer.gif
lib
ibmeci.lib
a3dapi.lib
ia3dutil.lib
ia3dutild.lib
ThirdParty
Document
DS_Buffer.gif
SDI1.0Document.doc
technote.doc
GNU General Public License.mht
General MIDI.mht
MIDI Specification.mht
MIDI File Format.mht
Downloadable Sounds (Level 1) Specification.pdf
Sample
NewsEverywhere_SourceCode
NewsEverywhereMFC
NewsEverywhereMFC.dsp
NewsEverywhereMFC.dsw
ParserDLLZXW
ParserDLLZXW.dsp
ParserDLLZXW.dsw
ParserDLLZXW.def
Parser
ParserDLLZXW.dll
res
NewsEverywhereMFC.ico
ico00002.ico
icon1.ico
title_ro.ico
buttonK1.ico
ico00001.ico
HTML.ico
Browser.ico
ico00003.ico
ico00004.ico
A3D_logo.bmp
Cursor
3dwarro.cur
move_r.cur
SDI_Demo
TestSDIdll.dsp
TestSDIdll.dsw
comeacross.mid
/******************************************************************************
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.

License

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

Share

About the Author

Dong Lin
Engineer
China China
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.

| Advertise | Privacy | Mobile
Web04 | 2.8.140826.1 | Last Updated 3 May 2004
Article Copyright 2004 by Dong Lin
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid