Тёмный

TEXT TO SPEECH | Piper TTS on Windows 🚀 AI voice 10x faster Realtime! 

Thorsten-Voice
Подписаться 7 тыс.
Просмотров 24 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 214   
@synesthesiam
@synesthesiam 11 месяцев назад
Excellent video, thank you Thorsten! A member of the Piper community has created a new streaming mode for Piper that I hope to get released soon. The current streaming mode only works on sentences, but his will start outputting audio in around 100 ms :)
@TheVisitorX
@TheVisitorX 11 месяцев назад
Thanks for that information, that is actually THE feature I was waiting for. I love piper, but for a 'realtime' llm chat it takes a bit too long to process a longer text.
@ThorstenMueller
@ThorstenMueller 11 месяцев назад
Thanks for your kind feedback, Mike 😊. Excited to give the coming streaming-feature a try in future.
@rabeemohammed5351
@rabeemohammed5351 11 месяцев назад
please can you give me link how can use piper-tts with python
@SkyCandy
@SkyCandy 8 месяцев назад
It looks like the streaming mode is now available! I don't suppose we can get a tutorial on how to use it?
@SkyCandy
@SkyCandy 8 месяцев назад
Especially on how to play the stream on Windows as the example code utilizes a Linux tool to play the audio stream.
@juanjesusligero391
@juanjesusligero391 10 месяцев назад
If somebody is trying this right now, with the current pre-release (2023.11.14-2), you'll need to add also the model config file's path to the command, or it won't work (and the worst thing is that you won't get an error message, so you won't know what's happening ^^U). Here's an example of what you'll need to input for it to work: echo "Hello, this is a test using Piper TTS." | piper.exe -m en_US-kathleen-low.onnx -c en_en_US_kathleen_low_en_US-kathleen-low.onnx.json -f test1.wav As always, thank you very much for your great videos! :D
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
Thanks for your really helpful command 😊. I added your hint to the video description and tagged you - hope this is okay.
@justinanthony8858
@justinanthony8858 9 месяцев назад
even with that command i can not get any wav file to be created will try on the pi
@ThorstenMueller
@ThorstenMueller 9 месяцев назад
@@justinanthony8858 Is any error message shown?
@justinanthony8858
@justinanthony8858 9 месяцев назад
@@ThorstenMueller sadly no, as the above user says no error message is displayed when something goes wrong, I run with --debug too and nothing i tried running ps as admin too
@pingosimon
@pingosimon 9 месяцев назад
Yes - this worked for me. Thanks!
@d3ndr1t30x
@d3ndr1t30x 17 дней назад
This has been the first genuinely helpful video I've found on running an A.I text to speech model locally, thank you sir!
@ThorstenMueller
@ThorstenMueller 17 дней назад
Thanks for your kind feedback 😊.
@toddd.8496
@toddd.8496 3 месяца назад
I love how you say it's "super simple" at the end. Well, now it is because you just showed us all how to do it! Thank you!
@ThorstenMueller
@ThorstenMueller 3 месяца назад
Thanks a lot for your very nice feedback 😊. Happy you found my video helpful so now it's "super simple" for you too ;-).
@Jonas_Fox
@Jonas_Fox 9 дней назад
I love the results-driven adjustment to your script. (Seeing/hearing the end result at the beginning was great.) I've really wanted to export some of my epub books into audiobooks and this looks like one of the first steps. Thanks for all you do Thorsten.
@ThorstenMueller
@ThorstenMueller 5 дней назад
Thanks for your great feedback 😊.
@tiberiusvetus9113
@tiberiusvetus9113 11 месяцев назад
It's great that these models are making progress. I'm still surprised that open source models have less consistency in the output than 15+ yr old model like Microsoft Zira.
@ThorstenMueller
@ThorstenMueller 11 месяцев назад
I'm happy too to see open source TTS models making progress on quality and performance. I'm not sure what you mean with "consistency" in this context.
@MundusInfo
@MundusInfo Месяц назад
Hallo Thorsten, ich muss Dir dreifach DANKEN. 1. Habe mit Piper genau die AI Anwendung gefunden die ich schon lange gesucht habe. 2. Danke für Deine super Piper Stimme und vielen danke für Deine Arbeit und Bemühungen. 3. Habe nun selber ein RU-vid Kanal und verwende dafür Deine Stimme :-) Natürlich erwähne ich Dich in jedem Video. Siehe @MundusInfo | www.youtube.com/@MundusInfo
@ThorstenMueller
@ThorstenMueller Месяц назад
Hallo, dann sage ich Dir dreifach GERN GESCHEHEN 😊. Es war tatsächlich eine lange Reise, bis ich mit meiner Thorsten-Voice TTS Stimme zufrieden war. Umso mehr freut es mich, wenn meine Stimme als nützlich empfunden wird.
@linkplotter
@linkplotter 9 месяцев назад
Hey Thorsten, danke für dieses und die anderen Tutorials!
@ThorstenMueller
@ThorstenMueller 9 месяцев назад
Hi 👋, vielen Dank für deinen netten Kommentar und sehr gerne 😊.
@Fbt_ETH
@Fbt_ETH 11 месяцев назад
🎯 Key Takeaways for quick navigation: - Introduction to Piper TTS - Description of Piper TTS - Link to related Piper TTS videos - Downloading the Piper TTS Windows installer - Extracting the Piper TTS files - Copying the Piper TTS files to a desired location - Checking the Piper TTS directory contents - Opening a PowerShell window - Navigating to the Piper TTS directory - Running the Piper TTS help command - Understanding the required arguments for Piper TTS - Downloading the Piper TTS English US Castline TTS model files (.onnx and .json) - Saving the downloaded TTS model files to the Downloads folder - Copying the downloaded TTS model files to the Piper TTS directory - Echoing test text to the standard input - Piping the echoed text to the Piper TTS command - Providing the downloaded TTS model file name as an argument to Piper TTS - Running the Piper TTS command - Generating test audio using Piper TTS - Specifying output filename using the -F parameter - Observing real-time audio generation speed - Downloading a different Piper TTS voice model (English US Castline High) - Generating test audio using the new voice model and saving it as test2.wav - Observing the difference in voice quality between the two models - Creating a text file (demo.txt) with longer content - Using the cat command to pass the contents of demo.txt to Piper TTS - Generating test audio (test3.wav) from the contents of demo.txt - Recap of the process for using Piper TTS on Windows - Encouragement to subscribe to the Thorsten Voice RU-vid channel - Invitation to share feedback on the video Made with HARPA AI
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
Thanks for sharing 👏😊.
@boessi
@boessi Месяц назад
Hallo Thorsten, schönes Video! Klappt das auch mit srt oder sbv Dateien? VG Anton
@ThorstenMueller
@ThorstenMueller Месяц назад
Freut mich, dass Dir das Video gefällt 😊. Gute Frage wegen Untertitel Dateien. Vielleicht sollte ich mir das mal anschauen - klingt auf jeden Fall spannend 🤔. Müsste mir mal eine SRT/SBV Datei anschauen.
@trenthogan4212
@trenthogan4212 8 месяцев назад
I wish there was just a simple download executable that would install everything on Windows 11. This seems like you'd need a degree in computer science to get it running.
@ThorstenMueller
@ThorstenMueller 7 месяцев назад
I guess a solid computer knowledge is not too bad to get it set up. Maybe there will be more easy ways to set it up in future - but i guess it's not too soon on their roadmap. Maybe ask on an easier way on Piper github community to get it more into the spotlight.
@Lucky5985
@Lucky5985 Месяц назад
Thanks for the video! Any suggestions on introducing better natural pauses within the text to slow down voice? It doesn't seem to respond much to commas and periods.
@ThorstenMueller
@ThorstenMueller Месяц назад
Imho the Piper TTS project is working on ssml support which should be helpful for that. But i am unsure on their roadmap.
@Lucky5985
@Lucky5985 Месяц назад
@@ThorstenMueller thank you!
@Marshaal__27
@Marshaal__27 14 дней назад
hey there thorsten i just came across your channel and it so amziang i get the stuffs i as looking for ,these tts model but i have a question iis there a one where he nvidia graphics card is not necessary and it sounds very much human like with easy setup and probably a ui. thank you
@64jcl
@64jcl 10 месяцев назад
It gets 5 stars from me due to simple install and running. Voices are pretty ok, certainly good enough for what what I wanted to use it for. Now for the next challenge. How to create new voices for it. :) - Would have been cool if there was some online tool for it.
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
I guess you already know my tutorial on how to create your own cloned voice for Piper TTS, or 😊? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-b_we_jma220.htmlsi=FV-6UatCjN4f8a4Z
@64jcl
@64jcl 10 месяцев назад
@@ThorstenMueller , yes I have just integrated Piper-TTS in a Unity VR "sandbox" app I am working on now and it works brilliantly. Definitely need to see if I can get some more voices or train new ones although the task of creating those datasets seems rather daunting. I hope someone creates a repository of voices (even paid ones) to use with Piper-TTS as I feel it is more than good enough for a lot of applications.
@davidtindell950
@davidtindell950 11 дней назад
Hi, Sorry I am arriving very late, but I am trying to get my clone to attend for me !
@Asky_
@Asky_ 4 дня назад
tbh no matter the quality, to me it sounds just like regular microsoft tts, not at all ai generated
@AndrewDrafahl
@AndrewDrafahl 9 месяцев назад
Great video Thorsten! I was hoping at some point that you would explain how to implement this into a python project since the documentation is pretty limited? That would be amazing.
@ThorstenMueller
@ThorstenMueller 8 месяцев назад
Using Piper TTS in Python in one of my questions for my interview with the creator, Michael.
@24pfilms
@24pfilms 8 месяцев назад
@@ThorstenMueller this would be really helpful. I have GTTS working, but want to pull it out and put in piper. thx for your hard work.
@bksphantom7867
@bksphantom7867 5 месяцев назад
If this do not work for you and the one in the description does not work, try this (no * start and .\ before piper.exe) : echo "Hello, this is a test using Piper TTS." | .\piper.exe -m en_US-kathleen-low.onnx -c en_en_US_kathleen_low_en_US-kathleen-low.onnx.json -f test1.wav Also, you can right click in your folder and chose the option "open in the terminal" so you will not need to do the "cd" part to move inside your folder!
@ThorstenMueller
@ThorstenMueller 4 месяца назад
Thanks for your good additional info. I've added it to the video description and linked your profile - Thanks 😊.
@Mehdi0montahw
@Mehdi0montahw 10 месяцев назад
How do I train models on my computer wth this or how do I convert a pth model to onnx
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
Do you know my tutorial on how to create your own AI voice with Piper TTS? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-b_we_jma220.htmlsi=00Y1-7IS7WV514VY
@CookieCreative-ir2ii
@CookieCreative-ir2ii Месяц назад
This is great, I installed for my home assistant! Do you know how I could use it for twitch chat tts?
@ThorstenMueller
@ThorstenMueller Месяц назад
Thanks for your feedback 😊. Not yet, but using Piper for Twitch is on my (long) TODO list.
@mohdgh7394
@mohdgh7394 8 месяцев назад
I have been trying to implement the video but the executed command shows nothing no error no results. Does piper still work? I am on windows 11 also
@ThorstenMueller
@ThorstenMueller 8 месяцев назад
Strange, does it show help output when running with "--help"? Or no output in general?
@mohdgh7394
@mohdgh7394 8 месяцев назад
@@ThorstenMueller when using --help it shows the commands but when running the echo command with piper the log is empty
@mohdgh7394
@mohdgh7394 8 месяцев назад
i don't know if thats a version issue ? i have the latest version installed
@mohdgh7394
@mohdgh7394 8 месяцев назад
OH okay it worked i just a comment that i needed to add the config file also with the model
@ThorstenMueller
@ThorstenMueller 7 месяцев назад
@@mohdgh7394 Thanks for your helpful feedback, i've added that hint to the english and german description 😊.
@PavanMuppala
@PavanMuppala 13 дней назад
I have been trying all kinds off tts, I am not able to get any to work, I ran the terminal command like u showed and its returning nothing
@ThorstenMueller
@ThorstenMueller 10 дней назад
Even the parameter "--help" does not show anything?
@mattye12
@mattye12 8 месяцев назад
Yes! I've found this video at last!! :) Thank you very much indeed, friend, for your wonderful video tutorial! Everything is clear explained. Finally, my dream is soooo close to be realized! :) (a few moments later...) Unfortunately, it cannot convert a russian (cyrillic) text to *.wav file :( Just wrote: "Real-time factor: 5.776e-321 (infer=0 sec, audio=0 sec)" and created an empty *.wav file.
@ThorstenMueller
@ThorstenMueller 8 месяцев назад
Ah, oops, i just replied to your other comment. So ignore my other comment 😆 as you already found "the right" video for you.
@ROSHA-un7vo
@ROSHA-un7vo 3 месяца назад
Helo sir, thank you I already practice with this tutorial, succes i can make voice. wtih this TTS. I have question. write what letters or what code in the txt file, to produce a pause in the voice results. For example, I have 2 paragraphs in the text file, but between the paragraphs I want there to be a 3 second pause in the voice results. So in the audio voice file, he reads paragraph 1, then pauses 3 seconds, then reads the second paragraph again. in this example, I place code DDDD. ( but audio result , say DDDD , I want result a pause 3 second on code DDDD ) The story begins with a spaceship returning to Earth. However, the spacecraft encounters an error, causing it to crash into a forest in Malaysia. DDDD The spaceship belongs to a company called Life Foundation, led by an ambitious man named Drake. The spaceship was carrying samples of extraterrestrial life, prompting Drake to urge his team to quickly gather all the salvageable samples. DDDD Out of all the crew members found, only the pilot survived. Medical personnel quickly transported him to an ambulance. However, suddenly... DDDD Yes, an entity possessed the pilot's body and then transferred to a medical staff member. The entity saw the Life Foundation logo and intended to go to the company's location. DDDD Upon arriving at the outskirts of the city, the entity possessing the medical staff member grabbed a catfish and ate it alive, terrifying everyone around. Eventually, the local thugs approached to confront the entity. But... DDDD Feeling that its current host was no longer suitable, the entity transferred to the body of an elderly woman, instantly revitalizing her. The entity then headed to the airport to find another host bound for America, which happened to be a little girl. And thus, Venom begins.
@ThorstenMueller
@ThorstenMueller 3 месяца назад
IMHO piper tts is about to add ssml support. With that you can add breaks and more as xml notation to your text input.
@GeorgAubele
@GeorgAubele 5 месяцев назад
No matter which voice I use, I get the error message, that version 14 is not supported, "only version1 to 10 is supported in this version".
@ThorstenMueller
@ThorstenMueller 4 месяца назад
Good question 🤔. Have you asked on Piper community? github.com/rhasspy/piper/issues
@AndrewDrafahl
@AndrewDrafahl 9 месяцев назад
Awesome tutorial! I followed all of the steps, but I'm running into a problem. The program runs, but it doesn't give any output. It doesn't matter if I try to stream to stdout, or if I try to write to a file. The program runs and nothing happens. Any idea what might be going wrong? I'm running the latest version on windows, btw.
@AndrewDrafahl
@AndrewDrafahl 9 месяцев назад
Never mind, I found the command in your description, that fixed it.
@ThorstenMueller
@ThorstenMueller 8 месяцев назад
Happy you got it working 😊.
@TheRealThomcat
@TheRealThomcat 8 месяцев назад
Hello, what was your problem and how did you fix it? I'm having the same problem, CMD says piper tries to access a pipe that doesn't exist
@TheRealThomcat
@TheRealThomcat 8 месяцев назад
I found the problem XD I used the command in the comment of @juanjesusligero391 and it worked now The fix isn't in the german description I think
@ThorstenMueller
@ThorstenMueller 7 месяцев назад
@@TheRealThomcat Thanks for your hint - you're right 😊. I've added it to the german description, too.
@wasteoftime8839
@wasteoftime8839 10 месяцев назад
Hey thorsten ! I would like to ask you, i am trying to find a free realistic male voice for tts in python (i dont mind being locally) Do you have any suggestions ??
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
Have you checked existing Coqui / Piper TTS models? I know about a female voice, but am not sure if they have a male voice?
@iwongmistis4592
@iwongmistis4592 7 месяцев назад
Unfortunately, on that website, there are no Indonesian speakers, could you add it to the website so there are Indonesian speakers?
@ThorstenMueller
@ThorstenMueller 6 месяцев назад
Do you ask on providing an Indonesian tts model or is there already a model and it's just not listed on their website?
@patrick3273
@patrick3273 11 месяцев назад
Ich habe Piper TTS mit mycroft-ai Mimic3 verglichen und kann bei der gleichen Stimme keinen Unterschied feststellen. Gibt es irgendwelche Vorteile von Piper TTS die einen Umstieg interessant machen könnten?
@ThorstenMueller
@ThorstenMueller 11 месяцев назад
Ich habe mal auf deinen englischen Kommentar geantwortet 😊.
@aronimo5800
@aronimo5800 9 месяцев назад
im trying to make it work with json, but the usage about this on the repo is too much unclear, not even an example with this...
@ThorstenMueller
@ThorstenMueller 9 месяцев назад
I didn't try json based input myself. But maybe you can ask on Piper github repository for support. There might be people who worked with json input.
@commandanteche9748
@commandanteche9748 11 месяцев назад
While testing Piper-tts, I couldn't find a way to put the stress in word. Maybe there is some way to do this?
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
IMHO Piper TTS does not yet support SSML. Maybe there's a way to add phonetical stress by adjusting eSpeak dictionary. Do you know this video? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-493xbPIQBSU.htmlsi=XbNJcOy7JODR7ome
@aurelianobuendia24
@aurelianobuendia24 7 месяцев назад
i would like to use piper but with my own voice, like training it with lots of audios. Im from argentina i need it to speak spanish, what i´ve seen is the hardest is the accent
@ThorstenMueller
@ThorstenMueller 7 месяцев назад
Good luck with creating your own TTS voice with Piper 😊.
@ParryNazemi
@ParryNazemi 8 месяцев назад
hi .tnx4da hlp. question: how long can input file "demo.txt" be? and for 1 minute of high quality wav file, how much space occupied on the storage device in MegaBytes? tnx
@ThorstenMueller
@ThorstenMueller 8 месяцев назад
I'm not sure if there's a hard limit on text input, but obviously it'll take more time to compute when inputting longer text. I guess disk space is really low for one minute of audio in 22kHz samplerate. Guessing 3-5 megabyte
@MrSuntask
@MrSuntask 4 месяца назад
Hi, 😊, for an assistant I would need to stream the piper output so it starts immediately to speak. How can I do that in windows?
@ThorstenMueller
@ThorstenMueller 4 месяца назад
Playing around with streaming feature in piper tts is still on my todo list, so i have no practical experience on that (yet) 🙂.
@OpinionatedReviewer
@OpinionatedReviewer 11 месяцев назад
Not the most natural, but a more distinctive and faster tts voice compared to Microsoft Azure and Google Cloud.
@ThorstenMueller
@ThorstenMueller 11 месяцев назад
And there's a bunch of available voices to choose from. Maybe there's a voice that feels more natural to you 😊.
@patrick3273
@patrick3273 11 месяцев назад
@OpinionatedReviewer Try --model en_US-libritts_r-medium.onnx --speaker 7 or -speaker 341. Very natural ! There are also many more natural voices.
@faizanibrahim8320
@faizanibrahim8320 10 месяцев назад
​@@patrick3273 how to adjust tye speed , like i want to narrate it on slower speed
@patrick3273
@patrick3273 10 месяцев назад
@@faizanibrahim8320 ./piper --model en_US-libritts_r-medium.onnx --speaker 341 --sentence-silence 0.6 --length-scale 1.3 --output_file ./audiobook.wav < ./text.txt Where "--sentence-silence" is the pause in seconds after each sentence and "--length-scale" is the inversely proportional speed factor. 0.5= double reading speed, 2.0= half reading speed.
@AndrewDrafahl
@AndrewDrafahl 9 месяцев назад
@@faizanibrahim8320 I saw this in the github repo --length_scale 1.0 (this is the default speed, lower value = faster) after model name.
@tahasoft1
@tahasoft1 3 месяца назад
Is it possible to compile it to webassembly to be able to use in a chrome extension for read aloud (text to speech) as offline voices?
@ThorstenMueller
@ThorstenMueller 3 месяца назад
That is a great idea 👍. Did you suggest that on their project community?
@tahasoft1
@tahasoft1 3 месяца назад
@@ThorstenMueller No I didn't
@ThorstenMueller
@ThorstenMueller 3 месяца назад
@@tahasoft1 Maybe that's worth a try to reach more Piper TTS developers that might make this possible.
@sandeeps3108
@sandeeps3108 3 месяца назад
Bro how to create text to speech and voice cloning multilingual model like eleven labs and deploy it has a website or app. Can you make a video for that please ❤...
@ThorstenMueller
@ThorstenMueller 3 месяца назад
Good topic suggestion. But this seems to be a combination of multiple tools to build this. Do you have a suggestion of the required tools in total?
@patrick3273
@patrick3273 11 месяцев назад
I have compared Piper TTS with mycroft-ai Mimic3 and can't tell any difference with the same voice. Are there any advantages of Piper TTS that might make a switch interesting?
@ThorstenMueller
@ThorstenMueller 11 месяцев назад
Might be the reason that the developer of Mimic3 is the same as the main developer of Piper TTS 😁. Personally i'd prefer Piper TTS because there's more active development. For example there will be a streaming feature in nearer future 😊.
@patrick3273
@patrick3273 11 месяцев назад
@@ThorstenMueller I have now experimented with it and realised that Piper is really much more advanced than Mimic3. It is faster thanks to better multi-core support (RTF 0.06 with a very old Intel i5 4670), uses only a fifth of the RAM memory, makes fewer errors, can handle larger text files and audio books with significantly more than 1,000,000 characters and, with the --model en_US-libritts_r-medium.onnx, has an incredible number of very good voices that can compete in the pronunciation quality with coqui-ai TTS. I am impressed! Thanks for the video and for pointing out Piper.
@patrick3273
@patrick3273 11 месяцев назад
Here is an example of text file input, for example for audio books of any size: ./piper --model en_US-libritts_r-medium.onnx --speaker 341 --sentence-silence 0.6 --length-scale 1.3 --output_file ./audiobook.wav < ./text.txt (Note: -sentence-silence and --length-scale can be dropped, but for my taste the voice then speaks too fast.)
@ThorstenMueller
@ThorstenMueller 11 месяцев назад
​@@patrick3273 Happy to hear that you made really good experience with Piper TTS :).
@awaisamin3819
@awaisamin3819 5 месяцев назад
you mention "piper is It is faster thanks to better multi-core support" if i train on specific voice dataset and use case only need one type of voice will i be able to run it on a mobile device?
@awaisamin3819
@awaisamin3819 5 месяцев назад
PLease TELLL me which one is faster piper or mimic tts and will any of them work on Mobile?? app
@ThorstenMueller
@ThorstenMueller 5 месяцев назад
In general i would go with Piper, because it's both developed by the same person, but Mimic isn't active in development any more, but Piper is. But IMHO both is not supported on Mobile, yet.
@cuocsongtuoidep91
@cuocsongtuoidep91 10 месяцев назад
Thank you so much. I am using macbook m1. Can you help me make piper TTS on Macbook m1?. Thank you.
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
You're welcome 😊. I encountered problems running Piper TTS on m1, too but had not time to give it a closer look. Have you already asked on Piper community? Maybe there's someone who got it working already.
@gourcuff72
@gourcuff72 8 месяцев назад
I get error "api-ms-win-core-heap-l1-2-0.dll" is missing while cmd tryna run piper.exe, os is Windows 8.1 😔
@ThorstenMueller
@ThorstenMueller 8 месяцев назад
Strange, i didn't encounter this problem on Windows 10. Did you already ask on Piper TTS community?
@tapikoBlends
@tapikoBlends 7 дней назад
my terminal cant recognize "cat" and "Get-Content" commands
@ThorstenMueller
@ThorstenMueller 6 дней назад
Are you using classic "cmd" command line or windows powershell?
@tapikoBlends
@tapikoBlends 6 дней назад
@ThorstenMueller CMDbut I already wrote a python script that uses a subprocessimport os import subprocess import argparse def run_speech_generation(text, model_name, json_name, output_file): os.chdir('C:/piper') command = f'echo "{text}" | .\\piper.exe -m {model_name} -c {json_name} -f {output_file}' subprocess.run(command, shell=True)and now I generate speech through python programsthanks for tutorial BTW 🤝👍🙏
@tapikoBlends
@tapikoBlends 6 дней назад
@@ThorstenMueller CMD but I have already implemented what I needed with the help of a python script. Thanks for the tutorial
@infinity4922
@infinity4922 9 месяцев назад
Can i also use any cartoon character's voice ?
@ThorstenMueller
@ThorstenMueller 9 месяцев назад
Technically i guess yes. Depends on the training voice data. Maybe cartoon voices are not "neutral" enough and have too much voice variation in it to create a consistent tts voice. And of course you have to think about licences when using foreign voices.
@Nightman-eb8mj
@Nightman-eb8mj 2 месяца назад
Can Piper TTS be used for audiobooks?
@ThorstenMueller
@ThorstenMueller 2 месяца назад
You mean technically or by license?
@Nightman-eb8mj
@Nightman-eb8mj 2 месяца назад
@@ThorstenMueller Both. But, it would be for personal use.
@ThorstenMueller
@ThorstenMueller 2 месяца назад
​@@Nightman-eb8mj I guess, this should be work and be ok (IMHO). You might have to split longer texts into multiple chunks to make it synthesized.
@Lc9real
@Lc9real 10 месяцев назад
Is it possible to use it in a Python script?
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
Making a tutorial on using Piper TTS in Python is on my TODO list on a very high (soon) position 😊.
@Lc9real
@Lc9real 10 месяцев назад
@@ThorstenMueller Ok good to know because i tried using the pip command on the github but I kept getting an error
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
​@@Lc9real I've chatted with Mike about native Python integration and there's seems to be room for improvement. So maybe keep an eye on that for future upcoming updates.
@BodeGiusti
@BodeGiusti 5 месяцев назад
Is there a way to link a Piper voice to the Microsoft Word reader?
@ThorstenMueller
@ThorstenMueller 5 месяцев назад
IMHO opinion i guess this is not possible by now. I tried integrating Piper to Windows SAPI, which could help on that use case, but this didn't work yet.
@BodeGiusti
@BodeGiusti 5 месяцев назад
@@ThorstenMueller, I would like to use Piper to reproduce the text I select as I read the document. My intention is to play the Piper parallel to my reading of an article, for example, in order to facilitate my concentration on the reading. It doesn't need to be in Microsoft Word. The "Read Aloud: A Text to Speech Voice Reader" extension provides something similar, but is buggy regarding Pitch. I found the "Balabolka" interface, but I couldn't install the Piper voice in it. I have some knowledge in IT, but using Piper is something very advanced for me.
@BodeGiusti
@BodeGiusti 5 месяцев назад
@@ThorstenMueller The key question to solve my problem is: "How to install Piper TTS as SAPI 5 language on Windows?"
@WorldOLuxury
@WorldOLuxury 10 месяцев назад
how i can generate these and save this voices usingpython ??
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
Thanks for your question 😊. This topic will be the next or at least one of my next video tutorials.
@faizanibrahim8320
@faizanibrahim8320 10 месяцев назад
How we can adjust the speed of voice..?? Eg slow and fast??? Whats tge command or something like that
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
Maybe you can use pydub or ffmpeg to adjust generated audio.
@WorldOLuxury
@WorldOLuxury 10 месяцев назад
i have used both it doesnt work @@ThorstenMueller
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
​@@WorldOLuxury Okay, i have not used it for adjusting speed myself so i have no practical experiences. It's on my (growing) TODO list. Maybe you want to ask this question on Piper or Coqui TTS community. Maybe there's some practical experiences.
@64jcl
@64jcl 10 месяцев назад
piper -h shows these parameters available to adjust the output: --length_scale NUM phoneme length (default: 1.0) --noise_w NUM phoneme width noise (default: 0.8) --sentence_silence NUM seconds of silence after each sentence (default: 0.2)
@WorldOLuxury
@WorldOLuxury 10 месяцев назад
@@64jcl cn you writ me a command full ?
@shake6321
@shake6321 5 месяцев назад
Hi Sir, how fast is this? can it be run in real time?
@ThorstenMueller
@ThorstenMueller 4 месяца назад
Depending on your hardware it can be run faster than realtime (RTF < 1.0).
@shake6321
@shake6321 4 месяца назад
@@ThorstenMueller We want to run this on an A100. can it convert in less than 50 MS? also, are you the lead dev? i have some questions. maybe we can email each other if that is ok
@ThorstenMueller
@ThorstenMueller 4 месяца назад
@@shake6321 Not sure on the A100 performance as i do not have any experience with that card. The lead dev is Michael Hansen.
@pieterboots8566
@pieterboots8566 Месяц назад
What's the speed of espeak?
@ThorstenMueller
@ThorstenMueller Месяц назад
You mean as a phonemizer or their robotic (mbrola) voices? Either way it is really super fast (on small compute devices).
@pieterboots8566
@pieterboots8566 Месяц назад
Yes as a phonemizer. A LLM that can turn text into phonics would be interesting. I can't find a good collection of phonics sound samples. Which could be used for experimenting.
@pieterboots8566
@pieterboots8566 Месяц назад
Arduino talkie is fun. And software 'praat' might be worth looking at.
@inapply_tim2926
@inapply_tim2926 6 месяцев назад
hi that didnt work for me i dont know whay
@ThorstenMueller
@ThorstenMueller 5 месяцев назад
Sorry to hear that, is there any error message shown?
@HuongNguyen-oj7km
@HuongNguyen-oj7km 10 месяцев назад
Vietnamese language is not work. Can you fix it? please.
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
As i'm no active Piper developer i probably can't fix it. Did you already share this topic on Piper TTS Github community?
@Владик-щ8ъ
@Владик-щ8ъ 10 месяцев назад
can piper use gpu(cuda) in windows 10?
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
I didn't try it, but according to some Github issues there seems to be a "--cuda" argument. Did you try that?
@Владик-щ8ъ
@Владик-щ8ъ 10 месяцев назад
@@ThorstenMueller Yes I did. and --use-cuda too. no effect
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
​@@Владик-щ8ъ Okay, maybe it's worth to post this on Piper TTS Github repo (github.com/rhasspy/piper/issues). I guess there are more (experienced) people that might be able to support you on this.
@inout3394
@inout3394 5 месяцев назад
Thx
@ThorstenMueller
@ThorstenMueller 5 месяцев назад
You're welcome.
@__________________________6910
@__________________________6910 10 месяцев назад
Hello sir, is there any way to "make the tts slower or faster"
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
Not by Piper TTS itself, but maybe you can use tools like "ffmpeg" or "pydub" to adjust synthesized audio after generation.
@nts9
@nts9 9 месяцев назад
I can change the speed using Audacity a open source audio player.
@__________________________6910
@__________________________6910 9 месяцев назад
@@ThorstenMueller ffmpeg is better
@AndrewDrafahl
@AndrewDrafahl 9 месяцев назад
I saw this in the github repo --length_scale 1.0 (this is the default speed, lower value = faster) after model name.
@__________________________6910
@__________________________6910 8 месяцев назад
@@AndrewDrafahl divide by 1
@kingfunny4821
@kingfunny4821 11 месяцев назад
how can use Coqui-ai with langauge arabic
@ThorstenMueller
@ThorstenMueller 11 месяцев назад
Should work in general. I'm not sure if there's any arabic model available yet. You can see all models here: github.com/coqui-ai/TTS/blob/dev/TTS/.models.json Maybe it's worth to ask on their community for arabic support.
@ezrachua1317
@ezrachua1317 10 месяцев назад
need python on windows for this with api maybe hahah
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
I hope to play around with Piper TTS and Python (API) integration in nearer future.
@justinanthony8858
@justinanthony8858 9 месяцев назад
Thanks for this, however I cant get it working in w1p even with the useful tip by the fellow youtber in the comments,
@ThorstenMueller
@ThorstenMueller 9 месяцев назад
I'm not sure what "w1p" means in this context?
@justinanthony8858
@justinanthony8858 9 месяцев назад
windows 10 sorry @@ThorstenMueller
@lucfrost1554
@lucfrost1554 6 месяцев назад
After literally wasting "hours" of trying to make it work, on different Windows system, trying all the switches, options, way to use them, its a total failure to a point. Fuck this garbage and fuck whoever did this awful Windows port.
@tiredlocke
@tiredlocke 2 месяца назад
It always amazes me how entitled some people feel about things they get for free. It worked flawlessly for me, but depending on the model you downloaded, if the config filename doesn't match the model filename, you might have to manually specify it.
@dogzrgood
@dogzrgood 10 месяцев назад
this is not working on my windows 11 at all. No output when i run.. echo "hi there" | .\piper.exe --model .\en_US-kathleen-low.onnx -f test1.wav
@ThorstenMueller
@ThorstenMueller 10 месяцев назад
No output at all? No error message? Are you using command line or powershell? What happens when you just run: echo "hi"?
@dogzrgood
@dogzrgood 10 месяцев назад
@@ThorstenMueller nada. No output at all 😩. I tested it on Ubuntu on virtual box which was working.
@dogzrgood
@dogzrgood 10 месяцев назад
@@ThorstenMueller yes no input at all. I have pasted my output screen on this link (remove spaces). paste board .co [slash] XfeQwZDQHh7Y.png
@jcody7936
@jcody7936 9 месяцев назад
i can run the command but it doesnt make the wav file
@AndrewDrafahl
@AndrewDrafahl 9 месяцев назад
Check the command in the description. If you're running the newer version of piper, you need the config file included in the command you're running.
@CloudVoice18814
@CloudVoice18814 3 месяца назад
Hi thorsten is this still working because when i run this command "echo "Hello, this is a test using Piper TTS." | .\piper.exe -m en_US-kathleen-low.onnx -f test1.wav" there is no output
@ThorstenMueller
@ThorstenMueller 3 месяца назад
Should still work as explained. Is there any error message or just no audio output?
@tiredlocke
@tiredlocke 2 месяца назад
Make sure that your config file has the same name as the model file. I noticed that all the ones I've downloaded so far have duplicated filenames, like "en_en_US_kathleen_low_en_US-kathleen-low.onnx.json". Either rename the config file to match the model file, or manually specify it with the --config trigger.
@diggity911
@diggity911 Месяц назад
Not sure where I went wrong. echo 'Welcome to the world of speech synthesis!' | ./piper.exe --model en_US-lessac-medium.onnx --output_file welcome.wav has no output on windows it does something for a second but no output in the shell or in the folder. I have powershell open inside of the directory that I extracted the zip file to. ./piper.exe --help does work
@Lucky5985
@Lucky5985 Месяц назад
Look in the comments, someone mentions for the latest updates you also need to add -config (and config file)
@ThorstenMueller
@ThorstenMueller Месяц назад
Thanks for your comment and reply 😊. Normally piper should detect config file automatically if their name is identical to model file (+ json) if it's in the same directory. Does it generate audio then or still produce no output?
@diggity911
@diggity911 Месяц назад
@@ThorstenMuellerI finally found the issue after getting it to work on another computer. The model files I downloaded corrupted at some point. After redownloading them it works.
@oliversmith2
@oliversmith2 4 месяца назад
So, I have just given this a go, followed all the steps, running Powershell as Administrator and it wouldn't produce just goes back to C:\Ai\piper folder... C:\Ai\piper> echo "Hello this is a test of piper TTS." Hello this is a test of piper TTS. C:\Ai\piper> echo "Hello this is a test of piper TTS." | .\piper.exe -m .\en_US-lessac-high.onnx -f test1.wav C:\Ai\piper> And that's it, tried with multiple voices, read through the comments saying you also need to use the model, so have the model in the folder as well tried with Kathleen low voice as well using the command in the description for her voice C:\Ai\piper> echo "Hello, this is a test using Piper TTS." | .\piper.exe -m en_US-kathleen-low.onnx -c en_en_US_kathleen_low_en_US-kathleen-low.onnx.json -f test1.wav C:\Ai\piper> Nada. Other issue is, even if it did somehow work, it's a lot of faffing around just for a line of audio. Just want to be able to clone my voice and my friends voice from prerecorded clean audio, and be able to produce a podcast without us actually having to do any talking. I don't think Piper is going to be the answer on this one, Tried Tortoise TTs, it was ok, but outputs were generally either quite a way off, or different pitches altogether, want something like Tortoise TTs that is user friendly, but one that actually works. What do you suggest, has to be locally, not paying anyone like Elevenlabs. Can do it all on my gaming computer.
@ThorstenMueller
@ThorstenMueller 3 месяца назад
So no output at all? Does "piper.exe --help" show some output? Did you download onnx and mapping json file?
@oliversmith2
@oliversmith2 3 месяца назад
@@ThorstenMueller yes all the mapping works but no output voices. Doesn't matter anymore I'm using TryParot ai voices now.
Далее
World’s Fastest Talking AI: Deepgram + Groq
11:45
Просмотров 50 тыс.
FREE Voice Cloning in Microsoft Windows with Coqui TTS
29:00
Best AI Voice Generator | 2024.08
44:54
Просмотров 10 тыс.
Why Are Open Source Alternatives So Bad?
13:06
Просмотров 646 тыс.
Home Assistant ❤️ Voice - Tutorial 04 - Piper TTS
10:12
Getting all text-to-speech voices in Windows
10:47
Просмотров 4,6 тыс.