/** * Saves the data of a new response recorded using the plugin * @param int $exerciseId * An exercise identificator * @param int $exerciseDuration * The duration of the exercise in seconds * @param int $subtitleId * The identificator of the subtitles that were used on the recording process * @param string $recordedRole * The character name that was impersonated in the recording process * @param String $responseName * The hash name of the recording file * @return mixed $responseData * Array with information about the newly saved response, or false on error */ function babelium_save_response_data($exerciseId, $exerciseDuration, $subtitleId, $recordedRole, $responseName) { $g = new babelium_gateway(); $parameters = array("exerciseId" => $exerciseId, "duration" => $exerciseDuration, "subtitleId" => $subtitleId, "characterName" => $recordedRole, "fileIdentifier" => $responseName); return $responsedata = $g->newServiceCall('admSaveResponse', $parameters); }