confidence = $confidence; } /** * @return float */ public function getConfidence() { return $this->confidence; } /** * Time offset relative to the beginning of the audio, and corresponding to * the end of the spoken word. This field is only set if * `enable_word_time_offsets=true` and only in the top hypothesis. This is an * experimental feature and the accuracy of the time offset can vary. * * @param string $endTime */ public function setEndTime($endTime) { $this->endTime = $endTime; } /** * @return string */ public function getEndTime() { return $this->endTime; } /** * Output only. A distinct integer value is assigned for every speaker within * the audio. This field specifies which one of those speakers was detected to * have spoken this word. Value ranges from 1 up to diarization_speaker_count, * and is only set if speaker diarization is enabled. * * @param int $speakerTag */ public function setSpeakerTag($speakerTag) { $this->speakerTag = $speakerTag; } /** * @return int */ public function getSpeakerTag() { return $this->speakerTag; } /** * Time offset relative to the beginning of the audio, and corresponding to * the start of the spoken word. This field is only set if * `enable_word_time_offsets=true` and only in the top hypothesis. This is an * experimental feature and the accuracy of the time offset can vary. * * @param string $startTime */ public function setStartTime($startTime) { $this->startTime = $startTime; } /** * @return string */ public function getStartTime() { return $this->startTime; } /** * The word corresponding to this set of information. * * @param string $word */ public function setWord($word) { $this->word = $word; } /** * @return string */ public function getWord() { return $this->word; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudVideointelligenceV1p3beta1WordInfo::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p3beta1WordInfo');