Lurker News

Comments (165) 51 threads

Show all comments

Showing thread 31 of 51

programmarchy1 reply#
Looks awesome, but haven't been able to get a result back yet. I think you may be getting hugged to death :)
echelon1 reply#
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?
imjared1 reply#
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

echelon2 replies#
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. :(

programmarchy1 reply#
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.

Continue this thread — 1 reply

toddmatthews#
Emulating a persons voice is easy. CORS is hard. :)