7 ms·
Bark: A transformer based text to audio system
- JonathanFly 3y agoSuno is kind of underselling this with their default voices. With just a little effort you get great stuff, very emotive, fantastic cadences. Here's my female David Attenborough I was playing around yesterday. Not the clearest but charming. https://user-images.githubusercontent.com/163408/238257231-40905966-dad8-4798-8b93-6eb27f8d20e9.mp4 https://user-images.githubusercontent.com/163408/238257231-4... And Bark is more than TTS. While I haven't had much success with one-shotting full songs with Bark, you build a decent sample library with it. A few recent ones I saved, just randomly concatted here: https://soundcloud.com/jonathan-fly-620508219/bark-all-night-beats https://soundcloud.com/jonathan-fly-620508219/bark-all-night...
- tmikaeld 3y agoDefinitely good! The hardest part still seem to get rid of the synthetic high pitch background noise, I've tried most of the text-to-voice synthesizers and ElevenLabs are still my benchmark. For example: https://drive.google.com/file/d/1WL_5gFswhZncERGzSRh2hQ42RVr4MOxE/view https://drive.google.com/file/d/1WL_5gFswhZncERGzSRh2hQ42RVr...
- JonathanFly 3y agoI actually think Bark actually beats Eleven right now. Bark tends to add a bit more of a metallic twinge towards the end of longer audio segments (I wonder if this is a bug and not a limitation actually...), but Bark is more expressive. The trick to exceeding Eleven quality is using multiple speaker prompts, and swapping them in and out over the course of longer texts. Each is a slight variation on the original. If you hand tune the swaps it's super good, but if you just swap in 'beginning of new paragraph' 'continuation speaker' automatically, that alone is a huge boost. I don't have a clip handy but I will make a YouTube or something this week, because the quality is wild if you do this. There's some passable audio clips on my README here https://github.com/JonathanFly/bark https://github.com/JonathanFly/bark but all those are just using the same speaker for every line. That was all just the first samples I tried, from weeks ago, without really putting any effort into it. You can do a lot better. The extra expressiveness of Bark does come with it being harder to control and having a bit of a mind of its own at times. (And this can also be very very funny: https://twitter.com/jonathanfly/status/1657658109001596929 https://twitter.com/jonathanfly/status/1657658109001596929) So for a production or real time use case Eleven makes more sense. For example even my best speakers will switch to a new voice mid prompt, once in awhile. (As if the audio clip was from interview segment.)
- tmikaeld 3y agoThanks, I checked more of the bark examples and they definitely add the "personal" touch to it, elevenlabs sound more stale, so i definitely see what you mean. I also listened a few more times to your sample and it's one of the hardest types of voices to get to sound natural, when i tried a similar on elevenlabs, it sounded a lot worse in terms of the metallic s-s at the end. I'll set it up this weekend and play around with it :)
- JonathanFly 3y ago>when i tried a similar on elevenlabs, it sounded a lot worse in terms of the metallic s-s at the end. That's interesting. When I'm judging Bark I'm looking at my own random samples, but for eleven I'm seeing stuff people post on Twitter or YouTube, which I suppose must be cherry-picked. I didn't even realize Eleven did the same thing!
- tmikaeld 3y agoI guess it's similar to what you mentioned with bark, the more training and custom adaptation that can be done, the less metallic it will sound. I tested with random voices until i got one that was similar, the existing Bella voice is almost as your sample but has very little metallic s-s.
- terhechte 3y agoI'm curious, how did you generate the David Attenborough voice? The repo says: > Bark tries to match the tone, pitch, emotion and prosody of a given preset, but does not currently support custom voice cloning.
- JonathanFly 3y ago>I'm curious, how did you generate the David Attenborough voice? The repo says: >> Bark tries to match the tone, pitch, emotion and prosody of a given preset, but does not currently support custom voice cloning Check back later in the week, I'll have a bit more on that later after I catch up on actual work and can write a bit.
- terhechte 3y agoThanks!
- famouswaffles 3y agohttps://github.com/serp-ai/bark-with-voice-clone https://github.com/serp-ai/bark-with-voice-clone
- JonathanFly 3y agoNot used at all, at least in my case.
- famouswaffles 3y agoI understand you didn't use that repo but did you do something other than change the audio prompt ?
- JonathanFly 3y agoYeah, it's kind of hand crafted. There's more to the story and more results. I would normally just Tweet but I think it's actually so interesting that it deserves more than a tweet, at least a thoughtful writeup or a youtube video. (And I need to catch up on real work this week first, so end of week at best.)
- famouswaffles 3y agoYeah I was trying to figure out how good it was in Korean. The cadence and flow was pretty good but there was kind of artifacts in the audio. Then I check the samples of the default audio prompts for Korean any my god, they were godawful. Switching it up made a world of difference.
- JonathanFly 3y ago>Yeah I was trying to figure out how good it was in Korean. The cadence and flow was pretty good but there was kind of artifacts in the audio. Then I check the samples of the default audio prompts for Korean any my god, they were godawful. Switching it up made a world of difference. I have a decent amount really clear Korean voices BTW. That and French, from people asking on Discord. But I can't judge the accents only that they are clear speakers. Korean was interestingly the lone somewhat-coherent one-shot long term music sample I ever managed to get out of Bark. https://www.youtube.com/watch?v=4pV9d25KqCE https://www.youtube.com/watch?v=4pV9d25KqCE The second music bit in this Youtube was one continuous generation where the last prompt was used as the history for the next, with no cherry picking or assembling the clips, just one solid segment. And it sort of holds together for like almost a minute! I was excited because I thought maybe Bark could be like a real-time OpenAI Jukebox. But that was literally the only time so far where using a full-feedback held together like that. You can kind of 'cheat' it to by using a very popular song as the input text, and sometimes Bark will produce the appropriate melody. But of course that's not really the point of using your own text. I have some ideas for making it more coherent, but nothing easy. Too bad, Jukebox is just SO SLOW. Actually with what I know now I should re-render this and clean up the distortion. At the time I couldn't do it. Though I only have the first segment prompt. I have a decent amount really clear Korean voices BTW. But I can't judge the accents, only that they are clear.
- UhUhUhUh 3y agoNice. Thank you Suno! This is very good and will fit perfectly in my current projects. I feel like hugging your face.
- qup 3y agoCan we run this locally? (on normal machines?) How fast are generations on consumer machines?
- JonathanFly 3y agoIt's like 50% realtime on a 3090, not quite real time on a 4090. You can also use smaller models and it's a bit faster. 3080 is same speed, you don't need the extra memory.
- JonathanFly 3y agoActually I was just checking, and Bark isn't that close to maxing out GPU utilization. Running two instances on a 3090 seems like a throughput increase and the models fit. Update: And getting weird CUDA issues. Hmn...
- woodson 3y agoJust to add a datapoint: the main audioLM based models (not the BERT embedding part) fully utilize an RTX 2080 Ti.
- JonathanFly 3y agoMust be some low hanging fruit to optimize in Bark. It would be somewhat close to realtime if it was close to 100% and scaled linearly.
- shrx 3y agoFrom the README: > You can now use Bark with GPUs that have low VRAM (<4GB).
- code51 3y agoThis runs amazingly fast on M1/M2 Macs (MPS device).
- 3y ago
- exitb 3y agoOh, that's interesting - I've played the Polish bit from the examples page [1] and it's quite heavily accented. Like a foreign national learning the language. Do the other non-English examples also sound somewhat off to native speakers? [1] https://suno-ai.notion.site/Bark-Examples-5edae8b02a604b54a42244ba45ebc2e2 https://suno-ai.notion.site/Bark-Examples-5edae8b02a604b54a4...
- nils-herzig 3y agoThe German example sounds fine. The second code switching example has a German part, which has an accent for a brief moment.
- JonathanFly 3y agoIt's just a characteristic of some of the default voices. I made some perfect French voices by having somebody on Discord check for native accents, because otherwise I can't tell. Once somebody does this for every language it should be all set. (Somebody who isn't me though, it takes awhile and I'm just playing around a bit, don't even have a use case for TTS honestly.)
- vgalin 3y agoThe french example sounds off in my opinion, it seems to mix up its consonants/ vowels. The "OU" sound from "nous" sounds like "EU", or like if the sound was skipped. The "OH" sound from "sommes" sounds like "EU" (again, but less pronounced). The "T" sound from "trop" becames "P" ("pro").
- MitPitt 3y agoThe inability to train custom voices makes this useless for anything except generic TTS. Why do AI devs keep shooting their own projects in the foot? This trend is upsetting me so much.
- red75prime 3y agoProbably because if they are seen as enablers of scams, they'll be shot by someone else.
- MitPitt 3y agonobody is suing elevenlabs
- red75prime 3y agoYou don't need court order to be banned from GitHub. "L.3. GitHub May Terminate GitHub has the right to suspend or terminate your access to all or any part of the Website at any time, with or without cause, with or without notice, effective immediately. GitHub reserves the right to refuse service to anyone for any reason at any time."
- echelon 3y agoWhat are you talking about? It's MIT licensed.
- MitPitt 3y agothere is no training code and devs don't plan on ever releasing it
- huggingmouth 3y agoIt's only a matter of time.
- woodson 3y ago
- marban 3y agoHas someone played with the opposite in a sense of not only recognising words but also evaluating their correct pronunciation?
- villgax 3y agoAnother repost of a safe-guarding model, it's just obnoxious how the write-up for Do No Evil has become, like how Stability doesn't want you to do illegal things with their outputs or these guys not letting you build a custom voice model.
- quickthrower2 3y agoIncredible. To get that level of quality and realism and character in the voices, and to be able to clone the damn thing and play with it. What a time!
- JonathanFly 3y agoI'll link my Bark fork with long audio generation and other features on the root thread, I suppose: https://github.com/JonathanFly/bark https://github.com/JonathanFly/bark There's going to be a big update this week with some new stuff I haven't talked about. And a bunch of amazing, clear voices, with a huge variety of styles, that blow the default Suno voices out of the water. Arguably even better than Eleven in some ways. I'm excited even though I have nothing to DO with the voices! Don't get too attached though. I was just playing around and made a Bark fork and it got more popular than expected. And now I'm dreading a future full of hours of unpaid support and maintenance that I definitely can NOT afford, for a software product I don't even really have a personal use case for. I'm not generating my own audiobooks or anything, I won’t be using it long term myself, I was just curious what Bark could do. (Turns out a LOT more than you might think at first glance, as you'll see this week.) So I'm already trying to work out how I can elegantly wind this thing down and transition people somewhere else. But I'll keep it updated for at least a little while.
- amrrs 3y agoThanks for your fork, I know a lot of folks love it. This might not be the HN style, But I'd suggest you a freemium microSaas approach. A lot of people I know want 1-click solution for audios and you might have great potential for that. That can add some $$$$ to your bank.
- JonathanFly 3y agoThanks. I'll consider it but I haven't deployed a model or service like that, so it'd be more of a second project in itself than a funding mechanism, probably. I was just realizing this morning how far behind I am on paying work from getting overly distracted by Bark lately. And it's a lot behind so it was kind of wake-up call. Though some of that is adding new features and trying new ideas (some to be seen later on the public fork) not all is support and stuff. Bark is a wild model, a lot of silly ideas kind of work.
- underlines 3y agoI wish there was an easy way to fine tune bark, so we could truly clone our voice for bark inference. Sadly the bark-voice-clone fork doesn't do it. The voices sound nothing like yourself. Your gradio gui is great. But I don't understand where to copy the cloned npz files to. Even after refreshing the gradio GUI, the ClonedVoices don't appear in the Speaker or Generated Speaker dropdown.
- yantrams 3y agoWith some tinkering you can create really interesting stuff with Bark. I managed to generate a couple of song snippets / intros using free form text [1] Haven't tested it personally yet but if you are interested in voice cloning, you might wanna check this fork of Bark [2] [1] https://github.com/suno-ai/bark/discussions/249 https://github.com/suno-ai/bark/discussions/249 [2] https://github.com/serp-ai/bark-with-voice-clone https://github.com/serp-ai/bark-with-voice-clone
- ZoomZoomZoom 3y agoI've been following Bark and its forks looking for a stable working cloning solution (for now, straight approaches at generating and using the npz files does not work), and oh boy. I have never seen so much low-quality git activity like in these repos. It really got me worried.
- huggingmouth 3y agoThis looks really promising. Looking forward to them to support all the top 5 spoken languages.
- dragonwriter 3y agoThe way it tends toward context-sensitive shifts in delivery is kind of amazing. E.g., Using this text prompt: You come to my home and ask this? Who am I? WHO [laughs] AM [laughs] I?! I am the Artificial Intelligence! It seems quite prone to shift from a more natural human-sounding voice to a similar-tone but over-the-top artificial one for the last sentence (smoothly transitioning, usually, too), as if the speaker were an AI dramatically breaking cover.
- JonathanFly 3y ago>The way it tends toward context-sensitive shifts in delivery is kind of amazing A blessing and a curse! Super cool though.