StreamingRecognizeResponse is the only message returned to the
client by StreamingRecognize. A series of zero or more
StreamingRecognizeResponse messages are streamed back to the
client. If there is no recognizable audio, and single_utterance
is set to false, then no messages are streamed back to the client.
Here's an example of a series of StreamingRecognizeResponse\ s
that might be returned while processing audio:
results { alternatives { transcript: " that is the question"
confidence: 0.98 } alternatives { transcript: " that was the
question" } is_final: true }
Notes:
Only two of the above responses #4 and #7 contain final results;
they are indicated by is_final: true. Concatenating these
together generates the full transcript: "to be or not to be that
is the question".
The others contain interim results. #3 and #6 contain two
interim results: the first portion has a high stability and
is less likely to change; the second portion has a low stability
and is very likely to change. A UI designer might choose to show
only high stability results.
The specific stability and confidence values shown above
are only for illustrative purposes. Actual values may vary.
In each response, only one of these fields will be set:
error, speech_event_type, or one or more (repeated)
results.
Attributes
Name
Description
error
google.rpc.status_pb2.Status
If set, returns a google.rpc.Status][google.rpc.Status]
message that specifies the error for the operation.
results
MutableSequence[google.cloud.speech_v1p1beta1.types.StreamingRecognitionResult]
This repeated list contains zero or more results that
correspond to consecutive portions of the audio currently
being processed. It contains zero or one is_final=true
result (the newly settled portion), followed by zero or more
is_final=false results (the interim results).
[[["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-08-28 UTC."],[],[],null,["# Class StreamingRecognizeResponse (2.33.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.33.0 (latest)](/python/docs/reference/speech/latest/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.32.0](/python/docs/reference/speech/2.32.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.31.0](/python/docs/reference/speech/2.31.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.30.0](/python/docs/reference/speech/2.30.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.29.0](/python/docs/reference/speech/2.29.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.28.1](/python/docs/reference/speech/2.28.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.27.0](/python/docs/reference/speech/2.27.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.26.1](/python/docs/reference/speech/2.26.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.25.1](/python/docs/reference/speech/2.25.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.24.1](/python/docs/reference/speech/2.24.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.23.0](/python/docs/reference/speech/2.23.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.22.0](/python/docs/reference/speech/2.22.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.21.1](/python/docs/reference/speech/2.21.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.20.1](/python/docs/reference/speech/2.20.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.19.0](/python/docs/reference/speech/2.19.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.18.0](/python/docs/reference/speech/2.18.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.17.3](/python/docs/reference/speech/2.17.3/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.16.2](/python/docs/reference/speech/2.16.2/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.15.1](/python/docs/reference/speech/2.15.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.14.1](/python/docs/reference/speech/2.14.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.13.1](/python/docs/reference/speech/2.13.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.12.0](/python/docs/reference/speech/2.12.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.11.1](/python/docs/reference/speech/2.11.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.10.0](/python/docs/reference/speech/2.10.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.9.3](/python/docs/reference/speech/2.9.3/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.8.0](/python/docs/reference/speech/2.8.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.7.0](/python/docs/reference/speech/2.7.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.6.0](/python/docs/reference/speech/2.6.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.5.1](/python/docs/reference/speech/2.5.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.4.1](/python/docs/reference/speech/2.4.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.3.0](/python/docs/reference/speech/2.3.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.2.1](/python/docs/reference/speech/2.2.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.1.0](/python/docs/reference/speech/2.1.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [2.0.1](/python/docs/reference/speech/2.0.1/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [1.3.4](/python/docs/reference/speech/1.3.4/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [1.2.0](/python/docs/reference/speech/1.2.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse)\n- [1.1.0](/python/docs/reference/speech/1.1.0/google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse) \n\n StreamingRecognizeResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\n`StreamingRecognizeResponse` is the only message returned to the\nclient by `StreamingRecognize`. A series of zero or more\n`StreamingRecognizeResponse` messages are streamed back to the\nclient. If there is no recognizable audio, and `single_utterance`\nis set to false, then no messages are streamed back to the client.\n\nHere's an example of a series of `StreamingRecognizeResponse`\\\\ s\nthat might be returned while processing audio:\n\n1. results { alternatives { transcript: \"tube\" } stability: 0.01 }\n\n2. results { alternatives { transcript: \"to be a\" } stability: 0.01\n }\n\n3. results { alternatives { transcript: \"to be\" } stability: 0.9 }\n results { alternatives { transcript: \" or not to be\" } stability:\n 0.01 }\n\n4. results { alternatives { transcript: \"to be or not to be\"\n confidence: 0.92 } alternatives { transcript: \"to bee or not to\n bee\" } is_final: true }\n\n5. results { alternatives { transcript: \" that's\" } stability: 0.01\n }\n\n6. results { alternatives { transcript: \" that is\" } stability: 0.9\n } results { alternatives { transcript: \" the question\" }\n stability: 0.01 }\n\n7. results { alternatives { transcript: \" that is the question\"\n confidence: 0.98 } alternatives { transcript: \" that was the\n question\" } is_final: true }\n\nNotes:\n\n- Only two of the above responses #4 and #7 contain final results;\n they are indicated by `is_final: true`. Concatenating these\n together generates the full transcript: \"to be or not to be that\n is the question\".\n\n- The others contain interim `results`. #3 and #6 contain two\n interim `results`: the first portion has a high stability and\n is less likely to change; the second portion has a low stability\n and is very likely to change. A UI designer might choose to show\n only high stability `results`.\n\n- The specific `stability` and `confidence` values shown above\n are only for illustrative purposes. Actual values may vary.\n\n- In each response, only one of these fields will be set:\n `error`, `speech_event_type`, or one or more (repeated)\n `results`.\n\nClasses\n-------\n\n### SpeechEventType\n\n SpeechEventType(value)\n\nIndicates the type of speech event."]]