DART-SD410 Android Recording and Playing sound file

From Variscite Wiki

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

To enable speaker plug in headset and use:

# tinymix 643 1
# tinymix 636 RX1