If the point of running that code was only to get text-to-speech working alongside your Python code, you can use **Jupyter online** (both classic & JupyterLab) to get your own system to speak the text by passing it via javascript to your local system's Speech synthesis, see [here](https://mindtrove.info/jupyter-tidbit-run-and-say-done/) for examples of code that works. Those approaches run in notebooks in sessions launched from the first two tiles [here at Try Jupyter](https://jupyter.org/try).
– WayneFeb 14 '22 at 20:10