if i use the other way around … by saying generating a mp3 file and playing it with playsound* give me ‘gi’ no module not found.
from gtts import gTTS
# The text that you want to convert to audio
mytext = 'Welcome Bob ,, how are you, '
# Language in which you want to convert
language = 'en'
myobj = gTTS(text=mytext, lang=language, slow=False)
from playsound import playsound
ModuleNotFoundError: No module named ‘gi’
File "/home/appuser/.local/lib/python3.7/site-packages/streamlit/script_runner.py", line 332, in _run_script
exec(code, module.__dict__)File "/app/streamlit_churn_analysis/streamlit_churn.py", line 138, in <module>
main()File "/app/streamlit_churn_analysis/streamlit_churn.py", line 128, in main
run_churn_plots()File "/app/streamlit_churn_analysis/plot_learning.py", line 62, in run_churn_plots
playsound("welcome.mp3")File "/home/appuser/.local/lib/python3.7/site-packages/playsound.py", line 91, in _playsoundNix