Is Speech to Text (Azure Cognitive Services) supported for WebGL Builds in Unity?

ignacio llacay 1 Reputation point
2022-09-26T11:54:15.743+00:00

Hi, I making a game in Unity using Azure Speech To Text SDK (C#).
I have been able to build for mobile and standalones platforms, but I am encountering errors when trying to build for WebGL.
Is Unity WebGL supported by the SDK? Or is there a way to support it outside the SDK available in GitHub?

Building fails due to a missing assembly reference for Microsoft namespace.
Screen shot with console

244766-image.png

Target environment for WebGL is missing in the Speech SDK Documentation. Does it mean Azure Speech To Text can´t work in Web Build?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,340 questions
{count} votes

3 answers

Sort by: Most helpful
  1. YutongTie-MSFT 53,971 Reputation points Moderator
    2022-09-26T23:04:04.167+00:00

    Hello @ignacio llacay

    Thanks for using Microsoft Q&A platform again. I just checked internally and confirmed with product team - Currently Speech SDK unitypackage do not contain plugin for WebGL. I am sorry for that, product team is working on this feature but we don't have any exact date at this moment.

    It might be possible to create Unity plugin for WebGL based on Speech SDK JavaScript SDK since Unity WebGL plugins are implemented using JavaScript and Speech SDK does support JS (Install the Speech SDK - Azure Cognitive Services | Microsoft Learn), however to support Unity JS plugin would require changes to current Unity package and that is work we have not planned yet.

    I am sorry for all inconveniences and I hope this information helps.

    Regards,
    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    1 person found this answer helpful.

  2. Hamza Obaid (MiddleEast) 5 Reputation points
    2023-03-15T10:35:04.4733333+00:00

    Hello @YutongTie-MSFT ,

    is there any update regarding the WebGL support?

    regards,
    Hamza

    1 person found this answer helpful.
    0 comments No comments

  3. George 5 Reputation points
    2023-07-11T18:12:07.16+00:00

    Microsoft keeps dissapointing me.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.