Do you have a question? Post it now! No Registration Necessary. Now with pictures!
March 17, 2006, 5:31 pm
rate this thread
As I've found tons of VB and C# sample codes, I was trying to transform
it into PHP code, using the COM objects. My aim is to create a simple
html, that creates a wav from a text. Here's what I've tried -the php
$Voice = new COM("SAPI.SpVoice");//works
//com_load_typelib("SAPI.SpVoice"); //This doesn't help...
$FileStream = new COM("SAPI.SpFileStream"); //works - I mean no error
$FileMode = SpeechStreamFileMode.SSFMCreateForWrite;// = 3 //works -
$FileStream->Open("c:\a.wav", 3, false); //works - no error
$Voice->AllowAudioOutputFormatChangesOnNextSet = false; //works - no
$Voice->AudioOutputStream = $FileStream; //HERE'S THE PROBLEM
Here's the error I get for that line:
Uncaught exception 'com_exception' with message 'Error [0x80020003]
Member not found
Can anyone please help?
- » Open a https url on a special port ? (asp/ajax inside)
- — Previous thread in » PHP Scripting Forum