2024-09-29 15:42:20 +00:00
|
|
|
set -l command termux-microphone-record
|
2024-09-15 12:18:39 +00:00
|
|
|
|
|
|
|
complete -c $command -f
|
|
|
|
|
2024-09-29 15:42:20 +00:00
|
|
|
complete -c $command -s h -d 'Show help'
|
2024-09-15 12:18:39 +00:00
|
|
|
|
2024-09-29 15:42:20 +00:00
|
|
|
complete -c $command -s d -d Record
|
|
|
|
complete -c $command -s f -F -r -d 'Specify a file to save recording to'
|
2024-09-15 12:18:39 +00:00
|
|
|
|
2024-09-29 15:42:20 +00:00
|
|
|
complete -c $command -s l -x \
|
2024-09-15 12:18:39 +00:00
|
|
|
-a '0\tdefault' \
|
2024-09-29 15:42:20 +00:00
|
|
|
-d 'Specify the length limit of a recording'
|
2024-09-15 12:18:39 +00:00
|
|
|
|
2024-09-29 15:42:20 +00:00
|
|
|
complete -c $command -s e -x \
|
2024-09-15 12:18:39 +00:00
|
|
|
-a 'aac amr_wb amr_nb' \
|
2024-09-29 15:42:20 +00:00
|
|
|
-d 'Specify the encoder of a recording'
|
2024-09-15 12:18:39 +00:00
|
|
|
|
2024-09-29 15:42:20 +00:00
|
|
|
complete -c $command -s b -x -d 'Specify the bitrate of a recording'
|
|
|
|
complete -c $command -s r -x -d 'Specify the sampling rate of a recording'
|
|
|
|
complete -c $command -s c -x -d 'Specify the channel count of a recording'
|
|
|
|
complete -c $command -s i -d 'Show information about the current recording'
|
|
|
|
complete -c $command -s q -d 'Quit the current recording'
|