I output human-readable debugging messages like the following (the code is print('abc');;
):
The error message is pointing out that you have “;;” at the end of your print statement, and Python doesn’t know how to handle that extra semicolon
I want to convert this text to speech through an API. However, the text to speech APIs I’ve used don’t pronounce code snippets well at all. For example, in the above message, ElevenLabs will simply ignore (not speak) the “;;”. This ruins the whole message, of course.
Are there any good text-to-speech APIs or settings I can use?