I have traced everything with the debugger, and I don't see any conversion happening. The buffer is generated with 16 bit, 8KHz PCM and doesn't need to be converted to be streamed by MprFromFile.
I fear it's a problem when the buffer is transfered from a COM object to .Net then to C++ There are two levels of Interop happening under the hood: [c#.Net] GeneratePCMBufferFromText( buffer ) [COM] ... SAPI is a COM component, so there is a first level of interop to generate the buffer. [c#.Net] SipxCallPlayBufferStart( buffer ) [C++] sipxCallPlayBufferStart( buffer ) A second level of interop here from .Net to C++... If I have enough time, I'll try to create a mprSpeech.cpp and directly call SAPI from the C++ side. I may be able to make a quick test using mprFromFile ... stipus ----- Original Message ----- From: "Daniel Sigurgeirsson" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, June 13, 2007 3:33 PM Subject: Re: [sipxtapi-dev] SipxCallPlayBufferStart and jerky output ...I'm puzzled ! Have you tried adding trace output to the sipxtapi code which loads the file, and check if some conversion is being done? Regards, DanĂel _______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
