We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26f35a3 + aa28705 commit 35601b9Copy full SHA for 35601b9
1 file changed
src/speechkit/_recognition/sync_recognition.py
@@ -412,5 +412,6 @@ def get_raw_text(self):
412
413
text = ''
414
for chunk in self._answer_data.get('response', {}).get('chunks', []):
415
- text += chunk['alternatives'][0]['text']
+ if chunk['channelTag'] == '1':
416
+ text += f"{chunk['alternatives'][0]['text'].strip()} "
417
return text
0 commit comments