!$isFirstFrame ? null : [ "app_id" => $this->appId ], 'business' => !$isFirstFrame ? null : [ "aue" => $this->requestConfig->getAue(), "rate" => $this->requestConfig->getRate() ], 'data' => [ 'status' => $isFirstFrame ? 0 : ($isLastFrame ? 2 : 1), 'audio' => base64_encode($frameData) ] ]) ); } }