
Announcements
have a question regarding PowerApps and the Microphone Control on mobile devices.
-Purpose is to attach the recording from a mobile device to a SharePoint item.
-The Issue
When recording on PC I get the base 64 data, and the solution works.
Example: "Datastream": "data:audio/webm;base64,GkXfo59ChoEBQve....................." (Very long string)
When recording on a mobile device I get the reference of a temp file, which stores the recording (I hope).
Example: "Datastream": "TempFiles/microphone-audio8789721259407601352.3gp"
-The Logic
The Microphone Control
OnStop Property:
Set(varTmpJson,{Title:Text(ThisItem.Title & " " & Now()),Datastream:micRecord.Audio});
UploadMicCapture.Run(ThisItem.ID,JSON(varTmpJson,JSONFormat.IncludeBinaryData));
In Flow
Initialize variable
String asks in PowerApps, which returns the variable defined above
I compose the initialized variable: json(variables('b64Audio'))
Parses JSON from the Output
And at the end i Add attachment to SharePoint item
dataUriToBinary(body('Parse_JSON')?['Datastream'])
-Finally the question
Have any of you had any luck attaching the audio file using the Microphone control on a mobile device?
Hi @mvingaard,
It's normal that the audio is stored in 3gp format on the mobile device, it's mentioned on the documentation here.
Can you check this post here and see if t helps solving your issue with saving the file?
Thank you,
Ovidiu