Jump to content
Mumble forums

Record conversation with MumbleKit in a iOS project


Marce666
 Share

Recommended Posts

Hi,


I could integrate MumbleKit into a iOS project. It works fine :)


Now I need to record conversations locally at the device to reproduce them later.

I saw a variable name isRecording in MKUser, but it is private and I cannot access it.


How can I record this conversation?


Thanks in advance,

Marce.

Link to comment
Share on other sites

  • Administrators

There is no recording functionality in MumbleKit itself.


However, it is possible to hack something onto MumbleKit itself.


For example, here's the point where the clients own mic data is handled: https://github.com/mumble-voip/mumblekit/blob/master/src/MKAudioInput.m#L169


And here's where everyone's voices are mixed together and written to the output buffer:

https://github.com/mumble-voip/mumblekit/blob/master/src/MKAudioOutput.m#L73

Link to comment
Share on other sites

Hi,


About short * frame at https://github.com/mumble-voip/mumblekit/blob/master/src/MKAudioOutput.m#L73

 

[_device setupOutput:^BOOL(short *frames, unsigned int nsamp) {
           return [self mixFrames:frames amount:nsamp];
       }];

 

How can I convert those frames into a mp3 or wav or something to storage the audio ?

I need to record the whole conversation input and output.


Thanks in advance,

Marce.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...