Skip to content

Commit 35601b9

Browse files
authored
Merge pull request #15 from mvrogozov/master
Update sync recognition
2 parents 26f35a3 + aa28705 commit 35601b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/speechkit/_recognition/sync_recognition.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,5 +412,6 @@ def get_raw_text(self):
412412

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

0 commit comments

Comments
 (0)