transcribe voice message command

This commit is contained in:
derpystuff 2023-04-15 19:17:40 +02:00
parent 26a305ea8b
commit f408733d83
3 changed files with 61 additions and 0 deletions

View file

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