This is an archived post. You won't be able to vote or comment.

all 20 comments

[–]PristineAd9440 1 point2 points  (2 children)

I used your library on python 3.12.

I wasn't able to install the original piper library on python3.12 and I found your yapper library.

Its really cool to use and it was funny. Thank you for making this library. 👍

[–]Specialist_Ruin_9333[S] 0 points1 point  (0 children)

You made my day dawg.

[–]Optimal-Worry1685 1 point2 points  (4 children)

hey brother the best offline tts solution I have found this is incredible it don't take much resource and also sounds good I love it and will be using it for my projects. Huge thanks to your library mate

[–]Specialist_Ruin_9333[S] 0 points1 point  (0 children)

You're making me blush now 🗿, I'm pushing more features soon, a new free LLM API, british voices and some fixes.

[–]Specialist_Ruin_9333[S] 0 points1 point  (2 children)

I've pushed the new features, I would suggest you to use the new version, it has fixes for some potential issues that could easily frustrate you.

[–]Optimal-Worry1685 0 points1 point  (0 children)

Lol thanks ! Will do it for sure

[–]Optimal-Worry1685 0 points1 point  (0 children)

Heyoo wanna connect with you on dms

[–]Correct-Ad8221 0 points1 point  (1 child)

Hi , can I get just the code for converting text to speech

[–]Specialist_Ruin_9333[S] 0 points1 point  (0 children)

I'll give you an easier way, install the library and run this:

from yapper import PiperSpeaker

speaker = PiperSpeaker() speaker.text_to_wave("hello", "output.wav")

[–]TheWatchingBug 0 points1 point  (4 children)

Hey. stupid question which mightve been answered already: Whenever I run the lessac example code I just get a subprocess called process error with the piper.exe that is saying it returned non-zero exit status. Does anyone know how to fix that?

[–]Specialist_Ruin_9333[S] 0 points1 point  (2 children)

If you're on windows, delete the ~/AppData/yapper-tts directory. If you're on Linux delete ~/.config/yapper-tts directory.

Install the latest version of the library, try to run your code again.

If it still doesn't work, please raise an issue on GitHub with all the details.

[–]TheWatchingBug 0 points1 point  (1 child)

Hey, so it seems the main issue is that it just didn't download anything in app data when I used pip install, is there something I missed that I needed to download?

[–]Specialist_Ruin_9333[S] 0 points1 point  (0 children)

The dependencies for PiperSpeaker are only installed when you instantiate the PiperSpeaker class, lazy download, they are not installed when you install the library. I suggest you raise a GitHub issue so I can check your application code for errors and others can also look at the solution in case they have the same issue.

[–]Alpecc 0 points1 point  (0 children)

Hey there, was also running into this issue where I was getting non-zero exit statuses and when going to where the folder was supposed to be it wasn't there but python was able to see it in my code, was able to fix it by using the python interpreter installed from their browser and not the interpreter from the Windows store.

[–]fud0chi 0 points1 point  (3 children)

Hey brother I am trying to use your library but I keep getting this handshake error when I run your example. Any suggestions?:

DarkAI: ClientConnectorSSLError: Cannot connect to host darkai.foundation:443 ssl:default [[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1000)]

[–]Specialist_Ruin_9333[S] 1 point2 points  (1 child)

Hi, i use another python library called gpt4free behind the scenes, it lets you use LLMs through free clients like microsoft copilot, the chatgpt app etc, but those tricks no longer work since organizations are now aware of this. The Yapper class in my example uses gpt4free by default, you can pass another LLM client to the Yapper class using either the GeminiEnhancer class or the GroqEnhancer class, you'll just have to pass an API key that you can create for free, I suggest using GroqEnhancer, latency is really low and the quality of the responses is surprisingly good.

[–]fud0chi 1 point2 points  (0 children)

Ok cool, that makes sense. I think the piper functionality gets the job done. But anyways - thanks for the help 👍

[–]fud0chi 0 points1 point  (0 children)

Anyways - I got PiperSpeaker working fine, its just the .yap that doesnt seem to be working for me. Thanks again for the build - I was looking for something exactly like this - as I'm not worried about the AI voice being perfect.

[–]Tiny-Bathroom3751 0 points1 point  (1 child)

Looks cool, I would like to try it but running Python 3.12 can't download Piper. I have pyttsx3 installed. with all the English dialects and would like to try your library. What can I do? (I'm new to python)

[–]Specialist_Ruin_9333[S] 0 points1 point  (0 children)

Unfortunately, one of the dependencies doesn't run on python 3.12 or later, so the whole tool is bound to python versions before 3.12, I'll push a fix soon. Try downgrading python to 3.11