-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I'm having trouble getting speech produced on a 2024 MacBook Pro with a M4 chip.
I went through their troubleshooting list and they read me file and everything's OK except that the bin sub directory espeak-ng-data/ is missing. Insread, there is a bin/bin subfolder that contains espeak, espeak-ng speak, and speak-ng. Is this an outdated folder name in the README.md?
I get the following error messages with two attempts:
piper-debug: Process exit status: 11
piper-debug: Failed to generate speech, cleaning up
piper-debug: Deleting temp WAV file: /Users/blaine/e30fewpackages/straight/build/piper-mode/tmp/piper-59LI0s.wav
Failed to generate speech: 11
Mark set [3 times]
piper-debug: Speaking text: This is a test.
piper-debug: Source dir: /Users/blaine/e30fewpackages/straight/repos/piper-mode
piper-debug: Setup script: /Users/blaine/e30fewpackages/straight/repos/piper-mode/setup-piper.sh
piper-debug: Install dir: /Users/blaine/e30fewpackages/straight/build/piper-mode
piper-debug: Created temp WAV file: /Users/blaine/e30fewpackages/straight/build/piper-mode/tmp/piper-7piO2H.wav
piper-debug: Cleaning up resources
piper-debug: Starting Piper process...
piper-debug: Text: This is a test.
piper-debug: Output: /Users/blaine/e30fewpackages/straight/build/piper-mode/tmp/piper-7piO2H.wav
piper-debug: Model: /Users/blaine/e30fewpackages/straight/build/piper-mode/models/en_US-joe-medium.onnx
piper-debug: Relative model: models/en_US-joe-medium.onnx
piper-debug: Script: /Users/blaine/e30fewpackages/straight/build/piper-mode/bin/piper
piper-debug: Directory: /Users/blaine/e30fewpackages/straight/build/piper-mode
piper-debug: Process event: segmentation fault: 11
piper-debug: Process output:
piper-debug: Process exit status: 11
piper-debug: Process completed with status: 11
piper-debug: Failed to generate speech, cleaning up
piper-debug: Deleting temp WAV file: /Users/blaine/e30fewpackages/straight/build/piper-mode/tmp/piper-7piO2H.wav
Failed to generate speech: 11
I tried the suggested configuration without success.
I'm now using the following configuration suggested to me by Claude 3.7 Sonnet, also without success.
(use-package piper-mode
:straight (piper-mode
:type git
:host github
:repo "snowy-0wl/piper-mode"
:files ("*.el" "bin" "models" "setup-piper.sh"))
:init
;; Enable debug logging - moved to :init
(setq piper-debug t)
;; Adjust process timeout (default: 30 seconds) - moved to :init
(setq piper-process-timeout 60)
:config
;; Set the voice model AFTER the package is loaded
(setq piper-voice-model (expand-file-name "models/en_US-joe-medium.onnx"
(file-name-directory (locate-library "piper-mode"))))
;; Run setup script if model doesn't exist
(when (not (file-exists-p piper-voice-model))
(let ((default-directory (file-name-directory (locate-library "piper-mode"))))
(shell-command "chmod +x setup-piper.sh")
(shell-command "./setup-piper.sh .")))
(piper-mode))