Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Laya the open source version of Jev(convaiinnovations.com ↗)
    113comments
  2. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    31comments
  3. Tin: full-text search for Postgres(planetscale.com ↗)
    19comments
  4. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    421comments
  5. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    176comments
  6. “The Secret Life of Circuits” is here(coredump.cx ↗)
    47comments
  7. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    8comments
  8. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    533comments
  9. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    26comments
  10. What Zig felt like, coming from Rust(besok.github.io ↗)
    90comments
  11. I built the fastest PHP webserver in the world(qbixserver.com ↗)
    12comments
  12. San Francisco Onion Futures Company(onionfutures.com ↗)
    105comments
  13. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    185comments
  14. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    126comments
  15. Agreement between the USA and Denmark (1951,2004) [pdf](state.gov ↗)
    1comments
  16. Learning Another Language May Be One of the Best Ways to Keep Your Brain Healthy(theconversation.com ↗)
    31comments
  17. Cloudflare Quick Tunnels(cloudflare.com ↗)
    300comments
  18. How to Write with an LLM(sockpuppet.org ↗)
    360comments
  19. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    23comments
  20. Communication by means of modulated Johnson noise(pnas.org ↗)
    18comments
  21. SDCC – Small Device C Compiler(sourceforge.net ↗)
    23comments
  22. Saving another 100TB of RAM(cloudflare.com ↗)
    89comments
  23. Science Is Open Software(jepedersen.dk ↗)
    47comments
  24. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    8comments
  25. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    44comments
  26. From Stonemasons to Carpenters(thelastsoftwareengineer.substack.com ↗)
    4comments
  27. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    122comments
  28. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    7comments
  29. OpenJev(openjev.com ↗)
    278comments
  30. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    119comments

Show HN: Clone your voice and speak a foreign language

513 pointsby 4y agocoqui.ai
112 comments
4y agoHN ↗

Cool, it's impressive how much can it do with a short sample, although this seems like an easy way for end users to deep fake their friends / enemies saying something.

4y agoHN ↗

Maybe the solution is to have a randomly generated paragraph of text to read which expires in short amount of time. So you can't predict it and you don't have enough time to splice together a fake reading from something else.

4y agoHN ↗

The problem with any anti abuse measure is someone can create another project which does not have any of this. There are a handful of projects which can do pretty good voice synthesis right now. It would be about as easy as getting a consensus for all photo editing tools to place a watermark on the image to prevent abuse.

4y agoHN ↗

I tested it with your comment: https://sndup.net/mghy/ :)

It's also a new possibility to somewhat personalize the text to speech engines. The above example is not really close to my voice.

4y agoHN ↗

My 26 second training input perhaps wasn't enough. The result sounded like someone else. Is the result some kind of merger of my voice and a native speaker's?

4y agoHN ↗

Similarity depends on many factors: recording quality, which language you're synthesizing in (models trained on more speakers do better), and diversity of prosody in your recording. Try recording for a bit longer and "acting out" a bit in your tone, that tends to give me interesting results :)

4y agoHN ↗

Interesting. I like the addition of music to make sure it's not just a raw voice sample. The output I get seems to be a mix of a native speaker and my voice, because my (thick) accent is being filtered out.

I suppose that if I ever take proper English pronunciation classes, I now know what to strive for.

4y agoHN ↗

I speak Brazilian Portuguese natively. I chose to record my voice saying a specific sentence and to "translate" it to Brazilian Portuguese using the exact same sentence. I was very pleased to find out that I became a Mineiro from the countryside, one of the coolest accents in Brazil!

4y agoHN ↗

