Parse speech output to a JSON to call Application API

后端 未结 2 1137
长发绾君心
长发绾君心 2021-01-21 12:54

Here is an idea:

We have web applications with exposed restful APIs which accepts json. Now how about using google speech APIs to take user voice input convert it to tex

2条回答
  •  温柔的废话
    2021-01-21 13:20

    This is called "intent analysis". There are such libraries, for example RASA

    For example you input is "show me chinese restaurants". The output would be

    {
      "text": "show me chinese restaurants",
      "intent": "restaurant_search",
      "entities": [
        {
          "start": 8,
          "end": 15,
          "value": "chinese",
          "entity": "cuisine"
        }
      ]
    }
    

    Overall it is pretty advanced NLU.

提交回复
热议问题