Hi @Jose Joab Romero Humba - Does everything already work OK on the Azure Functions side? On the Android client side of things, I'm not a Java dev but I've come across the following sample which might be helpful in getting started: https://github.com/youravgjoe/Android-Audio-File-Upload
How can I send audio data from android studio (java) to my azure function?
Jose Joab Romero Humba
41
Reputation points
I'm creating an app in android studio and I need to send some data to my api on azure function. I know how to do it in python but I need to do it in java.
here is the code
def validarPerfil(email, src):
session = requests.Session()
headers = {"content-type": "application/json",
"Ocp-apim-subscription-key": key,
"locale": "es-mx"
}
f=open(src,"rb")
audioCod = f.read()
f.close()
parametros3 = audioCod
url = f'https://gatervoz-api.azurewebsites.net/api/verificarPerfil?code=JsAEPtnWpLEoj1x56V6aeGYjtug3DoBSxiKULRaPoo3OnR1duK3Dpg==&email={email}'
req = session.post(url, data=parametros3, headers=headers)
print(req._content)
Thank you in advance
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions