I was using VSCode to write Python code. When running the code in debug mode it gives the following error:
Extra data: line 1 column 390 (char 389)
File "---" line 20, in translated_text = translator.translate(speech_text, lang_tgt = 'fr')
Some code that runs the same issue can be seen here.
The line in question is the following:
translated_text = translator.translate(speech_text, lang_tgt = 'fr')
I have imported the library into VS Code and am using the right Python version. Does anyone know a fix to this error? Has the documentation changed?