piper icon indicating copy to clipboard operation
piper copied to clipboard

Unable to Install piper-tts on macOS Due to piper-phonemize 1.1.0 Dependency

Open gabrielgq opened this issue 1 year ago • 18 comments

Unable to Install piper-tts on macOS Due to piper-phonemize 1.1.0 Dependency

Description

I am trying to install piper-tts on macOS. However, the installation process fails because of its dependency on piper-phonemize version 1.1.0, which appears to lack a macOS-compatible distribution.

Steps to Reproduce

  1. On a macOS system, execute: pip install piper-tts
  2. Installation fails due to the dependency on piper-phonemize 1.1.0.
  3. Direct installation of piper-phonemize 1.1.0 also fails: pip install piper-phonemize==1.1.0

Expected Behavior

I anticipated that piper-tts would be installed successfully on my macOS system without issues related to its dependencies.

Actual Behavior

The installation process is halted because there isn't a macOS-compatible wheel or source distribution available for piper-phonemize version 1.1.0.

Additional Information

When inspecting the PyPI page for piper-phonemize 1.1.0, it's evident that wheels are available for Linux (manylinux) for Python versions 3.9, 3.10, and 3.11, but no distributions are present for macOS.

Questions

  1. Is the lack of a macOS distribution for piper-phonemize 1.1.0 a known issue?
  2. Are there plans to release a macOS-compatible wheel or source distribution for this version?
  3. As I am keen to use piper-tts on macOS, is there a recommended workaround or alternative version that I can utilize in the interim?

Thank you for your prompt attention to this matter!

gabrielgq avatar Sep 21 '23 02:09 gabrielgq

@gabrielgq I have exact the same problem.

wdebusschere avatar Sep 21 '23 08:09 wdebusschere

same problem with python 3.11.4 on windows 11 x64

Salvakiya avatar Sep 23 '23 00:09 Salvakiya

same here, I attempted docker image but also ran into issues : (

nafets33 avatar Sep 24 '23 02:09 nafets33

Maybe related to rhasspy/piper-phonemize#11 ? When merged, check if this fixes the issue.

tuxpoldo avatar Sep 27 '23 12:09 tuxpoldo

Seeing the same issue on MacOS.

Wonder if this is the result of version schemas changing recently.

The previous release v1.2.0, but the latest release is 2023.9.27-1. A similar version schema change has happened for piper-phonemize recently.

Wonder if the dependency resolution lists in requirements.txt need to be updated to account for it.

FWIW, I also noticed the latest version available on PyPi is v1.2.0, whereas I'd expect it to match the latest release on GitHub. The latest version of piper-phonemize on PyPi is v1.1.0. That might also be something to look into, in case something is funky with the GitHub workflow config, or the GitHub <> PyPi integration

eshack94 avatar Oct 01 '23 03:10 eshack94

Seeing the same issue on MacOS when installing with pip.. I'm going to try it compiling from source

Sendery avatar Oct 26 '23 09:10 Sendery

@Sendery Any luck ?

Same problem. I will post if I can figure out a solution

williamcorney avatar Oct 27 '23 14:10 williamcorney

Piper phonemize is already for Windows and mac but we only need a Python wheel. I tried to build it but failed.

rmcpantoja avatar Oct 28 '23 01:10 rmcpantoja

Yeah, same on my windows. A shame, I really wanted to try this out!

Aptronymist avatar Oct 29 '23 19:10 Aptronymist

Hi @Aptronymist, you can try without Python API, just download the last asset in the releases page.

rmcpantoja avatar Oct 29 '23 19:10 rmcpantoja

Hi @Aptronymist, you can try without Python API, just download the last asset in the releases page.

Oh I got that , just wanted to be able to use it with python too.

Aptronymist avatar Oct 29 '23 20:10 Aptronymist

@williamcorney I did compile it, or I think... I did have to download the piper-phonemize into the lib folder. I download a few architectures (macos-aarch64 and Linux-arm64) The compilation work and it generated a few executables in the build folder, it even past the single test during compilation. The piper executable wasnt install in any "bin" or "script" folder of the system that i notice I did continue anyway and downloaded a few models and try the piper executable with the "echo .... | piper ... " command When executing the piper executable in the build folder it reports: /usr/share/espeak-ng-data/phontab': No such file or directory But that folder was used during compilation from: piper/install/espeak-ng-data/phondata I did try to link, copy and move... to that path the folder, but I couldnt due to MacOS folder system (or thats what i thought, Im not very expert on MacOS) And I dont know if I can set piper to use anohter path.

I install espeak-ng with ports but didnt do the trick either.

For the moment I'm stuck.

PS: The test generate a wav file that has speech... so It must work somehow... I think

Sendery avatar Oct 30 '23 00:10 Sendery

Same problem with my man as well.

kerwinkfs avatar Nov 13 '23 20:11 kerwinkfs

I posted steps that worked for me to https://github.com/rhasspy/piper-phonemize/issues/14

nickolay avatar Dec 03 '23 00:12 nickolay

if you need to work around this download the wheel: https://github.com/rhasspy/piper-phonemize/issues/14#issuecomment-2094395478 so

pip install piper_phonemize-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
pip install piper-tts

willwade avatar May 14 '24 05:05 willwade