uberduck.js
v1.0.3
Published
unofficial uberduck api, the code is TERRIBLE but it works.
Downloads
8
Maintainers
Readme
UberDuck Unofficial API This API is quite unstable due to the fact being that the code I have wrote is TERRIBLE, but it works. it isn't the fastest but you can use it to learn how to use uberduck's api to make your own things with it. Code example:
const uberduck = require('uberduck.js');
uberduck.setDetails('yourkey','yoursecret');
const res =await uberduck.downloadSpeak(await uberduck.requestSpeak('spongebob', 'hello, world!'));
if(res)
console.log("hoorah!");
function info(s) : setDetails It is crucial that you run setDetails first, if you don't then none of the functions will work because of the fact it doesn't have any credentials to verify with.
**requestSpeak**
This is used to tell uberduck that you would like to translate something, it'll return with your request UUID if it has went through correctly (good)
**downloadSpeak**
once you have gotten your UUID, you call to this function with said uuid and where you'd like to save the output (.mp3).