Skip to content

Commit f7fb818

Browse files
committed
Transcript should always be available so put indexing back.
1 parent bff5c69 commit f7fb818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

speech/google/cloud/speech/transcript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def from_api_repr(cls, transcript):
3838
:rtype: :class:`Transcript`
3939
:returns: Instance of ``Transcript``.
4040
"""
41-
return cls(transcript.get('transcript'), transcript.get('confidence'))
41+
return cls(transcript['transcript'], transcript.get('confidence'))
4242

4343
@classmethod
4444
def from_pb(cls, transcript):

0 commit comments

Comments
 (0)