Legacy | Start audio recording

  • Command: audio.recording

  • Subcommand: start

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Starts recording the audio output from the device and creates a WAV file. The file is saved in the media storage server. A URL to the file location is returned in the response to the command and, if supplied, in the Result variable supplied as a parameter.

To hear the audio when using Start Audio in the Perfecto Automation IDE, you need to use the Open Device command and the parameter "Audio Recording" should be set to TRUE.

Important: The audio file is not available until after the Stop audio recording command is completed.
Restriction: For devices connected to the Enhanced Video Solution (Distributor = MacCam), it will not be possible to record audio during a phone call. Although the start audio recording command will succeed, the resulting recording will be "blank" and will contain no audio. This is due to a limitation where the audio is played through an internal device speaker and cannot be captured by the system.

Parameters

Name Value Default Description
deviceId*     The device for this command.
variable     The variable name to recieve the url of the audio file.

* Mandatory parameter

Request Syntax

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-06_07_08_05_338?operation=command&securityToken=<your_token>&command=audio.recording&subcommand=start&param.deviceId=6370E775&param.variable=SoundLoc