kxxt / aspeak

A simple text-to-speech client for Azure TTS API.
MIT License
494 stars 57 forks source link

Publish python wheels for apple silicon Macs #81

Open willwade opened 1 year ago

willwade commented 1 year ago

so heres the code

from aspeak import SpeechService, AudioFormat

and it leads to

Traceback (most recent call last):
  File "/Users/willwade/GitHub/TranslateAndTTS/translatepb.py", line 9, in <module>
    from aspeak import SpeechService, AudioFormat
ImportError: cannot import name 'SpeechService' from 'aspeak' (/Users/willwade/.pyenv/versions/3.11.4/lib/python3.11/site-packages/aspeak/__init__.py)

I've tried py 3.8, 3.10.11, 3.9 and you can see above 3.11 I'm on a Mac M2

I have a feeling its the mac causing this issue. On Windows running py 3.8 its fine

kxxt commented 1 year ago

I'm on a Mac M2 I have a feeling its the mac causing this issue.

Yes, your feeling is right. I haven't published wheels for apple silicon Macs. This could be fixed but I am busy right now and don't have time to do so.

For now, You can build a wheel by yourself, or just use the closed-source speech SDK from Microsoft