Elleo / pied

Pied makes it simple to install and manage text-to-speech Piper voices for use with Speech Dispatcher.
https://pied.mikeasoft.com
GNU General Public License v3.0
125 stars 4 forks source link

[Request] Instructions to build appimage or normal installation package or pip install #6

Open omega3 opened 10 months ago

omega3 commented 10 months ago

I am on Manjaro Linux and I don't know how to build appimage. Can you provide some instructions how to build appimage or normal package that installs like all other packages. I prefer smaller packages than all this Flatpak ecosystem. Does it need to be run in some virtual environment like env or something?

Or perhaps pip install? I installed piper via pip pip install piper-tts Pip would be the best because is so easy to install.

Elleo commented 10 months ago

Hi,

Unfortunately the AppImage packaging isn't ready yet (I'm running into a crash when packaged as an AppImage that I haven't been able to track down yet).

There is a pre-compiled binary version here: https://github.com/Elleo/pied/releases/download/v0.2.0/pied-0.2.0-x86_64.tar.gz

No guarantees that it'll work on your system though, as versions of the libraries that it depends on (like gstreamer) may be different/absent. But it's probably worth a try.

I'm afraid pip wouldn't be appropriate as Pied isn't python based.

I'll leave this bug open until the AppImage is complete.

Hope the helps, Mike.

omega3 commented 10 months ago

Thank you very much. It works for me. I run it even without installing: ./pied I am very happy with that. Great software.

Sorry for offtopic but are there any chances to add some options, to be able to choose for example en-US libritts_r 1638 (7)? https://rhasspy.github.io/piper-samples/

Elleo commented 10 months ago

@omega3 Yep, I'm planning on adding support for models containing multiple voices in a future version

RobertsGhostBusterFan commented 9 months ago

will it be possible in the future to build this on windows with Visual Studio, CMake, and Qt installed on your machine? any plans for a windows port of this software?

I don't have many alternatives for windows yet, and you can only access in pdf the high-quality nature voices under that which works great if you want to convert epub or other format in calibre eBook reader, then print to pdf in viewer and you can use the text to speech that way with pdf and edge, otherwise no way to access those voices of windows 11 or 10. outside of edge's pdf viewer.

I know it might work from windows subsystem for linux and ubuntu from the windows 11 store app, but then pied would be limited to snap and within the windows subsystem for linux, I don't think if you install it this way, that it would work outside of the windows subsystem for linux on windows 11, but I am guessing that method would be unsupported if it works.

Elleo commented 9 months ago

Hi @RobertsGhostBusterFan,

I'm afraid a Windows port wouldn't really be feasible. Pied is based around the speech dispatcher architecture which is a Linux (and BSD) specific system. Windows has its own, completely different text-to-speech system. So, for it to work on Windows would require a complete rewrite targetting the Windows system (which I don't have any experience or knowledge of).

Cheers, Mike

raininja commented 3 months ago

I am here to also request normal building instructions, as I prefer not to use appimage nor flatpak in my arch installation. I have attempted and dart analyze yields numerous errors . . .

raininja commented 2 months ago

GOT IT! I feel dumb , it's a flutter app, use flutter methods.

juanMarinero commented 1 month ago

Hi! I built Piper from source in next path (added to ~/.bashrc)

export PATH=$PATH:$HOME/piper/install

So I can run "piper" anywhere instead of cd to repo dir and "./piper". Example:

cd [anyPath]
echo 'Welcome to the world of speech synthesis!' | \
  piper --model en_US-lessac-medium.onnx --output_file welcome.wav

I linked that executable to a location I expect snap to have access (I think this is my error, but no idea where to link) sudo ln -s $HOME/piper/install/piper /usr/local/bin/piper

Then I snap installed Pied

sudo snap install pied
pied 

Piped asks to install Piper. Though its installed and linked to /usr/local/bin

With newest pre-compiled binary version of Piped happens the same. With flutter no idea, but it is unfamiliar to me.

FYI: If I install the "Piper" through Piped GUI and run as I explained in issue 14 it works. But I insist, I want Piped to find git-cloned "Piper" please

More info:

Ubuntu 24.04.1 LTS

> snap list pied
Name  Version  Rev  Tracking       Publisher        Notes
pied  0.2.1    82   latest/stable  michael-sheldon  -
> snap connections pied
Interface               Plug                               Slot                            Notes
audio-playback          pied:audio-playback                :audio-playback                 -
content[gnome-42-2204]  pied:gnome-42-2204                 gnome-42-2204:gnome-42-2204     -
content[gtk-3-themes]   pied:gtk-3-themes                  gtk-common-themes:gtk-3-themes  -
content[icon-themes]    pied:icon-themes                   gtk-common-themes:icon-themes   -
content[sound-themes]   pied:sound-themes                  gtk-common-themes:sound-themes  -
desktop                 pied:desktop                       :desktop                        -
desktop-legacy          pied:desktop-legacy                :desktop-legacy                 -
gsettings               pied:gsettings                     :gsettings                      -
network                 pied:network                       :network                        -
network-status          pied:network-status                :network-status                 -
opengl                  pied:opengl                        :opengl                         -
personal-files          pied:dot-config-speech-dispatcher  :personal-files                 -
process-control         pied:process-control               :process-control                -
wayland                 pied:wayland                       :wayland                        -
x11                     pied:x11                           :x11                            -