DART-SD410 Android Recording and Playing sound file

From Variscite Wiki
Revision as of 13:15, 17 April 2016 by Leonid (talk | contribs) (Created page with "= Recording and Playing sound file = To record simple wav file from the headset use the following scenario: * Plug in standard cellphone headset into Headset Jack (J15) We use...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Recording and Playing sound file

To record simple wav file from the headset use the following scenario:

  • Plug in standard cellphone headset into Headset Jack (J15) We used Samsung headset.
  • use the following commands to test:
$ su
Set the mixer parameters to enable headset record
# tinymix 'MultiMedia1 Mixer TERT_MI2S_TX' 1
# tinymix 'DEC1 MUX' 'ADC2'
# tinymix 'ADC2 MUX' 'INP2'
# tinymix 'MultiMedia1 Mixer TERT_MI2S_TX' 1
Record an audio file
# tinycap /sdcard/test.wav
In the end of recording press ^c
The file test.wav will be created in /sdcard folder

To play the recorded file use:

# tinymix 'PRI_MI2S_RX Audio Mixer MultiMedia1' 1
# tinymix 'RX1 MIX1 INP1' 'RX1'
# tinymix 'RX2 MIX1 INP1' 'RX2'
# tinymix 'RDAC2 MUX' 'RX2'
# tinymix 'HPHL' 'Switch'
# tinymix 'HPHR' 'Switch'
# tinymix 'MI2S_RX Channels' 'Two'
# tinyplay /sdcard/test.wav