Modifying in-call voice playback in a custom ROM - Android General

Hi, I'm a developer. My first time into building AOSP and experimenting with custom ROMS.
I would like to know if it's possible to modify the OS in order to add preprocessing to in-call voice playback (normal phone call).
I already know it's possible with system audio (such as music players, etc.), but I couldn't find information and the best entry point for in-call voice processing.
I am targeting Nexus 5X, so I'm OK with modifying Qualcomm code.
Also, I'm only interested in modifying playback - I don't care about recording (uplink).
If there's an entry point that will apply the same way for phone calls, and all other system audio - that would be the best.
Thanks

Related

Wav/MP3 recording apps not working..help!

I am a musician and I came from an EVO. As part of my practice regimen I have used certain programs to record myself to help refine my performances. For some reason many or all of the recording apps that are available on the market place don't work. I am not sure if it is has something to do with the samsung audio drivers; but frequently, audio is distorted or drops out in the middle, levels can't be set or apps record nothing at all. My EVO didn't have this problem...what gives?
Does anyone have any insight into this problem?
I have Used
Hertz
BMS recorder Lite
Rehearsal Assistant
Droid Recorder
Pocket DJ lite
Make a video instead. Do the apps that you are trying to use have specific features you're looking for?

Call recording on CM 10.1

Is there any way to record calls, like any kernel currently implementing mods for supporting call recording ?
If anyone has figured this out, can they help ?
Please don't go over the legality of this, i need it for educational purposes ( My friends discuss things over the phones and the recording them would be great, i tend to forget things. )
Only microphone-based call recording works on CM. The only combination where voice line recording works is that of Chinese audio libs and a supported kernel. CM kernel has these enhancements enabled, but the audio lib parts aren't ported, I didn't research how it works and it wasn't a priority.
I have a thread in general section about call recording on ICS, you can check that out.
Sent from my OmniROM-powered LG Optimus 4X HD

Looking for a sound recording app with customize-able folders/categories

Hi,
I need a sound recording with an option of customize folders/categories so when i record i can choose to which folder/category the recording belongs to.
I searched over the internet but didn't found one (except for an old one which doesn't work well)
Thanks alot

Enable stereo audio(mp3/wav) recording in any custom rom

Hello,
I wonder if by e.g. editing media_profiles.xml in any rom you can enable recording audio in stereo.
That's because I have an Mi Mix 2 that I know it can do it with some audio recording apps by selecting "raw unprocessed" audio source, but for some android 10 ROMs it works (crdroid,omnirom) but for some others (havocos) only records in mono (same signal on both channels)
How/where can I get generic info about a possible way to modify it , does it apply to any rom with the same android version ?
Thanks !

Is there a way to divert -or spoof- a device's microphone input as internal audio? (e.g. Get internal audio as if it was getting picked up by the mic)

Would there be a way to either:
Have my device recognize internal audio (e.g. a YouTube video playing) as if it was audio picked up by its microphone, maybe with some kind of dev settings?
I know GPS can be spoofed in the developer settings, so would it be possible to spoof the microphone input and divert it as internal audio so that the device could for example transcribe a video's audio into text with an app that picks up the audio as if it was coming from the microphone (e.g. Google Translate / Google Recorder)?
Most of the workarounds I've seen meant using the phone speakers to output the sound to then be picked back up by the microphone, which would be both inconvenient (e.g. in public transports or any place that has too much ambiant noise for this to work) and pretty ridiculous to transform digital to analog, output it to record it back in analog and transform it back into digital.
It simply doesn't make a lot of sense to me looking at it this way.
Hence why I would be interested to know if there's a way to make this work either through something available in accessibility settings/developer mode/ or any kind of mod that requires root.
wbs_perso said:
Would there be a way to either:
Have my device recognize internal audio (e.g. a YouTube video playing) as if it was audio picked up by its microphone, maybe with some kind of dev settings?
I know GPS can be spoofed in the developer settings, so would it be possible to spoof the microphone input and divert it as internal audio so that the device could for example transcribe a video's audio into text with an app that picks up the audio as if it was coming from the microphone (e.g. Google Translate / Google Recorder)?
Most of the workarounds I've seen meant using the phone speakers to output the sound to then be picked back up by the microphone, which would be both inconvenient (e.g. in public transports or any place that has too much ambiant noise for this to work) and pretty ridiculous to transform digital to analog, output it to record it back in analog and transform it back into digital.
It simply doesn't make a lot of sense to me looking at it this way.
Hence why I would be interested to know if there's a way to make this work either through something available in accessibility settings/developer mode/ or any kind of mod that requires root.
Click to expand...
Click to collapse
A lot of android devices have to use a PC/Laptop to capture internal audio, these devices can not capture the internal audio themselves, they weren't built with the capability, it has to be done externally. It depends on your specific device model number and your android version. Some devices can capture internal audio from within the device itself using a feature that is built-in. If it is possible to capture internal audio from within the device itself, a Google search for:
"Capture internal audio (your model number&android version)"
Should render some kind of useable results.
Have my device recognize internal audio (e.g. a YouTube video playing) as if it was audio picked up by its microphone
Click to expand...
Click to collapse
Playstore -
Internal Audio Recorder - Screen & Audio Recorder apk
I use it to copy youtube or any other video & songs as mp3, copies are quite as original.
In case thats what you meant.
Edit:
Pls ignore the answer, I didnt understand the question well sorry.
Droidriven said:
A lot of android devices have to use a PC/Laptop to capture internal audio, these devices can not capture the internal audio themselves, they weren't built with the capability, it has to be done externally. It depends on your specific device model number and your android version. Some devices can capture internal audio from within the device itself using a feature that is built-in. If it is possible to capture internal audio from within the device itself, a Google search for:
"Capture internal audio (your model number&android version)"
Should render some kind of useable results.
Click to expand...
Click to collapse
I know that my device can capture internal audio with the integrated Screen Recorder app at least.
Spoiler: Specs
Device: OnePlus 5T
ROM: OOS 10.0.1
Android 10
Magisk 24.3
But what I'm searching for is a way to use that internal audio capability of my device to act as if it was a microphone stream since most of the apps that I found to either transcribe or recognize audio (e.g. Google Translate / Google Recorder or Shazam) don't have a setting to choose which input stream they "listen" to.
interesting..

Categories

Resources