Currently I am building an app that requires me to implement a functionality to record audio and use the recorded audio as the sound for a local notification.
I have already set up the notifications using flutter_local_notifications, but as far as I am aware, with this plugin you can only specify sounds that have been added to the resource folder before runtime.
This would look like this:
const String soundName = 'test_sound.mp3';
NotificationDetails(
android: AndroidNotificationDetails(
'channel id',
'channel name',
channelDescription: 'channel description',
sound: RawResourceAndroidNotificationSound(soundName.split('.').first),
),
iOS: DarwinNotificationDetails(),
);
Is there a way to record audio files during runtime and use them right away when scheduling a new notification?
Related
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,
)
I am developing a video-conferencing application in flutter using mediasoup WebRTC. I can implement producer and consumer mute and unmute audio/video by themself. I would like to implement mute all participants through a host. So Please provide an answer if you have one.
Yes you can mute all using below properties
mediaStream.getVideoTracks()[0].enabled = !(mediaStream.getVideoTracks()[0].enabled);
I'm using flutter sound package for recording voice message and it's depend on audio session package but how to handle recorder state and close audio session when phone ringing for incoming call or video call they doesn't have any way to deal with this problem
for example if I start recording and suddenly someone call me from WhatsApp the recoder won't stop even if I answer on the call it's keep recording without close the audio session!
here it's my config for open audio session:
await myRecorder!.openAudioSession(
focus: AudioFocus.requestFocusAndStopOthers,
category: SessionCategory.playAndRecord,
mode: SessionMode.modeDefault,
device: AudioDevice.speaker,
audioFlags: outputToSpeaker | allowBlueToothA2DP | allowAirPlay,
);
can any suggest how to handle the issue or if there's any package support this feature please write it' name
my UE4 'experience' allows the player to record an answer in voice, or create a new ask-all. the voice recorded from mic volume level is too low.
the 'Set Volume Multiplier' node, with 'Audio Capture' component seems to work well. my voice recording blueprints based on Arthur's Audio BP's available on github.
I'm developing an Android app where the user is in an ARCore Session and at the same time should be able to share the (raw, not augmented) camera video stream in a video call.
The used technologies are:
Unity 2018.1.6
Google ARCore Unity SDK package
WebRTC Video Chat Unity package
The required ARCore functionality and the WebRTC Video chat work great - but only individually. Regarding having both simultaneously I'm aware it cannot work immediately; in fact having built a test app I saw that starting the video call would stop ARCore preview and reverse, dependent on what is started later.
So my questions are:
Is there a way to extract the video stream from ARCore?
How do I use this video stream as input for the WebRTC video call?