Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

piper: exec format error on MacOS #9

Open
sammcj opened this issue Oct 9, 2024 · 4 comments
Open

piper: exec format error on MacOS #9

sammcj opened this issue Oct 9, 2024 · 4 comments

Comments

@sammcj
Copy link

sammcj commented Oct 9, 2024

Howdy, there seems to be an issue with the piper binary:

./QuickPiperAudiobook readme.md                                                                                                                
New default configuration file created at /Users/samm/.config/QuickPiperAudiobook/config.yaml
No output value specified, default from config file: ~/Audiobooks
Using model specified in config file: en_US-hfc_male-medium.onnx
Installing piper...
Extracting piper...
2024/10/09 16:51:49 extracted tarball into /Users/samm/.config/QuickPiperAudiobook: 455 files, 39 dirs (843.384584ms)
Piper installed successfully.
Downloading en_US-hfc_male-medium.onnx to /Users/samm/.config/QuickPiperAudiobook/en_US-hfc_male-medium.onnx
Finished downloading successfully.
Downloading en_US-hfc_male-medium.onnx.json to /Users/samm/.config/QuickPiperAudiobook/en_US-hfc_male-medium.onnx.json
Finished downloading successfully.
Converting readme.md to the proper intermediary text format...
Text conversion completed successfully.
Converting your file to an audiobook... This may take a while!
|Error: failed to run piper command: fork/exec /Users/samm/.config/QuickPiperAudiobook/piper/piper: exec format error
  • macOS 15.0.1
  • M2 Max
@sammcj
Copy link
Author

sammcj commented Oct 9, 2024

Oh I see what the problem is, looking through the source code it's hard coded to download an AMD64 version of Piper!

@sammcj
Copy link
Author

sammcj commented Oct 9, 2024

I'll submit a PR

@C-Loftus
Copy link
Owner

C-Loftus commented Oct 9, 2024

Linking my comment in #10 for anyone else Interested.
To my understanding there are not proper MacOS builds for piper at the moment.

@TeemuKoivisto
Copy link

I stumbled upon this issue as well. Yeah it's probably a fool's errand to try to install either the binary or the Python package for ARM macs. I used this script https://github.com/dspasyuk/llama.cui/blob/main/piper_install_mac.sh to build it from the source and now it runs

@C-Loftus C-Loftus changed the title piper: exec format error piper: exec format error on MacOS Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants