python-speech-recognition-course icon indicating copy to clipboard operation
python-speech-recognition-course copied to clipboard

Minor issue

Open wooters opened this issue 2 years ago • 0 comments

Thanks for the example code, it is helpful.

I noticed a small issue in the save_transcript() function - the else statement will never be executed because the if data: condition will always evaluate to True.

https://github.com/AssemblyAI-Examples/python-speech-recognition-course/blob/db2dddbbf01c4bd2ac546f154d05a075b6e4e0a7/02-simple-speech-recognition/api_02.py#L69

Thanks again for providing this code!

wooters avatar Jun 30 '23 21:06 wooters