News for hackers. Stuff that matters.
Re:OpenVoice: Versatile Instant Voice Cloning by randkyp on Friday March 29, 2024 @08:15AM (#39863110)
This is HN, so I'm surprised that no one in the comments section has run this locally. :)

Following the instructions in their repo (and moving the checkpoints/ and resources/ folder into the "nested" openvoice subfolder), I managed to get the Gradio demo running. Simple enough.

It appears to be quicker than XTTS2 on my machine (RTX 3090), and utilizes approximately 1.5GB of VRAM. The Gradio demo is limited to 200 characters, perhaps for resource usage concerns, but it seems to run at around 8x realtime (8 seconds of speech for about 1 second of processing time).

The voice clarity is better than XTTS2, too, but the speech can sound a bit stilted and, well, robotic/TTS-esque compared to it. The cloning consistency is definitely a step above XTTS2 in my experience -- XTTS2 would sometimes have random pitch shifts or plosives/babble in the middle of speech.

Re:OpenVoice: Versatile Instant Voice Cloning by bambax on Friday March 29, 2024 @09:33AM (#39863930)
I am trying to run it locally but it doesn't quite work for me.

I was able to run the demos allright, but when trying to use another reference speaker (in demo_part1), the result doesn't sound at all like the source (it's just a random male voice).

I'm also trying to produce French output, using a reference audio file in French for the base speaker, and a text in French. This triggers an error in api.py line 75 that the source language is not accepted.

Indeed, in api.py line 45 the only two source languages allowed are English and Chineese; simply adding French to language_marks in api.py line 43 avoids errors but produces a weird/unintelligible result with a super heavy English accent and pronunciation.

I guess one would need to generate source_se again, and probably mess with config.json and checkpoint.pth as well, but I could not find instructions on how to do this...?

Edit -- tried again on https://app.myshell.ai/ The result sounds French alright, but still nothing like the original reference. It would be absolutely impossible to confuse one with the other, even for someone who didn't know the person very well.

Re:OpenVoice: Versatile Instant Voice Cloning by randkyp on Friday March 29, 2024 @11:25AM (#39865199)
I played with it some more and I have to agree. For actual voice _cloning_, XTTS2 sounds much, much closer to the original speaker. But the resulting output is also much more unpredictable and sometimes downright glitchy compared to OpenVoice. XTTS2 also tries to "act out" the implied emotion/tone/pitch/cadence in the input text, for better or worse.

But my use case is just to have a nice-sounding local TTS engine, and current text-to-phoneme conversion quirks aside, OpenVoice seems promising. It's fast, too.

Re:OpenVoice: Versatile Instant Voice Cloning by echelon on Friday March 29, 2024 @12:02PM (#39865649)
And StyleTTS2 generalizes out of domain even better than that.
Re:OpenVoice: Versatile Instant Voice Cloning by dragonwriter on Saturday March 30, 2024 @08:10PM (#39879954)
> but when trying to use another reference speaker (in demo_part1), the result doesn’t sound at all like the source

I’ve noticed the same thing and I wonder if there is maybe some undocumented information about what makes a good voice sample for cloning, perhaps in terms of what you might call “phonemic inventory”. The reference sample seems really dense.

> Indeed, in api.py line 45 the only two source languages allowed are English and Chinese

If you look at the code, outside of what the model does it relies on the surrounding infrastructure converting the input text to the international phonetic alphabet (IPA) as part of the process, and only has that implemented for English and Mandarin (though cleaners.py has broken references to routines for Japanese and Korean.

Re:OpenVoice: Versatile Instant Voice Cloning by epiccoleman on Friday March 29, 2024 @09:35AM (#39863953)
I have got to build or buy a new computer capable of playing with all this cool shit. I built my last "gaming" PC in 2016, so its hardware isn't really ideal for AI shenanigans, and my Macbook for work is an increasingly crusty 2019 model, so that's out too.

Yeah, I could rent time on a server, but that's not as cool as just having a box in my house that I could use to play with local models. Feels like I'm missing a wave of fun stuff to experiment with, but hardware is expensive!

Re:OpenVoice: Versatile Instant Voice Cloning by holtkam2 on Friday March 29, 2024 @12:25PM (#39865912)
I'm in exactly the same boat. Yeah ofc you can run LMs on cloud servers but my dream project would be to construct a new gaming PC (mine is too old) and serve a LM on it, then serve an AI agent app which I can talk to from anywhere.

Has anyone had luck buying used GPUs, or is that something I should avoid?

Re:OpenVoice: Versatile Instant Voice Cloning by ssl-3 on Friday March 29, 2024 @07:11PM (#39870059)
I bought some used GPUs during the last mining thing. They all worked fine except for some oddball Dell models that the seller was obviously trying to fix a problem on (and they took them back without question, even paying return shipping).

And old mining GPUs are A-OK, generally: Despite warnings from the peanut gallery for over over a decade that mining ruins video cards, this has never really been the case. Profitable miners have always tended to treat these things very carefully, undervolt (and often, underclock) them, and pay attention to them so they could be run as cool and inexpensively as possible. Killing cards is bad for profits, so they aimed towards keeping them alive.

GPUs that were used for gaming are also OK, usually. They'll have fewer hours of hard[er] work on them, but will have more thermal cycles as gaming tends to be much more intermittent than continuous mining is.

The usual caveats apply as when buying anything else (used, "new", or whatever) from randos on teh Interwebz. (And fans eventually die, and so do thermal interfaces (pads and thermal compound), but those are all easily replaceable by anyone with a small toolkit and half a brain worth of wit.)

Re:OpenVoice: Versatile Instant Voice Cloning by beardedwizard on Friday March 29, 2024 @09:42AM (#39864021)
I would love a recommendation for an off the shelf "gpu server" good for most of this that I can run at home.
Re:OpenVoice: Versatile Instant Voice Cloning by macrolime on Friday March 29, 2024 @11:55AM (#39865563)
Mac Studio or macbook pro if you want to run the larger models. Otherwise just a gaming pc with an rtx 4090 or a used rtx 3090 if you want something cheaper. A used dual 3090 can also be a good deal, but that is more in the build it yourself category than off the shelf.
Re:OpenVoice: Versatile Instant Voice Cloning by pksebben on Friday March 29, 2024 @12:54PM (#39866262)
I went the 4090 route myself recently, and I feel like all should be warned - memory is a major bottleneck. For a lot of tasks, folks may get more mileage out of multiple 3090s if they can get them set up to run parallel.

Still waiting on being able to afford the next 4090 + egpu case et al. There are a lot of things this rig struggles with running OOM, even on inference with some of the more recent SD models.

Re:OpenVoice: Versatile Instant Voice Cloning by 101008 on Friday March 29, 2024 @12:01PM (#39865635)
Sorry if this is a silly question - I was never a Mac user, but I quick googled Mac Studio and it seems it's just the computer. Can I plug it to any monitor / use any keyboard and mouse, or do I need to use everything from Apple with it?
Re:OpenVoice: Versatile Instant Voice Cloning by timschmidt on Friday March 29, 2024 @12:10PM (#39865737)
Any monitor and keyboard will work, however Apple keyboards have a couple extra keys not present on Windows keyboards so require some key remapping to allow access to all typical shortcut key combinations.
Re:OpenVoice: Versatile Instant Voice Cloning by spectre3d on Friday March 29, 2024 @01:26PM (#39866679)
Mainly to swap the Windows and Alt keys, which you can do in System Settings without any additional software.

If you use a mouse with more than right-click and scroll wheel, with side buttons for example, then you’ll need extra software.

Re:OpenVoice: Versatile Instant Voice Cloning by macrolime on Friday March 29, 2024 @02:01PM (#39867099)
You can, but with some caveats. Not all screen resolutions work well with MacOS, though using BetterDisplay it will still usually work. If you want touch id, it's better to get the Magic Keyboard with touch id.
Re:OpenVoice: Versatile Instant Voice Cloning by ckl1810 on Friday March 29, 2024 @01:17PM (#39866547)
Depending on what models you want to run, RTX 4090 or RTX 3090 may not be enough.

Grok-1 was running on a M2 Ultra with 196GB of ram.

https://twitter.com/ibab_ml/status/1771340692364943750

Re:OpenVoice: Versatile Instant Voice Cloning by lardo on Friday March 29, 2024 @11:47AM (#39865479)
Re:OpenVoice: Versatile Instant Voice Cloning by lakomen on Friday March 29, 2024 @10:08AM (#39864303)
I'm clueless about AI, but here's a benchmark list https://www.videocardbenchmark.net/high_end_gpus.html

Imo the 4070 super is the best value and consumes the least amount of Watts, 220 in all the top 10.

So anything with one and some ECC RAM aka AMD should be fine. Intel non-xeons need the expensive w680 boards and very specific RAM per board.

ECC because you wrote server. We're professionals here after all, right?

Re:OpenVoice: Versatile Instant Voice Cloning by antonvs on Friday March 29, 2024 @12:50PM (#39866212)
What if I enjoy gambling with cosmic ray bitflips?
Re:OpenVoice: Versatile Instant Voice Cloning by GTP on Friday March 29, 2024 @01:11PM (#39866473)
Maybe they would make your AI model evolve into an AGI over time :D
Re:OpenVoice: Versatile Instant Voice Cloning by w4ffl35 on Sunday March 31, 2024 @01:10AM (#39881628)
I have a 2080s and build my ai software for it and above. 4090 is a good purchase
Re:OpenVoice: Versatile Instant Voice Cloning by batch12 on Friday March 29, 2024 @07:35PM (#39870231)
So I went really cheap and got a Thunderbolt dock for a gpu and a secondhand Intel nuc that supported it. So far it has met my needs.
Re:OpenVoice: Versatile Instant Voice Cloning by sangnoir on Friday March 29, 2024 @02:07PM (#39867158)
> its hardware isn't really ideal for AI shenanigans

FWIW, I was in the same boat as you and decided to start cheap, old game machines can handle AI shenanigans just fine wirh the right GPU. I use a 2017 workstation (Zen1) and an Nvidia P40 from around the same time, which can be had for <$200 on ebay/Amazon. The P40 has 24GB VRAM, which is more than enough for a good chunk of quantized LLMs or diffusion models, and is in the same perf ballpark as the free Colab tensor hardware.

If you're just dipping your toes without committing, I'd recommend that route. The P40 is a data center card and expects higher airflow than desktop GPUs, so you probably have to buy a "blow kit" or 3D-print a fan shroud and ensure they fit inside your case. This will be another $30-$50. The bigger the fan, the quieter it can run. If you already have a high-end gamer PC/workstation from 2016, you can dive into local AI for $250 all-in.

Edit: didn't realize how cheap P40s now are! I bought mine a while back.

Re:OpenVoice: Versatile Instant Voice Cloning by zoklet-enjoyer on Friday March 29, 2024 @09:41AM (#39864016)
I forgot all about Vocaroo!
Re:OpenVoice: Versatile Instant Voice Cloning by causi on Friday March 29, 2024 @09:57AM (#39864164)
We're so close to me being able to open a program, feed in an epub, and get a near-human level audiobook out of it. I'm so excited.
Re:OpenVoice: Versatile Instant Voice Cloning by aedocw on Friday March 29, 2024 @11:02AM (#39864911)
Give https://github.com/aedocw/epub2tts a look, the latest update enables use of MS Edge cloud-based TTS so you don't need a local GPU and the quality is excellent.
Re:OpenVoice: Versatile Instant Voice Cloning by causi on Monday April 01, 2024 @12:47PM (#39896144)
Interesting. Seems like a pain to get running but I'll give it a shot. Thanks.
Re:OpenVoice: Versatile Instant Voice Cloning by jurimasa on Friday March 29, 2024 @11:07AM (#39864984)
I think this is creepy and dangerous as fuck. Not worth the trouble it will be.
Re:OpenVoice: Versatile Instant Voice Cloning by CamperBob2 on Friday March 29, 2024 @11:58AM (#39865598)
Other sites beckon.
Re:OpenVoice: Versatile Instant Voice Cloning by _zoltan_ on Friday March 29, 2024 @12:28PM (#39865949)
you're gonna be REALLY surprised out there in the real world.
Re:OpenVoice: Versatile Instant Voice Cloning by aftbit on Friday March 29, 2024 @12:24PM (#39865899)
I want to try chaining XTTS2 with something like RVCProject. The idea is to generate the speech in one step, then clone a voice in the audio domain in a second step.
Re:OpenVoice: Versatile Instant Voice Cloning by fellowniusmonk on Saturday March 30, 2024 @09:25PM (#39880478)
I'm running it locally on my M1. The reference voices sound great, trying to clone my own voice it doesn't sound remotely like me.