kww Posted July 17, 2010 Share Posted July 17, 2010 I'm not sure if this is the right forum to ask in, so please point me at another one if it would be more productive. I'm working on an application involving speech synthesis on the server, and I would like to access Microsoft's SAPI 5.4 (http://msdn.microsoft.com/en-us/library/ee125077%28v=VS.85%29.aspx) directly from PHP code, or through a small wrapper of Javascript/Visual Basic if necessary. Can anyone point me in the right direction to get started? The application would be running on Windows 7 64-bit, using PHP 5.3. This application would be running as an independent task so it shouldn't get directly involved with the web server, but that's Apache2.2 if there's some reason that it is important. Link to comment https://forums.phpfreaks.com/topic/208039-accessing-microsoft-sapi-54/ Share on other sites More sharing options...
kww Posted July 17, 2010 Author Share Posted July 17, 2010 <?php $TTS = new COM("SAPI.SpVoice"); $TTS->Speak('Hello world!'); ?> seems to work. Link to comment https://forums.phpfreaks.com/topic/208039-accessing-microsoft-sapi-54/#findComment-1087593 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.