BingLingGroup / autosub

Command-line utility to transcribe/translate from video/audio/subtitles to subtitles
GNU General Public License v2.0
1.98k stars 245 forks source link

Fix an issue when content_to_trans is empty #199

Closed WeibingChen17 closed 9 months ago

WeibingChen17 commented 1 year ago

The text returned from google speech_to_text can be empty. In this case, an error is thrown during translation :

TypeError: the JSON object must be str, bytes or bytearray, not NoneType
BingLingGroup commented 9 months ago

Thanks for you pull request.