Skip to main content
Community site session details

Community site session details

Session Id : v+BAiJgNChxjkKRG/UhR7k
Power Apps - Building Power Apps
Answered

Text to Speech conversion in PowerApps

Like (0) ShareShare
ReportReport
Posted on 18 Feb 2021 09:04:26 by 130

Hi,

 

I am trying to creating an app which will read out the text on the screen, basically for accessibility purpose.

 

I tried adding the audio control in the app & the Microsoft Translator service.

 

In the Media property for Audio control, I added:

 

MicrosoftTranslator.TextToSpeech("This is my text here", "en")

 

However when i run the app - getting the below error:

 

MicrosoftTranslator.TextToSpeech failed: The request was not sent or there was no response form the server. Check your internet connection.

 

My internet connection seems to be fine as I can browse websites. SO not sure what is the issue here.

 

Could you please help. Is this the right way to use MicrosoftTranslator.TextToSpeech or are there any other free API's can can be used to do Text to speech conversion.

 

  • penguin1723 Profile Picture
    2 on 25 Nov 2021 at 11:50:19
    Re: Text to Speech conversion in PowerApps

    Can I ask if it still works? This is because Microsoft deprecated the original one.

  • v-albai-msft Profile Picture
    on 25 Feb 2021 at 04:05:15
    Re: Text to Speech conversion in PowerApps

    Hi @TheOpeningBat ,

    So strange, everything works fine in my browsers.

    Maybe you can try to open your app in different browsers, also try in a inPrivate/incognito mode.

    Best regards,

    Allen

  • AsanKani Profile Picture
    710 on 24 Feb 2021 at 16:46:19
    Re: Text to Speech conversion in PowerApps

    You can try New Edge Download the new Microsoft Edge based on Chromium

  • TheOpeningBat Profile Picture
    130 on 24 Feb 2021 at 11:00:41
    Re: Text to Speech conversion in PowerApps

    Thanks for your reply @v-albai-msft & @AsanKani.

    The audio control with the translator service seems to be working fine, if I open the app in a mobile.

    But in desktop or web browser, it seems to block the translator service, so not sure any permission issue. Anything you are aware of. Thanks.

  • AsanKani Profile Picture
    710 on 23 Feb 2021 at 02:49:25
    Re: Text to Speech conversion in PowerApps

    Overview of the Microsoft Translator connection - Power Apps | Microsoft Docs
    See this doc.. You need to add MicrosoftTranslator  Connection.. then try.. it's working fine..

    AsanKani_0-1614048638878.png

     


    Did this post solve your problem? Please click Accept as Solution so that others may find it more quickly.
    If you liked my response, please give it a Thumbs Up.


  • Verified answer
    v-albai-msft Profile Picture
    on 23 Feb 2021 at 02:19:47
    Re: Text to Speech conversion in PowerApps

    Hi @TheOpeningBat ,

    To use the Microsoft Translator Connector, you need to make sure if your account has Azure subscription, since this is the service from Azure.

    Besides, Subscription key is needed. When you shared your app to your end users, the Microsoft Translator connection would be shared to them automatically without providing additional credential to access this connector from your end users.

    (For test purpose, I also don’t add anything, and it works well(I have Azure subscription). If you want to share this app to your end users, you must add the key)

    To get the key, you can refer to this article.

    Best Regards,

    Allen

  • TheOpeningBat Profile Picture
    130 on 19 Feb 2021 at 07:34:10
    Re: Text to Speech conversion in PowerApps

    Hi @v-albai-msft,

     

    Thanks for your reply. I tried as you had mentioned, but still the same error.

    Also, is there any license required for using Microsoft Translator.

    Since when I added that, it asked for Subscription key but I didn't added anything & it got added.

  • v-albai-msft Profile Picture
    on 19 Feb 2021 at 05:44:53
    Re: Text to Speech conversion in PowerApps

    Hi @TheOpeningBat ,

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:

    v-albai-msft_0-1613713434419.png

    Set the Media property of the Audio control to following:

    MicrosoftTranslator.TextToSpeech("Today is 0219", "en", {format:"audio/mp3"})

    Note: I would suggest you add the format parameter in your formula since the output of TextToSpeech was default WAV format which doesn’t support on IE, and mp3 format to support in IE.

    On your side, I would suggest you re-add a new connection to Microsoft Translator Connector, then try your formula again, check if the issue is solved.

    Best Regards,

    Allen

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete