User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
So this looks like a high quality, fast, natural, and open source TTS system in Python. A key candidate for an . Unfortunately, I find addon development super confusing. Is there a good template to start from or something? github.com/thewh1teagle/kokoro-onnx
11
15
8
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
Here's a much longer example of the quality of speech Kokoro TTS generates. I really do think it might be a decent addon. The weird pauses are because I'm just giving it a big long string, rather than chunking it like I should. It generates this in real time on CPU, and faster on GPU. The code to generate it is as follows:
import soundfile as sf
from kokoro_onnx import Kokoro
from onnxruntime import InferenceSession

session = InferenceSession("kokoro-v0_19.onnx", providers=["ROCMExecutionProvider", "CPUExecutionProvider"])
kokoro = Kokoro.from_session(session, "voices.json")
samples, sample_rate = kokoro.create(
"He wasn't sleeping very well, and he knew the people around him noticed, but he didn't know what to do about it. He had quietly gone to Madame Pomfrey, who had regretfully told him that Dreamless Sleep was highly addicting and that while she could give him the occasional dose, it would have to be spread out enough to prevent it from becoming addicting – meaning he could only take it one night out of every two weeks or so. It was one night more of productive sleep than he'd be getting otherwise, so he still did it, but it didn't help the larger issue. He wasn't under the effects of any nightmare-inducing Curses, potions, or other magical ailments, so there was nothing for Madame Pomfrey to do. The nightmares were coming from his own mind, and she was not a Mind-Healer. She'd offered to try and connect Harry with one, but when Harry discovered that it involved having someone else quite literally entering his mind with magic and helping him sort out things like trauma he couldn't. If Harry couldn't even tell Hermione the extent of what he'd suffered at the Dursley's, he wasn't about to let a stranger into his mind to see it. Let alone the 'adventures' of his Hogwarts years. So the nightmares persisted, and with the poor quality of sleep serving as the first domino, everything else slowly began to fall. His grades weren't slipping yet, but he was struggling with the study schedule Hermione had set out for them and doing his homework took more effort, more energy that he didn't have.", voice="af_sarah", speed=1.0, lang="en-us"
)
sf.write("audio.wav", samples, sample_rate)
print("Created audio.wav")
8
3
3
0
User avatar
Sean Randall @cachondo@defcon.social
1y
@fastfinge she's quite pleasant. I regret that I have now read so much fanfic that I can't immediately identify that one, though.
1
0
0
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@cachondo Here's a UK English sample of the same text. It sounds fine to my ear, but I'm not British. Thoughts?
2
0
1
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@cachondo Oh, and the fanfic is: Harry Potter and the Art of Getting Your Shit Together — by MsStarryNightSky.
1
0
1
0

