Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xposed-modules-repo/tn.amin.phantom_mic
Phantom Mic
https://github.com/xposed-modules-repo/tn.amin.phantom_mic
Last synced: about 9 hours ago
JSON representation
Phantom Mic
- Host: GitHub
- URL: https://github.com/xposed-modules-repo/tn.amin.phantom_mic
- Owner: Xposed-Modules-Repo
- Created: 2024-07-22T22:48:55.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-27T22:47:37.000Z (3 months ago)
- Last Synced: 2024-07-27T23:54:16.826Z (3 months ago)
- Homepage: https://github.com/Mino260806/PhantomMic
- Size: 1.95 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
Awesome Lists containing this project
README
# Phantom Mic
An LSPosed (Xposed/Edxposed) module to simulate microphone input 🎤 from a pre-recorded audio file, useful for **automating audio calls**
Demo Video
https://github.com/user-attachments/assets/12a9d229-fd8a-4370-b969-1a342360abdf
## Tested Apps
| Application | Status |
| ------------------ | --------- |
| Facebook Messenger | ✔ Working |
| Discord | ✔ Working |
| Telegram | ✔ Working |
| Whatsapp ** | ✔ Working |
| Google Chrome | ✔ Working |
| .. You tell me! | |App ** : Recordings folder defaults to /sdcard/Android/data/app_id/files/Recordings because chose folder dialog doesn't work
Note: your app might work if it's not on the list, let us know if you tried it!
## Usage Guide
- Enable the module for your target app
- Open your target app, you'll be prompted to choose a folder it for the module files
- Inside the chosen folder, copy all your audio files to be played (*.mp3, *.wav, etc)
- Inside the chosen folder create a new file phantom.txt, write the name of your target audio file (without extension is also fine) and save it. The file can be left empty if you want to use your microphone as normal.
Note: If the target records audio to a file, there is a chance the module won't work. This is intentional because the main purpose is using it in calls.
**Bonus Tip:** use an app like *MacroDroid* or *Tasker* to automate the processExample
### Folder Structure
```
CHOSEN_FOLDER
|_ music.mp3
|_ whatevername.wav
|_ sample.aac
|_ phantom.txt
```### Inside phantom.txt
```
music.mp3
```## Requirements
- Android 7+
- [Root] LSPosed / Edxposed
- [No Root] LSPatch theoretically works but not tested
## Module not working ?
Please open a github issue.
- If the app is labelled as "Working" in **Tested Apps**. Please attach libaudioclient.so, you can copy it from `/system/lib` or `/system/lib64, alongside logs.
- Otherwise send play store version of the app and explain how I can test it
## Developer Notes
The app relies on native hooking [AudioRecord.cpp](https://cs.android.com/android/platform/superproject/main/+/main:frameworks/av/media/libaudioclient/AudioRecord.cpp;l=1?q=AudioRecord.cpp&sq=&ss=android%2Fplatform%2Fsuperproject%2Fmain), feel free to take a look at the source code!
# Links
[XDA Thread](https://xdaforums.com/t/mod-xposed-phantom-mic-simulate-microphone-input-from-audio-file.4682767/#post-89623099)