有没有办法打电话给某人并在Android中播放音频文件?

时间:2022-01-06 18:58:58

I would like to create an ermergency call application : if triggered, it calls a given number and play an audio file, giving the information the caller couldn't give himself.

我想创建一个紧急呼叫应用程序:如果触发,它会调用给定的号码并播放音频文件,提供呼叫者无法给自己的信息。

For that I need to engage a call but ensure that I can replace any sound from the speaker with an played audio file. Can I do that in android ? What's the way ?

为此,我需要接听电话但确保我可以用播放的音频文件替换扬声器中的任何声音。我可以在android中做到这一点吗?有什么办法?

1 个解决方案

#1


You can't do this with the G1 at this time, because two different processors handle the call and the apps, and there is no path between them. AFAIK this isn't in the SDK yet, but assuming hardware comes out that can do it, it will be added to the SDK.

这时你不能用G1做这个,因为两个不同的处理器处理呼叫和应用程序,它们之间没有路径。 AFAIK这还没有在SDK中,但假设硬件出来可以做到,它将被添加到SDK中。

http://groups.google.com/group/android-developers/browse_thread/thread/d04c307973345fef/a628e578900b3dce?lnk=gst&q=dave+sparks+play+audio#a628e578900b3dce

#1


You can't do this with the G1 at this time, because two different processors handle the call and the apps, and there is no path between them. AFAIK this isn't in the SDK yet, but assuming hardware comes out that can do it, it will be added to the SDK.

这时你不能用G1做这个,因为两个不同的处理器处理呼叫和应用程序,它们之间没有路径。 AFAIK这还没有在SDK中,但假设硬件出来可以做到,它将被添加到SDK中。

http://groups.google.com/group/android-developers/browse_thread/thread/d04c307973345fef/a628e578900b3dce?lnk=gst&q=dave+sparks+play+audio#a628e578900b3dce