User avatar
Andre Louis @FreakyFwoof@universeodon.com
1y
@fastfinge @cachondo I don't think this is one @SeveraSnape and I have. Sounds new to me too and that's surprising considering how much I read.
2
0
0
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@FreakyFwoof @SeveraSnape @cachondo It's a Harry/Hermione fluff fic, so probably something you'd both enjoy. I'm surprised you don't already have it. Harry Potter and the Art of Getting Your Shit Together
Posted originally on the Archive of Our Own at
archiveofourown.org/works/59310490.
0
0
0
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
@FreakyFwoof @fastfinge @cachondo I don't think we do, but we shall in a minute.
3
0
0
0
User avatar
Sean Randall @cachondo@defcon.social
1y
@SeveraSnape @FreakyFwoof @fastfinge still in progress, isn't it?
1
0
0
0
User avatar
Andre Louis @FreakyFwoof@universeodon.com
1y
@SeveraSnape @fastfinge @cachondo I platonically love this girl. Always on top of things. Mad respect.
3
0
0
0
User avatar
Sean Randall @cachondo@defcon.social
1y
@FreakyFwoof @SeveraSnape @fastfinge the dedication is awesome. I need a way of knowing when the in progress things are done, seriously. DO I perhaps need to make an ao3 account or something?
3
0
1
0
User avatar
Andre Louis @FreakyFwoof@universeodon.com
1y
@cachondo @SeveraSnape @fastfinge I had to, because I follow sooooo many things on both ff net and ao3, so I set up a rule to forward any HP-related emails to a dedicated folder. I set it such that if the emails do not contain the text 'Harry Potter' it immediately deletes them. It's cut down on my inbox clutter 10-fold if not more, and the folder of fics is purely HP-related. I loves it.
0
0
1
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@cachondo @SeveraSnape @FreakyFwoof Yeah, and get fanficfare configured on a server somewhere. It can monitor an imap account, find emails from FF and AO3, and auto-update your epub files.
1
0
0
0
User avatar
Sean Randall @cachondo@defcon.social
1y
@fastfinge @SeveraSnape @FreakyFwoof Blimey, that is clever.
1
0
0
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
@cachondo @fastfinge @FreakyFwoof It does help clean up the inbox.
0
0
1
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
@cachondo @FreakyFwoof @fastfinge For Andre's folder, I've begun putting status in there, I have visions of a Change log like I do for mine... but there's so much I'm doing to his folder right now it would just be crazy. but, you would only need an account if you want to get author alerts. And... if you follow a bunch ten you would get lots of emails
0
0
0
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@FreakyFwoof @SeveraSnape @cachondo Same. Although apparently she drinks coke in the morning instead of coffee! So I dunno... LOL JK
1
0
0
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
@fastfinge @FreakyFwoof @cachondo hahahahaha!!!! I do indeed, but I drink tea too... does that count toward the good? :)
2
0
0
0
User avatar
Andre Louis @FreakyFwoof@universeodon.com
1y
@SeveraSnape @fastfinge @cachondo It undoes a lot of the bad, let's just put it this way haha
1
0
1
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
@FreakyFwoof @fastfinge @cachondo Oh man!!!! hahahahha!
0
0
0
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@SeveraSnape @cachondo @FreakyFwoof Depends. Peperment? What kind of tea? LOL
1
0
0
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
@fastfinge @cachondo @FreakyFwoof Black tea. Like mint too, though that's not my go to. I like a bunch of different kinds.
2
0
0
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@SeveraSnape @cachondo @FreakyFwoof Coffee is the one true caffeine delivery system, and mint tea is the only acceptable hot drink without caffeine. ROFL
1
0
0
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
@fastfinge @cachondo @FreakyFwoof Coffee puts me right to sleep.
1
0
0
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@SeveraSnape @cachondo @FreakyFwoof Really? I hear that's one of the primary symptoms of people having ADHD.
1
0
0
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
@fastfinge @cachondo @FreakyFwoof So I've heard. I don't care to figure that out. I focus just fine on what I need to. hahaha.
0
0
1
0
User avatar
Ather Jammoa @atherjammoa@mastodon.social
1y
@SeveraSnape @fastfinge @cachondo @FreakyFwoof You should add a dash of honey. You won't regret it!
1
0
1
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@atherjammoa @SeveraSnape @cachondo @FreakyFwoof That's what I do whenever I have a sore throat.
1
0
1
0
User avatar
Ather Jammoa @atherjammoa@mastodon.social
1y
0
0
1
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
0
0
1
0
User avatar
JamminJerry @JamminJerry@mastodon.stickbear.me
1y
@SeveraSnape @FreakyFwoof @fastfinge @cachondo I am just waiting to see it show up in a folder somewhere, I want to read that one. sounds like a good one.
1
0
0
0
User avatar
Katy T @SeveraSnape@mastodon.social
1y
@JamminJerry @FreakyFwoof @fastfinge @cachondo It's in Andre's under the author folder mentioned.
2
0
0
0
User avatar
JamminJerry @JamminJerry@mastodon.stickbear.me
1y
@SeveraSnape @FreakyFwoof @fastfinge @cachondo ah, there it is. thanks for that.
0
0
0
0
User avatar
JamminJerry @JamminJerry@mastodon.stickbear.me
1y
@SeveraSnape @FreakyFwoof @fastfinge @cachondo holy cow! those are going to be some very long chapters! around 1.7 meg file, and only 20 chapters. just wow!
0
0
1
0