Reference documentation and code samples for the Google Cloud Media Translation V1beta1 Client class StreamingTranslateSpeechResult.
A streaming speech translation result corresponding to a portion of the audio that is currently being processed.
Generated from protobuf message google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
Namespace
Google \ Cloud \ MediaTranslation \ V1beta1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text_translation_result |
Google\Cloud\MediaTranslation\V1beta1\StreamingTranslateSpeechResult\TextTranslationResult
Text translation result. |
getTextTranslationResult
Text translation result.
Returns | |
---|---|
Type | Description |
Google\Cloud\MediaTranslation\V1beta1\StreamingTranslateSpeechResult\TextTranslationResult|null |
hasTextTranslationResult
setTextTranslationResult
Text translation result.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\MediaTranslation\V1beta1\StreamingTranslateSpeechResult\TextTranslationResult
|
Returns | |
---|---|
Type | Description |
$this |
getResult
Returns | |
---|---|
Type | Description |
string |