We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bff5c69 commit f7fb818Copy full SHA for f7fb818
speech/google/cloud/speech/transcript.py
@@ -38,7 +38,7 @@ def from_api_repr(cls, transcript):
38
:rtype: :class:`Transcript`
39
:returns: Instance of ``Transcript``.
40
"""
41
- return cls(transcript.get('transcript'), transcript.get('confidence'))
+ return cls(transcript['transcript'], transcript.get('confidence'))
42
43
@classmethod
44
def from_pb(cls, transcript):
0 commit comments