Working with URL Audio [Answered]
How would one use this URL to render audio inside the On get method of a razor page? https://api.streamelements.com/kappa/v2/speech?voice=Brian&text=
The link provided works by appending a string to the end of the URL and then generating a TTS audio file. I would like to play that audio file on the users end once they load that specific razor page (hence the onGet method)
30 Replies
Javascript
so this actually came from JS originally. https://github.com/5E7EN/TTS-Emulator/blob/master/index.html And idea how I would convert the JS in this to onload rather than onClick by reading the text area?
GitHub
TTS-Emulator/index.html at master · 5E7EN/TTS-Emulator
Online emulator for the Brian TTS voice by StreamElements - TTS-Emulator/index.html at master · 5E7EN/TTS-Emulator
Just run the code directly
The problem here is not that I don't know what needs done, its that I dont know JS
would just turn into
Simple as that
how would I convert this
I just told you how
not really
Or, well, seeing how the code in that repo is async, you might need
Yes really
what needs to happen with that ^
Just place it in a js file and load it on the page
you didn't tell me about passing variables into it or accessing it on a page by page basis
Or place it between
<script>
tags
That original function doesn't take any variablesyeah it does, it takes the text area's string as a variable
that parameter then converts into a mp3
It literally doesn't take any variables
what are you saying
List of arguments is empty
I just told you I don't know java script
You're gonna have a hard time, then
so then show me that's why I posted in help lmfao
This server isn't for spoonfeeding
jesus christ
I can help you, I won't give you a solution straight
telling me how to pass parameters is not spoon feeding
just leave at this point
It works exactly as in C#
fuck you
✅ This post has been marked as answered!