gpt4 book ai didi

Is there any way to create call recording app in flutter?(有没有办法在Fighter中创建通话录音应用程序?)

转载 作者:bug小助手 更新时间:2023-10-24 23:02:08 31 4
gpt4 key购买 nike



So, I have tried to develop an application for call recording :

因此,我尝试开发了一个用于通话录音的应用程序:




  • By using flutter_sound to record a call and I am detecting call state using phone_state_i but succeeded to record the call with the voice of MICROPHONE only cannot record the voice of other people (INCOMING voice).

  • Then I tried to record calls using android through flutter native integration but unable to achieve. So even here I got succeeded to record only the voice of a microphone.



I guess I am unable to get the concept of VOICE_DOWNLINK and VOICE_UPLINK. And got to know that VOICE_CALL is deprecated. So, I am badly stuck and need some expert advice.

我想我不能理解语音下行链路和语音上行链路的概念。并且知道Voice_Call已被弃用。因此,我陷入了困境,需要一些专家的建议。


更多回答

So, I got to know after lot of research that we cannot achieve call recording directly i.e through flutter or android, we need to use native libraries of call recording or sound recording to do so. Please correct me if I am wrong.

所以,我通过大量的研究了解到,我们不能直接实现通话录音,即通过Ffltter或Android,我们需要使用本地的通话录音或录音库来实现。如果我说错了,请纠正我。

Refer this link for more information of call recording using ndk.

有关使用NDK进行呼叫录音的详细信息,请参阅此链接。

优秀答案推荐

It seems that until now, there is still no package available for this functionality.

似乎到目前为止,还没有可用的包来实现这一功能。



That kind of functionality would have to be provided by a flutter
plugin that integrates with native call recording APIs. That kind of a
bridge is possible on older versions of Android but it became much
harder after Marshmallow - Google removed the official call recording
API.


The only 100% working/future proof implementations of call recording
on Android and iOS would require the devices to be rooted/jailbroken.



Check also this SO post.

也检查一下这篇文章。



In short, mentioned via comments, you’ll have to refer to
https://flutter.dev/docs/development/platform-integration/platform-channels
to do it yourself by implementing platform-specific code such as
CallKit/ConnectionService.


First, because there’s currently likely no Flutter library that has
already conveniently packaged this up for you, at least not at
https://pub.dev/flutter, so this is why you need to do it yourself.


Now, assuming all the restrictions, permissions, rooting,
jailbreaking, etc. poses no issue to you, then you would need to
implement these APIs natively in iOS/Android first



更多回答

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com