The Brazilian Portuguese model is a bit of an extreme showcase (and thus really cool!), as it was trained on a single speaker (entirely recorded by the main author of the paper, Edresson Casanova, who's Brazilian).

The fact that it can do multi-lingual voice cloning at all in that case is already surprising. You can find more details in the project page [0] and paper [1]. And here's the corpus. [2]

[0] https://edresson.github.io/YourTTS/

[1] https://arxiv.org/abs/2112.02418

[2] https://edresson.github.io/TTS-Portuguese-Corpus/

4y agoHN ↗

You spoke Portuguese into it and it just changed your accent? That's kinda cool.

4y agoHN ↗

I can speak just enough to know how I sound, and was surprised to hear that accent too :D

4y agoHN ↗

This is very cool. I recorded myself in Portuguese -> Portuguese and got the same result.

I also did Pt -> En and sounded like... me speaking English, though with some artifacts. VERY cool.

4y agoHN ↗

There was a thread a while back about the need for "accent correction," meaning that native speakers with one accent could more easily consume content in the same accent. It looks like the technology exists now! This is worth money. If you find an accent that many people really dislike, the odds are that's it's also very difficult for people to understand that accent (until they are accustomed to it).

4y agoHN ↗

This is incredibly impressive and does a great job of capturing my voice. Well done!

4y agoHN ↗

Is it supposed to translate or just read with the target accent? For me, it's only reading the English input text with the target accent.

4y agoHN ↗

It doesn't translate the text, you have to put in text in the target language. But you can record audio speaking in any language you want.

4y agoHN ↗

This is so cool! Thank you!

How do y'all intend to profit (succeed as a startup) if you're releasing so much publicly? I'd love to see you guys succeed.

Really great to see where some of the Mozilla TTS folks wound up, too.

4y agoHN ↗

Is there a static demo that I don't have to provide my own voice for?

4y agoHN ↗

We did not provide such a demo in part to hinder nefarious uses of the technology.

4y agoHN ↗

Honestly, how much of a hinderance is that? A person could just supply a recording of another person, couldn't they?

4y agoHN ↗

Discourages low-hanging, hit-and-run usage that's likely to get their site shut down.

If someone wants to fake a statement there are already 100 ways to do it. Not making their servers the ones doing the deed puts a meaningful barrier in place for more casual misuse. And for serious cases like impersonation on a large scale, the resources are there to likely do better than this instant feedback model can.

4y agoHN ↗

Noble, but the genie will be out of that bottle soon enough, if not already.

4y agoHN ↗

You could provide a demo with a fixed prompt that will (for example) always read the first paragraph of the Wikipedia article about avocados.

4y agoHN ↗

You're free to enter any input sentence you want in the text box.

The input sentence generally should be in the language you selected from the dropdown. For example, if the dropdown has "French" selected you could enter the text "Allons enfants de la Patrie, Le jour de gloire est arrivé!"

Clicking "Submit" then generates a TTS reading of the sentence you input in the language selected from the dropdown.

For fun you can mix and match. In other words, select a language from the drop down and enter text in the text box not in the language selected from the dropdown. (For example, the dropdown could have "French" selected and the sentence could be "O say can you see, by the dawn's early light". This gives interesting results, it sounds as if a native French speaker is speaking English.)

4y agoHN ↗

Very interesting! Is the music an intentional blended track or an artifact of generation?

4y agoHN ↗

I appreciate the effort here, but it almost feels like this is hopeless as it seems so many groups are able to build voice synthesis right now that the tech has fallen in to the common persons hand and some of them won't make any effort to stop abuse.

Maybe if we can get watermarked stuff out first and the average person gets up to speed with what tech can do, we can all adjust our expectations before the real wave of abuse hits.

4y agoHN ↗

I am French and I did try it, recording my voice in English (I have a thick French accent to English speaking ears, ok for French ones). And the result back in French was kind of good even it did sound almost like me with a slight American English accent.

4y agoHN ↗

I'm curious but a bit afraid to test it out.

The idea of having a model of my voice out there that can say whatever is written in a text box is scary.

4y agoHN ↗

Should you never speak to be sure you aren't recorded?

4y agoHN ↗

This is a perfect example of when the law shouldn’t be so far behind the tech.

4y agoHN ↗

Exactly which part of this do you think should be illegal?

4y agoHN ↗

It doesn't have to be illegal but I think some defensive regulation here is smart. Things people are concerned about may already be illegal. Imitation, identity theft, slander and so on. Think about the new layer it adds to domestic disputes and criminal investigations.

Perhaps a solution is a sound fingerprint requirement for voice imitation software so that it's easily identifiable in court if it's an imitation voice.

It's somewhat of a new frontier, imagine during a divorce proceeding your ex-partner fabricates voice recordings of you threatening the kids so you don't get custody, how do you protect yourself against that, how to you prove that's what happened? Soon enough it'll just be an app on their phone that they use to record your voice during a discussion, then later spits out a sound file of you saying whatever they want you to say. That's clearly a socially dangerous tool.

4y agoHN ↗

Tomorrow a paid tool or a costly hidden company will allow anyone to get statement in your voice (based on sample). How you are going to proof, that it is not you?

Fake calls to your relatives in your voice or even fake video with your face and voice asking for money! or illegal activities.

Few years later a company will come and say we can detect if it's fake or not pay $10,000 for solution, or get ready to be in prison. Oops! legal system doesn't accept this as a proof, now what? Welcome to the prison.

Both companies are making money, and you are paying by money and your life.

4y agoHN ↗

What's your suggested solution?

I can see the government banning using voice as a password. I can't see it banning the tech. The criminals will use the tech regardless of if it's banned. Looks like we'll need person to person authentication for our relatives soon.

4y agoHN ↗

How you are going to proof, that it is not you?

If technology like this is plausible, then the recording shouldn't be considered a statement by me in the first place.

People are just going to have to learn not to trust audio. People adapted to photoshop, they'll adapt to this.

4y agoHN ↗

it's possible to forge paper signatures since forever yet it's still used

4y agoHN ↗

Yeah but history has shown that people do not, in fact, so that.

4y agoHN ↗

Appeal to ridicule.

It's a valid concern to not want to give a random website a workable voice model. Just because you've talked on the phone or used speech-to-text before, doesn't make that concern invalid.

4y agoHN ↗

But this website is not even asking for identifying information.. yes it could figure things out, but as privacy conscious HN readers we have VPNs and such right? =p

4y agoHN ↗

And if they are using other techniques like browser fingerprinting or other techniques big tech uses to de-anonymize users then suddenly they have something to tie your voice to. Maybe the risk is low but I prefer to error on the side of caution.

4y agoHN ↗

Just need a facebook pixel or a google font? Some company (already known for dark practices) could hide behind a "random website" to get more data. /conspiracy

4y agoHN ↗

Upon reflection, I'm not so sure that our usage of our voice in real life can be dismissed so easily as a concern, even if the comment was intended to dismiss concerns about this website.

Probably the folks who could best use this nefariously are the folks we already know, who have much greater availability to our voice. Those folks are in the best situation to capitalize on a working voice model to, say, call our manager, bank branch, or local emergency operator. A random website would have to go to some effort to accumulate the needed information to use our voice for much, whereas someone who already knows us could have us fired for the contents of a phone call to the manager, up on charges for prank-calling 911, or worse.

4y agoHN ↗

Schwab Bank makes you say "At Schwab, my voice is my password" before every customer support call.

4y agoHN ↗

I don't think so. At ANZ bank, you authorise every call to the bank by saying the phrase: "My voice confirms my identity". (You repeat this multiple times when registering)

4y agoHN ↗

Sadly no. It is becoming more and more common at banks and investing companies- I had the option to do it when dealing with a small company a previous employer used to manage employee 401k accounts.

At least there, it was optional.

4y agoHN ↗

Seriously? I’d run away from that in a heartbeat.

4y agoHN ↗

Voice-captchas where you repeat some corporate slogan is a dystopian future I want no part of.

4y agoHN ↗

That film gives me warm "I'm so glad I'm a techie" vibes. Something about the 90s bay area that is so perfect.

4y agoHN ↗

"Computer. Activate self-destruct sequence, voice authorization Picard delta five."

4y agoHN ↗

If all it takes is a short sample of your voice then you're probably already screwed. May as well have fun with it!

4y agoHN ↗

It's a little hopeless in the long term. Eventually these models will get so good that they could work with only a small recording of text vs the huge amount of transcribed audio currently needed.

4y agoHN ↗

I didn't think of that. Luckily I haven't tried it out yet.

4y agoHN ↗

I took the leap.

The English->Portuguese sample sounded nothing like me at all except for one syllable where it sounded like it was playing back a brief snip of what I had recorded.

The English->French version did a little bit better, it sounded like the voice had been influenced by mine in some small way.

English->English (saying a very different sentence to what I recorded) was pretty impressive though.

4y agoHN ↗

FWIW, it's not quite a model of your voice.

The way it works is, a model is trained of all possible voices. Then your specific voice is projected into latent space.

That's why it can mimic your voice with only a few seconds of audio. It's not making a model, but rather using an existing model.

It may seem like a pedantic distinction, but it's why the model isn't as worrisome as it seems. It can't target you specifically, just the average voice near yours.

It's closer to a really talented parrot than a model that can impersonate you on command. I suspect if you try it out, you'll be surprised it's so far off from your actual voice.

4y agoHN ↗

This is one of those ideas that seems obvious when you hear it and also I'm pissed I didn't think about it. It also seems like a key component to a universal translator. This + VTT + a phone sounds like it'd put UN translators out of business (:) yeah I know, nuance probbably matters there).

4y agoHN ↗

I just tried it and it sounds nothing at all like me. shrug

4y agoHN ↗

Same here. It even mispronounced the basic french words, and inserted some background music similar to what you can hear on the CDs with exercises that come with those "foreign language for beginners" textbooks.

4y agoHN ↗

Nice! The first few seconds sound a lot like me. Afterwards, not so much.

4y agoHN ↗

Great opportunity for criminals and state actors to take identity theft to the next level.

4y agoHN ↗

Scoff...As if they didn't have this for 10 years already.

4y agoHN ↗

Did they have your voice model so easily available, hosted on a poorly secured servers , until you decided to try out this new free toy ?

4y agoHN ↗

There is a video of me talking for an hour straight on youtube, for example.

4y agoHN ↗

Pretty neat! Was poking around on the site, and under the hood the interface to upload and render the audio is powered by Gradio: https://gradio.app/

4y agoHN ↗

As someone who actually speaks two languages - gave it a voice sample in Polish, then used it to synthesize the voice in English - sounds absolutely nothing like me. Meh.

4y agoHN ↗

Have you investigated whether this is useful for language learning? Presumably it ought to be easier to try to emulate (and compare and contrast) speech in "your own voice" (with a native accent) than someone else's. Another useful feature to this end might be to emulate how your voice sounds to you (rather than other people); not sure how difficult that is.

4y agoHN ↗

Indeed! I tried it with some French and was impressed. After recording in English and synthesizing a short sentence I tried to record and speak using the same intonation/speed as the generated French audio. It matches almost perfectly. Except of course for the bg music I don’t think anyone could discern which one was real and which one was fake. It didn’t work for all sentences, and there were some obvious glitches, but for the pieces where it did it was quite freaky. Also, hearing the French sentence in my own voice made it quite easy to pronounce it correctly. When I try this using for example the Google Translate TTS it’s much much harder.

4y agoHN ↗

Off topic, but this reminded me: What ever happened to that thing that Google demoed where its robots would call restaurants and make reservations for you? Did that ever find its way into Android, or another product?

4y agoHN ↗

Tried it. Just a voice to text of French guy talking. Definitely not my voice.

4y agoHN ↗

Very cool! If I were looking for a side project, I'd extend this, add a DeepL integration for automating translations, add some voice models for other languages/people and wrap it as a mobile app where people could pay to unlock the voice models.

4y agoHN ↗

Pretty interesting! I tried this both English -> French and French -> English.

English -> French seemed to work best, with the AI output have a very similar timbre to my real voice. Not hyperrealistic for me, but decent enough given I gave it a ~20s sample.

French -> English was less good in terms of the timbre and pitch of the voice---way higher than my real voice. It did have a bit of a Canadian accent, though, which is funny because I speak French with a Quebec accent. Maybe that's what I would sound like if I had a Canadian accent in English?

4y agoHN ↗

Funnily, I (native American English speaker who learned French in QC, and whose accent in French indicates this) tried it both ways. I think the accent is basically built in both ways, which makes sense, although it would be more interesting if it based your accent in the output off the phonology in the input.

4y agoHN ↗

This is great, my wife actually thought it was me speaking for a moment when she first came in!

4y agoHN ↗

This will be great for foreign movies. While I still prefer subtitles, for those who watch with dubs, it’ll be amazing to hear the actor’s “real” voice.

4y agoHN ↗

My question is, how long until we have automatically dubbed anime?

4y agoHN ↗

Pretty soon. But won't you prefer subs over dubs for anime?

4y agoHN ↗

To help prevent malicious use, consider presenting the user with specific (randomly-generated) text to read aloud, and check (with speech to text) that they actually read that, instead of allowing them to say whatever they want.

That will help ensure that this is only being used by the person visiting the web page.

(That will only help with the hosted version, of course, not if you make the model code/weights available. I didn't generate this idea myself but also can't remember where I saw it. I think it was from someone offering a similar service.)

4y agoHN ↗

An interesting reflection is how quickly research around TTS/STT has progressed. I remember reading [0] thinking we were a long ways away. And things will get way better with multi-task learning and multi-modal learning in the coming years (or months really).

In fact, just a year after this post was written, CoquiAI started their open source projects [1].

[0] https://news.ycombinator.com/item?id=22869365 (https://thegradient.pub/towards-an-imagenet-moment-for-speec...)

[1] https://star-history.com/#coqui-ai/TTS&coqui-ai/STT

4y agoHN ↗

what about a real time white english to ebonics/jive translator, when are we going to see this...

4y agoHN ↗

This is amazing. I can't wait until this is used to dub TV shows, so we get the original actors' voices, especially for shows like Squid Game that had such terrible dubs.

4y agoHN ↗

Don't you think thats more of a translation problem rather than how well it was spoken?

4y agoHN ↗

It also misses that vocal inflection and timing is part of what makes a solid dub. Even if the translation was amazing, with all the subtleties of the language conferred somehow, you still have to get that right for it to be convincing. Otherwise you could end up with solid dialog such as Pride and Prejudice, as delivered by Tommy Wiseau or Christopher Walken or something ("Those. Who do not. ComPLAIN. Are never pitied.")

4y agoHN ↗

I spoke for about a minute in English, having no idea what is the ideal length for it to properly figure out my voice. The result sounded like someone else completely. There was also some strange music in the background, which made me think that it was playing back a recording of a real person speaking! A real person who's not me.

4y agoHN ↗

Going to test this out on Hinge voice prompts and see what happens

4y agoHN ↗

What kind of wizardy is this!? Congrats Coqui team!

4y agoHN ↗

Can tools like this exist in offline mode only? Or do they require some high-power computers for the model?

4y agoHN ↗

I recorded my voice in English and it converted into French, but I heard after converting it to french voice, a music was heard in the sound after my voice was played , what was it.

Btw idea is really cool, its like how will you speak in same tone in other languages.

4y agoHN ↗

I put my voice in in English and asked for English back. The output mostly sounded the same, but the interesting thing was that it had some music playing in the background, like the ambient kind you might hear in a YT video while a narrator talks.