问题描述
我是一名开发人员,希望创建一个 Android 应用程序来记录电话呼叫.这产生于我个人需要为我自己的目的和我的记录记录电话.
I'm a developer looking to create an Android application to record phone calls. This spawned out of my own personal need to record phone calls for my own purposes and for my records.
可以这样做吗?是否可以使用麦克风以及通过扬声器传输的内容?
Is it possible to do this? Is it possible to get access to the microphone and what's coming through the speaker?
我对 Android 开发有点陌生,所以请耐心等待 :) 我假设我可以录制成 WAV,然后在通话结束时,使用 LAME 或其他东西将其转码为 MP3.这可能会耗尽电池电量,但这对我来说是一个很好的项目,可以让我习惯使用 Android.我希望使用 Android 2.X.
I'm kind of new to Android development, so bear with me :) I assume that I could probably record into WAV and then at the end of the call, transcode it into MP3 using LAME or something. This may kill the battery, but this seems like a good project for me to get used to Android with. I'm looking to use Android 2.X.
推荐答案
简短的回答是否定的.电话堆栈对应用程序开发人员有相当大的限制,部分原因是出于安全原因.
The short answer is no. The telephony stack is fairly restrictive to application developers, partly for security reasons.
您可能要编写自己的电话应用程序",可能基于 默认,并包含必要的钩子来拦截音频流.
You might be to write your own "Phone app", perhaps based off the default one, and include the necessary hooks to intercept the audio streams.
但是,如果您不熟悉 Android 开发,这将是一个极其困难的项目.我建议先尝试一些其他项目,然后再研究电话方面的内容.
However, this would be an extremely difficult project if you are new to Android development. I would suggest trying out some other projects first, before looking into the telephony stuff.
这篇关于是否可以通过 Android 应用程序记录电话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!