Help - Search - Members - Calendar
Full Version: Sample code of converstaion recording
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
shtm_alex
Hi,
I have studied the API and play around the Lab tutorial.
However, I still don't know how can I recorded the conversation (say 3 people)

Any sample code or developers can show how to start?

Thanks
shtm_alex
Can anyone point me what is wrong?

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using SKYPE4COMLib;
namespace ExploringSkypeCall
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}

private void MakeCallButtonClick( object sender, EventArgs e )
{
//
}

private void HangUpButtonClick( object sender, EventArgs e )
{
//
}

private void button1_Click(object sender, EventArgs e)
{
ALTER CALL 142 SET_OUTPUT FILE="C:\\test1.wav"; <------ error

}
}
}


I put this code inside the code but when compiled, it got errors.
also, I don't understand how to determine the say, 142 ?
Mirje
Here are all the samples: https://developer.skype.com/Docs/ApiDoc/Voice_Streams
shtm_alex
QUOTE(Mirje @ Fri Apr 20 2007, 11:44) [snapback]385340[/snapback]


Yes I studied it before I ask this question.

This page didn;t mention the programming Environment, also, how can we determine the port number??
You see I tried to use the command from the page you pointed me to my code but failed.

shtm_alex
QUOTE(shtm_alex @ Fri Apr 20 2007, 12:50) [snapback]385352[/snapback]

Yes I studied it before I ask this question.

This page didn;t mention the programming Environment, also, how can we determine the port number??
You see I tried to use the command from the page you pointed me to my code but failed.



ok finally i figure out how to record the conversation.
i will post my code here for those who want to develop same thing
shtm_alex
here is my code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using SKYPE4COMLib;

namespace ExploringSkype
{
public partial class Form1 : Form
{
SKYPE4COMLib.Skype skype = new SKYPE4COMLib.SkypeClass();
Call call = new Call();
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{

Command cmd = new CommandClass();
cmd.Blocking = true;

CallCollection callc = skype.ActiveCalls;
Call call = callc[1];

cmd.Command = "ALTER CALL " + call.Id + " SET_OUTPUT FILE=\"" + @"C:\msg.wav" + "\"";
skype.SendCommand(cmd);



}
}
}



I use MS CV# Express and use the Lab 210.
Remember to add the SKyComLib.


But I have a question, now it can record the voice but when I run the program, the speak will stop and so I cannot listen what my partner is saying though we can listen back from the WAV.

How can I solve it?

spud5
cmd.Command = "ALTER CALL " + call.Id + " SET_OUTPUT SOUNDCARD=\"default\",FILE=\"" + @"C:\msg.wav" + "\"";
shtm_alex
QUOTE(spud5 @ Sat Apr 21 2007, 09:53) [snapback]385635[/snapback]

cmd.Command = "ALTER CALL " + call.Id + " SET_OUTPUT SOUNDCARD=\"default\",FILE=\"" + @"C:\msg.wav" + "\"";



Many thanks!
Hope my code is useful for others to develop the application.
shtm_alex
QUOTE(shtm_alex @ Sat Apr 21 2007, 12:07) [snapback]385653[/snapback]

Many thanks!
Hope my code is useful for others to develop the application.


I just wonder why the max. no of concurrent users are 9?

is it because the protocol problem?

We are working on an online multiple game which cater over 100 users.
So we would like to know why Skype cannot support over 9 concurrent users talk at the same time.

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