May contain one or more recognition hypotheses (up to the maximum specified inmax_alternatives). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.
↳ language_code
string
Output only. TheBCP-47language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
getAlternatives
May contain one or more recognition hypotheses (up to the maximum specified
inmax_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
May contain one or more recognition hypotheses (up to the maximum specified
inmax_alternatives). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
Output only. TheBCP-47language tag of the language in this result. This language code was
detected to have the most likelihood of being spoken in the audio.
Returns
Type
Description
string
setLanguageCode
Output only. TheBCP-47language tag of the language in this result. This language code was
detected to have the most likelihood of being spoken in the audio.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Video Intelligence V1 Client - Class SpeechTranscription (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-videointelligence/latest/V1.SpeechTranscription)\n- [2.0.4](/php/docs/reference/cloud-videointelligence/2.0.4/V1.SpeechTranscription)\n- [1.15.5](/php/docs/reference/cloud-videointelligence/1.15.5/V1.SpeechTranscription)\n- [1.14.2](/php/docs/reference/cloud-videointelligence/1.14.2/V1.SpeechTranscription)\n- [1.13.1](/php/docs/reference/cloud-videointelligence/1.13.1/V1.SpeechTranscription)\n- [1.12.16](/php/docs/reference/cloud-videointelligence/1.12.16/V1.SpeechTranscription) \nReference documentation and code samples for the Cloud Video Intelligence V1 Client class SpeechTranscription.\n\nA speech recognition result corresponding to a portion of the audio.\n\nGenerated from protobuf message `google.cloud.videointelligence.v1.SpeechTranscription`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ VideoIntelligence \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAlternatives\n\nMay contain one or more recognition hypotheses (up to the maximum specified\nin `max_alternatives`). These alternatives are ordered in terms of\naccuracy, with the top (first) alternative being the most probable, as\nranked by the recognizer.\n\n### setAlternatives\n\nMay contain one or more recognition hypotheses (up to the maximum specified\nin `max_alternatives`). These alternatives are ordered in terms of\naccuracy, with the top (first) alternative being the most probable, as\nranked by the recognizer.\n\n### getLanguageCode\n\nOutput only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)\nlanguage tag of the language in this result. This language code was\ndetected to have the most likelihood of being spoken in the audio.\n\n### setLanguageCode\n\nOutput only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)\nlanguage tag of the language in this result. This language code was\ndetected to have the most likelihood of being spoken in the audio."]]