web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Voice control - Media ...
Power Apps
Answered

Voice control - Media property as varaibale

(0) ShareShare
ReportReport
Posted on by 106

Im creating a varibale created from a OpenAI function. The problem appears when I try to use this variable as input to the Medis property in the Voice control and this is not accepted. Do I need to re-format it?

Thanks in advance!

 

Set(varUt2,OpenAI.CreateSpeech({
  model: "tts-1",
  input: "Dette er bergen",
  voice: "alloy",
  response_format: "mp3",
  speed: "1"
}))
Categories:
I have the same question (0)
  • EJ-07080649-0 Profile Picture
    106 on at

    I have a function that gives me a stream (mp3) and I fetch this into a variable. I then tried to use this variable as an input to Media in the Audio Player control. Accoding to PowerApps this is not allowed.

    Are there any workaround?

     

    ----------------------

    Function:

    Set(varUt2,OpenAI.CreateSpeech({
      model: "tts-1",
      input: "Dette er bergen",
      voice: "alloy",
      response_format: "mp3",
      speed: "1"
    }))
  • Verified answer
    Meekou Profile Picture
    on at

    Is "varUt2" base64 format? Try something like below first:

    Substitute(base64,"""","")

    For Audio control, you can  only access audio files from Media and online resource.

    For your scenario, your audio file are dynamic converted, Media files are not working.

    You could try to upload the audio files to online service which can access directly, and then passing the url in the Audio.Media.

    If you did not want to invoke online service, you could try save the audio files to list attachment, and then access it by something like below:

    Meekou_0-1719304806431.png


    Best Regards,

    Meekou

    YouTube

    PowerApps

    PowerAutomate

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard