rom1v / aoa-audio

PoC to forward audio from Android device to computer
58 stars 6 forks source link

The sound cannot be played #2

Open xiaozhi1995 opened 6 years ago

xiaozhi1995 commented 6 years ago

hello,Follow the steps written,the phone's sound cannot be played and data cannot be saved.

rom1v commented 6 years ago

Which OS on the computer? Which device? Which Android version? Which kernel version on the device? Are there any error in the output of the commands, or in adb logcat?

xiaozhi1995 commented 6 years ago

linux,device is HUAWEI MT7-TL10,android version: 4.4.2 ,kernel version is 3.10.30-00015-g048f android@localhost #1 Wed Aug 5 18:28:48 CST 2015, the adb logcat no error,what oao-audio command of device?Please leave a contact information and would like to send a picture

xiaozhi1995 commented 6 years ago

Do you have a playout picture there?and devices info

rom1v commented 6 years ago

what oao-audio command

The ones described in the README. For example, what happens when you execute:

./audio XXXX YYYY 1

and:

pactl list short sources

?

xiaozhi1995 commented 6 years ago

./audio 18d1 2d03 1

Device 18d1:2d03 found. Opening...
Setting audio mode: 1
SUCCESS
$ pactl list short sources
0   alsa_output.pci-0000_00_1b.0.analog-stereo.monitor  module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
1   alsa_input.pci-0000_00_1b.0.analog-stereo   module-alsa-card.c  s16le 2ch 48000Hz   SUSPENDED
10  alsa_input.usb-SAMSUNG_SAMSUNG_Android_5673c096-00.analog-stereo    module-alsa-card.c  s16le 2ch 44100Hz   RUNNING
11  alsa_input.usb-HUAWEI_HUAWEI_Y9KGK16502905517-00.analog-stereo  module-alsa-card.c  s16le 2ch 44100Hz   RUNNING

but,ffplay no result:

 nan    :  0.000 fd=  0 aq=       0kb   vq= 0kb sq=0B f=0/0

the computer no sound,which ffplay version? I try use ffplay play a MP3 file,it can work。 Input #0, mp3, from 'xy.mp3': Duration: 00:00:34.09, start: 0.000000, bitrate: 191 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s 14.17 M-A: 0.000 fd= 0 aq= 26KB vq= 0KB sq= 0B f=0/0

How I search error?thankyou

xiaozhi1995 commented 6 years ago

I changed a Google phone and the sound was ready for transmission. Input #0, pulse, from 'alsa_input.usb-HUAWEI_HUAWEI_Y9KGK16502905517-00.analog-stereo': Duration: N/A, start: 1539591322.078341, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s

very thanks.,Maybe different phone api has changed.

2ulkifli commented 5 years ago

Please help me how to forward aoa-audio on windows 10 step by step tq