Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Verified answer
    Meekou Profile Picture
    on at
    Re: Voice control - Media property as varaibale

    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

  • EJ-07080649-0 Profile Picture
    106 on at
    Function output as a stream to a variable

    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"
    }))

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,609 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard