rany2/edge-tts

has no attribute 'Communicate'

Closed this issue · 7 comments

AttributeError: module 'edge_tts' has no attribute 'Communicate'

How did you install edge_tts?

pip install edge-tts

Python 3.11.9

Name: edge-tts
Version: 6.1.12
Summary: Microsoft Edge's TTS
Home-page: https://github.com/rany2/edge-tts
Author: rany
Author-email: ranygh@riseup.net

I'm not sure, what is the output of

import edge_tts
print(edge_tts.__dir__())
print(edge_tts.__version__)

Got same issue:

import edge_tts
print(edge_tts.__dir__())
print(edge_tts.__version__)

Output:

['__name__', '__doc__', '__package__', '__loader__', '__spec__', '__file__', '__cached__', '__builtins__', 'os', 'requests', 'pd', 'tqdm', 'edge_tts', 'tts']
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[6], [line 3](vscode-notebook-cell:?execution_count=6&line=3)
      [1](vscode-notebook-cell:?execution_count=6&line=1) from edge_tts import edge_tts
      [2](vscode-notebook-cell:?execution_count=6&line=2) print(edge_tts.__dir__())
----> [3](vscode-notebook-cell:?execution_count=6&line=3) print(edge_tts.__version__)

AttributeError: module 'edge_tts' has no attribute '__version__'

Found out i have a edge_tts.py in the root dir that importing wrong module.

rename it resolve this problem

I guess it's solved then.