cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DofAVLien
Regular Visitor

saving microphone audio


Hello,

I wondered if there is any way to write out the audio from the microphone input. Some chap asked on the "Learn" page ( http://disq.us/p/1cc2pal ) corresponding to that control, but recieved no response. I am hard pressed to think of an instance where I would want to record audio & only use it in the app that did the recording. Is there something I am missing? Can we just save it anywhere, like a text record? I'm thinking "no".

 

There is documentation on how to get the audio into the PowerApp, but nothing to get the audio back out. Are we meant to run it all through Cortana before we can move the data elsewhere? If so, why not just have a STT input instead? I guess I could go old-school & dub it out if my headphone jack...

 

Cheers!

—D of A.V.L.ien

27 REPLIES 27

I've setup my flow as described and It's sending audio emails successfully, however, the format sent is in the generic file (.) format and not a recognized audio format.  Any suggestions? 

You can try to name the audio file as AudioFileName.mp4

it won't work. Despite the documentation the audio output file format is not known.

formula won't work.

the file format looks like unknown.

Mike8
Memorable Member
Memorable Member

Hello Darius,

Did you try to add .mp4 at the end of the file name? 
And it's not working? Strange. It works for me

seadude
Memorable Member
Memorable Member

Had some fun playing with this tonight and was successful using Azure Blob Storage and following along with Evan Chaki's blog post here.

The gist:

- Create an Azure Blob Container

- Add the Azure Blob Storage data source to your powerapp

- OnStop of your recorder Control:

// First collection to show the raw appres url from mic.audio
Collect(
    colLocalSounds,
    {
        ID: CountRows(colLocalSounds) + 1,
        sounds: Microphone1.Audio
    }
);

// Second collection to visualize the blob metadata once saved
ClearCollect(
    colAzureBlob,
   AzureBlobStorage.CreateFile("NAME_OF_YOUR_BLOB_CONTAINER","test_audio" & Text(Now(),LongDateTime24) & ".wav", Microphone1.Audio)
);

// Third collection to get the actual audio
ClearCollect(
    colAzureAudio,
    AzureBlobStorage.GetFileContent(First(colAzureBlob.Id).Id)
)

- You can pare these down as you see fit. Good for visualizations at first.

- In Azure Portal, you can quickly "Generate SAS and URL" to play the audio in the browser

Good luck!

h-nagao
Impactful Individual
Impactful Individual

Hello,
This topic has been discussed long time.
Today, I found simple&low-coding approach for this topic:)
Using JSON function and Flow.
For a detail pls check out my blog post.
https://qiita.com/h-nagao/items/d36e0ba5552cfe94ad07

Thank you,
Hiro
js_
Regular Visitor

This kind of approach works on PCs. The problem is that probably no one on this planet could make it work on mobile devices.

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (5,139)