use the new endpoint

This commit is contained in:
derpystuff 2023-12-23 15:44:07 +01:00
parent 5517223eea
commit de1c17625c
3 changed files with 9 additions and 2 deletions

View file

@ -54,6 +54,12 @@ module.exports.googleSpeechRecognition = async function(context, url){
})
}
module.exports.googleSpeechRecognitionWithLabels = async function(context, url){
return await request(Api.GOOGLE_SPEECH_RECOGNIZE_LABELS, "GET", {}, {
url
})
}
module.exports.googleTranslate = async function(context, text, to, from){
return await request(Api.GOOGLE_TRANSLATE, "GET", {}, {
text: text,