I want to record the sound coming from the Mic and Speaker. For this, I have used this plugin. but the problem is this only records the sound coming from mic, not the sound coming from speaker.
I want to achieve this for:
I am developing an flutter app where users can call each other (audio call only) using agora rtc engine. And they can record their conversation locally. I know agora has cloud recording but I want to store the recording locally.
Please let me know if there is any other plugin that records the internal audio (Speaker sound and mic sound at the same time) or if I am doing anything wrong.
My code for recording:
var recorder = Record();
await recorder.start(
path: '/storage/emulated/0/Download/Test/recording.m4a',
encoder: AudioEncoder.aacLc,
bitRate: 128000,
samplingRate: 44100,
)
Related
I want to record live broadcast (podcast,m3u8 etc.) audio with Flutter without needing a microphone.
The recordings are not successful because the microphone is constantly recording external sounds.
Thanx
I tried recording with ffmpeg. But I couldn't get good results.
I have some videos coming from an API's response. I need a button to start recording the audio from the selected video for 30 seconds and get the file version of that audio to use it further.
I am already using this.audio.startRecord(); from Media Plugin but that records outside audio from phone's mic. It also stops the video that is playing on its own.
I'm trying to play back raw audio data from an Agora remote stream through an AudioSource in Unity. For this, I have to first disable the default playback method used by the Agora SDK. I have tried MuteAllRemoteAudioStreams but this stops the API from receiving remote audio data altogether.
I have also tried AdjustPlaybackSignalVolume and AdjustAudioMixingVolume, which successfully mute the audio playback but this also makes the OnPlaybackAudioFrameHandler callback receive empty audio frames, stopping me from accessing raw audio data.
SetAudioPlaybackDeviceMute simply mutes the playback device, which is not what I am looking for.
Is there a way to only mute the playback of remote streams while also being able to access raw audio data?
Try mRtcEngine.AdjustPlaybackSignalVolume(0);
This will turn the playback volume from the channel, but your AudioSource volume is not affected.
If you have other issues, please come chat with us and search for answers in our slack group:
https://agoraiodev.slack.com/messages/unity-help-me
I am trying to record the sound from iPhone speaker. I am able to do that, but I am unable to avoid mic input in the recorded output. Tried with sample code available in different websites with no luck.
The sample which I used does the recording with audio units. I need to know if there is any property for audio unit to set the mic input volume to zero. Above that I came to from other posts that Audio Queue services can do the thing for me. Can any one redirect me with sample code for the audio queue services implementation. I need to know whether there is a way of writing the data to an separate audio file before sending it as input to speaker.
Thanks in advance
There is no public iOS API or property for recording generic audio sent to the iPhone speaker. Only mic input can be recorded.
But if you are playing audio in your app using only uncompressed samples with Audio Queues or the RemoteIO Audio Unit, you can just copy those samples to a file before you write them to the audio callback buffers. Those saved samples can be used to construct a recording.
I am developing an app module in which i am doing audio recording with also video recording.
but i want to record only device intrnal playing sound , not the device external voice.
If any advise or suggestion to got it..!!
I'm not sure but maybe you can use buffers to write them into a file Audio units or Audio Queues without using mic