def cria_audio(audio):
tts = gTTS(audio, lang = 'pt-br')
tts.save('audios/{}.mp3'.format(audio))
playsound('audios/{}.mp3'.format(audio))
cria_audio('Bem vindo')
Aparece o seguinte erro: ImportError Traceback (most recent call last) in () ----> 1 cria_audio('Bem vindo')
2 frames /usr/lib/python3/dist-packages/gi/init.py in () 40 41 ---> 42 from . import gi 43 from .gi import API 44 from .gi import Repository
ImportError: cannot import name 'gi' from 'gi' (/usr/lib/python3/dist-packages/gi/_init__.py)
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the "Open Examples" button below.
Mesmo assim, o audio bem-vindo baixou. O que quer dizer isso?