hugmouse/gotermux

Add termux-microphone-record

Closed this issue · 3 comments

API: https://wiki.termux.com/wiki/Termux-microphone-record

Description: Recording using microphone on your device.

Options:

-d           Start recording w/ defaults
-f <file>    Start recording to specific file
-l <limit>   Start recording w/ specified limit (in seconds, unlimited for 0)
-e <encoder> Start recording w/ specified encoder (aac, amr_wb, amr_nb)
-b <bitrate> Start recording w/ specified bitrate (in kbps)
-r <rate>    Start recording w/ specified sampling rate (in Hz)
-c <count>   Start recording w/ specified channel count (1, 2, ...)
-i           Get info about current recording
-q           Quits recording

And Termux API can use more than 3 audio codecs.

API: https://developer.android.com/reference/android/media/MediaRecorder.AudioEncoder.html#summary

Can use:

AAC
AAC_ELD
AMR_NB
AMR_WB
HE_AAC
OPUS
VORBIS

However, the Termux API describes only 3 methods. But, perhaps, we will use all the methods that are available in Android

Added in baf260b.