Request for Android Community: Advice and Help on Playing Pre-Recorded Voice on Calls

blupal
New member

To the Esteemed Android Developer Community,

I am seeking your expert advice to understand whether my task is feasible on the Android platform. I aim to implement the following functionality:

Task Description:

  1. Objective:
    • I want to create an Android app that plays a pre-recorded voice message during a phone call.
    • The app will:
      • Automatically answer an incoming call when it is ON.
      • Play a pre-recorded audio file stored on the user's phone (recorded by the user).
      • Audio Content: “I am busy right now, call back after some time.”
      • Disconnect the call after playing the message.
  1. Usage Scenario:
    • This feature will be used only when the app is ON.
    • It is intended for times when the user is busy and wants to inform the caller without manually attending the call.
  1. Key Requirements:
    • Detect and answer incoming calls automatically.
    • Play the recorded voice message to the caller.
    • Ensure the caller hears the message clearly on their end.
    • Disconnect the call programmatically after the message is played.

Questions for the Community:

  1. Is this Task Feasible?
    • Can the Android platform route a pre-recorded voice file to the call audio stream (STREAM_VOICE_CALL) so the caller can hear it?
    • Are there technical or carrier-level restrictions that could prevent this functionality?
  1. Android APIs or Services:
    • Are there specific APIs, such as TelecomManager, CallScreeningService, or AudioManager, that can handle this requirement effectively?
  1. Privacy and Legal Concerns:
    • Are there any privacy or legal considerations (e.g., notifying the caller) that I should be aware of when implementing this feature?
  1. Compatibility Across Devices:
    • How can I ensure compatibility across different Android devices and versions (API 26 and above)?

Additional Information:

  • Voice File:
    • The pre-recorded message is stored locally on the user’s phone in a secure folder.
  • App Activation:
    • The functionality will work only when the app is manually turned ON by the user.
  • Intent:
    • This is a personal productivity tool to handle calls during busy periods.

Help Needed:

  • Advice:
    • Can you confirm whether this task is achievable on the Android platform with existing APIs and hardware?
    • Are there specific approaches or best practices to consider for implementing this?
  • Code Implementation:
    • I am looking to hire an experienced Android developer who can:
      • Write fully working code to achieve this task.
      • Ensure the solution is robust, privacy-compliant, and compatible across devices.

I deeply appreciate the Android community's expertise and guidance. Your input will help me determine the feasibility and approach for this project.

If you have any suggestions, insights, or are interested in developing this, please reply to this request.

0 REPLIES 0