Overview

Data Flow

{
"stream" : “primary”
"url" : "http://<musicid_server/analyze?trx=83cf6049-b722-4c44-b92e-79a504ae8f85:1458580048400&codec=PCM_16_16K&deviceId=5082732351093257712",
"duration" : 6
"captureMode" : “preCapture”
}
curl \-H "Content-Type: application/x-wav" \--trace-ascii debugdump.txt \--data-binary @AudioClip_6.wav '<media_service_url>&codec=PCM_16_16K&deviceId=<device ID>'

Test Case Using Test App CLI Interface

Ensure that SDK support is enabled for audiocapture.

  1. Confirm the presence of /usr/bin/audiocapturemgrtestapp
  2. Launch /usr/bin/audiocapturemgrtestapp and verify that you get a CLI menu
  3. Select option set precapture length.
  4. Provide 3 as the value and press enter.
  5. Select option Start client.
  6. Wait 3 seconds and then select dump precaptured sample. The console will indicate the name and path of the file being written. Note this down and and the precapture length you set (3).
  7. Select capture next N seconds. Enter 10 for length and press enter. The console will indicate the name and path of the file being written. Note this down and the length you entered just now.
  8. Wait 11 seconds.
  9. Select Stop client.
  10. Select Quit.
  11. Copy the dumped files to a PC and verify that they're playable.
  12. Verify that the duration of these sound clips match the number that you logged against them when conducting the test.
  13. Delete all the .wav files created in /opt/ by the test application.

Note: the precaptured sample files have the following pattern: /opt/precap-*.wav.
The sound samples captured using capture next N seconds option will have the following filename pattern: /opt//opt/freshcap-*.wav.

API Documentation

To see the List of APIs supported by audiocapturemgr, Please see Audiocapturemgr API Documentation