Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

termux-microphone-record: cannot record into fifo or block device files #612

Open
BasedUser opened this issue Jun 25, 2023 · 1 comment
Open

Comments

@BasedUser
Copy link

BasedUser commented Jun 25, 2023

Problem description
termux-microphone-record isn't capable of writing to nonstandard files. This is caused by MicRecorderAPI.java:254 checking if the target file exists, which for fifos and block devices under current file handling, it does.

Steps to reproduce

mkfifo myFifo
termux-microphone-record -f myFifo # File: myFifo already exists! Please specify a different filename
termux-microphone-record -f /dev/stdout # File: stdout already exists! Please specify a different filename

Expected behavior
The module should be able to write to fifo/block device files.
This would also allow directly processing output using other applications, as well as streaming over the network.

Additional information

  • termux-api application version: 0.50.1
  • termux-api package version (installed through apt): 0.57
  • Android OS version: 11 (lineage_twolip-userdebug 11 RQ3A.211001.001 1003680)
  • Device model: Redmi Note 6 Pro
@Technerd-SG
Copy link

Also doesn't work on Samsung Galaxy S23 Ultra (Android Version: 14).
Same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants