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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard