How to use xamarin.essentials speech in where google is blocked?

mc 3,701 Reputation points
2021-03-29T01:16:16.6+00:00

In xamarin.forms I can not use speechText .

I am blocked to google and can not open google how to use speechText?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
    2021-03-29T08:21:46.193+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    TextToSpeech class enables an application to utilize the built-in text-to-speech engines to speak back text from the device.

    If you do not use the Google play services, it will use built-in text-to-speech engines to speak it, I test with Huawei android device with await TextToSpeech.SpeakAsync("Hello World"); it worked as normal.

    If you device is not support this function, you will get Unable to start text-to-speech engine, not supported on device. PlatformNotSupportedException, here is TextToSpeech's source code.

    https://github.com/xamarin/Essentials/blob/main/Xamarin.Essentials/TextToSpeech/TextToSpeech.android.cs

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful