Skip to content

Commit

Permalink
Merge pull request #15 from mvrogozov/master
Browse files Browse the repository at this point in the history
Update sync recognition
  • Loading branch information
tikhonp authored Feb 3, 2025
2 parents 26f35a3 + aa28705 commit 35601b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/speechkit/_recognition/sync_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,5 +412,6 @@ def get_raw_text(self):

text = ''
for chunk in self._answer_data.get('response', {}).get('chunks', []):
text += chunk['alternatives'][0]['text']
if chunk['channelTag'] == '1':
text += f"{chunk['alternatives'][0]['text'].strip()} "
return text

0 comments on commit 35601b9

Please sign in to comment.