News for hackers. Stuff that matters.
Re:Show HN: Neural text to speech with dozens of celebrity v... by programmarchy on Monday July 27, 2020 @11:16AM (#23965875)
Looks awesome, but haven't been able to get a result back yet. I think you may be getting hugged to death :)
Re:Show HN: Neural text to speech with dozens of celebrity v... by echelon on Monday July 27, 2020 @11:37AM (#23966109)
That's odd. I'm testing it right now and it's working. Which voices are you trying, and which device and browser are you using?
Re:Show HN: Neural text to speech with dozens of celebrity v... by imjared on Monday July 27, 2020 @11:41AM (#23966149)
I've tried Gilbert Gottfried and NDT. I do get a console error about CORS: > Access to fetch at 'https://mumble.stream/speak_spectrogram' from origin 'https://vo.codes' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Using Chrome stable

Re:Show HN: Neural text to speech with dozens of celebrity v... by echelon on Monday July 27, 2020 @11:57AM (#23966317)
Oh man, I thought I had this CORS stuff sorted.

Thanks for the help and info!

I'm using version 84.0.4147.89 (Official Build) (64-bit) and getting back responses.

I got the following response headers:

  access-control-allow-origin: https://vo.codes
  content-length: 151689
  content-type: application/json
  date: Mon, 27 Jul 2020 15:55:37 GMT
  vary: Origin
  x-backend-hostname: tts-group-1-965d444f5-7kvkm
I'll try to dump the cache and reproduce.

edit: I must have an old browser. It works everywhere I'm testing it. CORS is hard. :(

Re:Show HN: Neural text to speech with dozens of celebrity v... by programmarchy on Monday July 27, 2020 @01:04PM (#23967017)
I'm also on Chrome (84) macOS, using the Craig Ferguson model.

I switched to Safari and Disabled CORS, but a 500 error is coming back now. So maybe the 500 response is the root cause, and the error handler is not returning CORS headers, masking the issue on Chrome.

Edit: by putting in a shorter input (sentence rather than paragraph) I was able to get a response.

Re:Show HN: Neural text to speech with dozens of celebrity v... by echelon on Monday July 27, 2020 @01:11PM (#23967109)
I need better error messages, but I believe it should respond with something stating the length is too long.

What might've happened is that the instance your request was farmed out to might have been OOM killed. I've provided lots of memory, but these models are pretty massive and each inference run has to spin up a lot of matrices in memory.

This is all CPU inference, not GPU.

When the pods get OOM killed, they spin up again. The clusters for each speaker are about 5-10 pods apiece (with some double tenancy).

Re:Show HN: Neural text to speech with dozens of celebrity v... by toddmatthews on Monday July 27, 2020 @08:10PM (#23970852)
Emulating a persons voice is easy. CORS is hard. :)