Michael, >I need to locate and merge multiple sound samples located in different >positions of a single wavefile (TStream) into one >streambuffer, and then play this buffer with >the DelphiX-component (DirectX), but i don't know where to start. > >I know how to play single soundfiles. But its not an option that works >in this case. I need to build long sentences of human speech.
We use SAPI (Speech API) TTS (Text to Speech) for that kind of thing. There are 3 voices available from Microsoft for free. Windows XP and up has SAPI built-in. I understand that there are situations where you will want to use a particular person's recorded voice. A suggestion for that is to put the sound clips in separate wav files, then play them back-to-back with a configurable pause. There are a lot of wav editors, many free, which would allow you to cut the file into individual clips. If you need to do this the way you suggest, check out the settings in TMediaPlayer. I believe there are properties that allow you to control the playback position in a file. This would be much quicker than trying to create a new wav file dynamically. HTH, Glenn Lawler www.incodesystems.com