SeeTest Automation supports audio interaction with the device
This interaction is done by playing an audio file to the device headset jack, and recording the device's output (from the headset jack) and storing it in an audio file.
This feature requires dedicated hardware. please consult this page.
When audio is configured, the following audio commands can be executed from SeeTest Automation on local devices:
1) SeeTestAutomation- StartAudioPlay - start audio play from specified file located on local machine.
2) StopAudioPlay - Stop playing the file.
2) SeeTestAutomation- WaitForAudioPlayEnd - wait until audio play ends or until specified timeout.
3) SeeTestAutomation- StartAudioRecording - start audio recording from device into specified file. value should be full path.
4) SeeTestAutomation- StopAudioRecording - audio file is downloaded to a file, located on local machine, that was specified in StartAudioRecording command.
Step 1: configuring audio support for devices
On "Tools" menu , click on Audio settings
Audio Settings dialog contains following options:
1) Choosing the device you want to configure.
2) List of Audio In lines (used for recording commands).
3) List of Audio out lines (used for playback commands).
When plugging or Unplugging a USB audio interface, wait for 25 seconds for it to be added\removed from the audio lines list.
Audio icon will appear in device table for devices which in line or out line were configured for them in the audio settings.
- If you wish to remove the audio settings for a specific device, choose "No Audio Configuration"
- More then one device can be configure to work with one audio interface.
Step 2: Run audio test
Now audio commands can be used with this device:
In the following example, we:
- play an audio file to the device.
- wait until the playing will end for up to 10 seconds.
- start recording from the device
- sleep for 20 seconds while we record.
- stop the recording
Using WaitForDevice with audio parameter in query
SeeTestAutomation- WaitForDevice command can use audio support flag in the query: