Alguma idéia de como obter um arquivo de áudio a partir da linha de comando do Kali NetHunter?
Estou usando o aplay em um script python ... que funciona bem em uma VM Kali, mas retorna esse erro no Nethunter:
"aplay: main: 788: erro de abertura de áudio: argumento inválido"
Também não precisa ser aplay (é exatamente o que eu tenho tentado fazer funcionar) ... realmente qualquer maneira de reproduzir um arquivo .wav de 5 segundos na linha de comando ou via algum tipo de script python em Nethunter vai funcionar. Eu estou supondo que tem algo a ver com a interface com a placa de som no Nexus. Eu tentei especificar o dispositivo (-D hw: 0,0), mas ainda retorna o mesmo erro.
Executando isso em um Nexus 5 btw ...
Obrigado!
*** EDITAR:
Primeiro, tentei aplay -D front
e aplay -D plughw:0,0
sem sucesso. Ambos retornaram o mesmo erro.
Em seguida, tentei instalar o pulseaudio. Eu VNC'd em uma área de trabalho kali local no telefone apenas para que eu pudesse instalar / abrir o player VLC e alterar a saída do áudio para pulso. Eu tentei aplay -D pulse
e também tentei paplay -D pulse
... mas não funcionou.
Aqui está a saída quando eu corri com paplay:
shared memfd open() failed: Function not implemented
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
Aqui é quando eu corri com aplay -D pulse
:
shared memfd open() failed: Function not implemented
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM pulse
aplay: main:788: audio open error: No such file or directory
Aqui está a saída de aplay -L
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=msm8974taikomtp
msm8974-taiko-mtp-snd-card,
Default Audio Device
sysdefault:CARD=msm8974taikomtp
msm8974-taiko-mtp-snd-card,
Default Audio Device
dmix:CARD=msm8974taikomtp,DEV=0
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=1
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=2
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=3
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=4
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=5
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=6
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=7
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=9
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=10
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=11
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=12
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=13
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=14
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=15
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=17
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=18
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=19
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=20
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=22
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=24
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=26
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=28
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=30
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=31
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=32
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=33
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=34
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=36
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=38
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=40
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=44
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dmix:CARD=msm8974taikomtp,DEV=45
msm8974-taiko-mtp-snd-card,
Direct sample mixing device
dsnoop:CARD=msm8974taikomtp,DEV=0
msm8974-taiko-mtp-snd-card,
Direct sample snooping device
dsnoop:CARD=msm8974taikomtp,DEV=1
msm8974-taiko-mtp-snd-card,
Direct sample snooping device
dsnoop:CARD=msm8974taikomtp,DEV=2
msm8974-taiko-mtp-snd-card,
Direct sample snooping device
dsnoop:CARD=msm8974taikomtp,DEV=3
msm8974-taiko-mtp-snd-card,
Direct sample snooping device
dsnoop:CARD=msm8974taikomtp,DEV=4
msm8974-taiko-mtp-snd-card,
Direct sample snooping device
dsnoop:CARD=msm8974taikomtp,DEV=5
msm8974-taiko-mtp-snd-card,
Direct sample snooping device
dsnoop:CARD=msm8974taikomtp,DEV=6
msm8974-taiko-mtp-snd-card,
Direct sample snooping device
dsnoop:CARD=msm8974taikomtp,DEV=7
msm8974-taiko-mtp-snd-card,
Direct sample snooping device
dsnoop:CARD=msm8974taikomtp,DEV=9
msm8974-taiko-mtp-snd-card,
Direct sample snooping device
dsnoop:CARD=msm8974taikomtp,DEV=10
Obrigado pela ajuda com esse pessoal. Eu literalmente só preciso fazê-lo para jogar a partir da linha de comando. Eu posso mudar o script para usar qualquer programa / utilitário. Não precisa ser aplay / pulse (apenas queria reiterar isso).
Obrigado novamente!
EDITAR:
Aqui está a saída solicitada:
Linux version 3.4.0-gb7558f2 (root@kali) (gcc version 4.7 (GCC) ) #2 SMP PREEMPT Wed Oct 7 02:16:12 UTC 2015
é a saída de / proc / version.
Eu definitivamente poderia instalar uma versão mais antiga do ALSA. Eu apenas não percebi que esse era o problema. Deixe-me purgar esta nova versão e tente uma mais antiga e veja o que eu faço.