Help - Search - Members - Calendar
Full Version: How to send a audio message?
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
Digital2life
I am trying to send a audio message. Like, when I call, instead of speak using the mic, send just a message. How can I do it?
Mirje
I suggest you to check out the Voice Access API from DevNotes of Skype API 2.6 from https://developer.skype.com/Docs/DevNotes
Digital2life
QUOTE(Mirje @ Tue Jan 2 2007, 13:02) [snapback]338484[/snapback]

I suggest you to check out the Voice Access API from DevNotes of Skype API 2.6 from https://developer.skype.com/Docs/DevNotes


I've tried it. What I want shold be simple... I just cant see it. I just want play a WAV file and make the person that I called to listen to that file. The skype just accept microphone as a input. However, how can it send the greeting since it is a recorded file?...
TheUberOverlord
QUOTE(Digital2life @ Tue Jan 2 2007, 12:55) [snapback]338611[/snapback]

I've tried it. What I want shold be simple... I just cant see it. I just want play a WAV file and make the person that I called to listen to that file. The skype just accept microphone as a input. However, how can it send the greeting since it is a recorded file?...


Currently, there is no method via the Skype client to do this, it requires use of the API in some way. It cannot be done by simply selecting something from the Skype client.
Digital2life
QUOTE(TheUberOverlord @ Tue Jan 2 2007, 23:38) [snapback]338721[/snapback]

Currently, there is no method via the Skype client to do this, it requires use of the API in some way. It cannot be done by simply selecting something from the Skype client.



But how? What is the command in the API that handles input or audio or playing a sound file to the other person? Thanks.
TheUberOverlord
QUOTE(Digital2life @ Wed Jan 10 2007, 23:43) [snapback]342560[/snapback]

But how? What is the command in the API that handles input or audio or playing a sound file to the other person? Thanks.


It's right here in the dev notes:

https://developer.skype.com/Docs/DevNotes?a...otes2.6beta.pdf

Which is exactly where Mirje in the post above said it was, when the link to the dev notes page was given:

http://forum.skype.com/index.php?s=&sh...st&p=338484
Digital2life
QUOTE(TheUberOverlord @ Thu Jan 11 2007, 05:48) [snapback]342561[/snapback]

It's right here in the dev notes:

https://developer.skype.com/Docs/DevNotes?a...otes2.6beta.pdf

Which is exactly where Mirje in the post above said it was, when the link to the dev notes page was given:

http://forum.skype.com/index.php?s=&sh...st&p=338484


The proble is to apply it in DELPHI. This is what I have done but nothen happens.

Skype1.Command[0,'ALTER CALL ' + IntToStr (1) + ' SET_INPUT FILE=""C:\test\test\test.wav""','',true,1000];


//Skype1.ActiveCalls.Item[1].InputDevice[$00000002] := 'C:\Test\Test.wav';

//Skype1.ActiveCalls.Item[ICallStatus].InputDevice[$00000002,'"C:\\Test\\Test.wav"'];

//Skype1.ActiveCalls.Item[1].InputDevice[$00000002] := 'C:\Test\Test.wav';
//Skype1.ActiveCalls.Item[1].InputDevice[callIoDeviceTypeFile] := 'C:\Test\Test.wav';
TheUberOverlord
QUOTE(Digital2life @ Thu Jan 11 2007, 03:41) [snapback]342616[/snapback]

The proble is to apply it in DELPHI. This is what I have done but nothen happens.

Skype1.Command[0,'ALTER CALL ' + IntToStr (1) + ' SET_INPUT FILE=""C:\test\test\test.wav""','',true,1000];
//Skype1.ActiveCalls.Item[1].InputDevice[$00000002] := 'C:\Test\Test.wav';

//Skype1.ActiveCalls.Item[ICallStatus].InputDevice[$00000002,'"C:\\Test\\Test.wav"'];

//Skype1.ActiveCalls.Item[1].InputDevice[$00000002] := 'C:\Test\Test.wav';
//Skype1.ActiveCalls.Item[1].InputDevice[callIoDeviceTypeFile] := 'C:\Test\Test.wav';


where is your PORT? please look at pages 3 and 4 and 5 of the doc.
Digital2life
QUOTE(TheUberOverlord @ Thu Jan 11 2007, 09:58) [snapback]342620[/snapback]

where is your PORT? please look at pages 3 and 4 and 5 of the doc.



I got it. The problem was not a port.

I hope it helps for Delphi users:

(Make the call, get the ID and then...)

Skype1.Call[ICallStatus].InputDevice[$00000002] := 'C:\test\test\test.wav';


Thank you everyone!!!
TheUberOverlord
QUOTE(Digital2life @ Thu Jan 11 2007, 04:14) [snapback]342622[/snapback]

I got it. The problem was not a port.

I hope it helps for Delphi users:

(Make the call, get the ID and then...)

Skype1.Call[ICallStatus].InputDevice[$00000002] := 'C:\test\test\test.wav';
Thank you everyone!!!


You are very welcome, glad you got it working yes.png
Lord Hue
Is there a way to play something other than 16 bit mono? I would like to play a wider range of WAV files and perhaps support MP3? I'm an audio newb, any pointers would be much appreciated.

TheUberOverlord
QUOTE(Lord Hue @ Thu Feb 8 2007, 17:27) [snapback]356913[/snapback]

Is there a way to play something other than 16 bit mono? I would like to play a wider range of WAV files and perhaps support MP3? I'm an audio newb, any pointers would be much appreciated.


The only formats are file .wav PCM, sockets raw PCM, 16KHz, mono, 16-Bit

https://developer.skype.com/Docs/DevNotes?a...otes2.6beta.pdf


This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.