chrisjp / tts

A simple tool to demo text-to-speech using various services' voices. HTML5 and Vanilla JS.
https://lazypy.ro/tts
MIT License
63 stars 12 forks source link

Streamlabs Polly voices now require a new header #35

Closed HappyMac3920 closed 5 months ago

HappyMac3920 commented 5 months ago

Streamlabs changed how Polly speech is requested. Now, it requires a referer in the header, but the request is still simple:

curl 'https://streamlabs.com/polly/speak' \
  -H 'referer: https://streamlabs.com' \
  --data-raw 'text=This+is+a+test+donation+for+%2416.00.&voice=Brian'
chrisjp commented 5 months ago

Tested and it works locally. Thanks for that. Will push the fix now.

HappyMac3920 commented 5 months ago

Tested and it works locally. Thanks for that. Will push the fix now.

Alright, it works now. Looking forward to the MS Edge voices. :)