speech-to-textazure-cognitive-servicesbing-speech

Microsoft Azure Cognitive Speech to Text - recognize dates


Can the Microsoft Cognitive Speech to Text service recognize dates and output the text in a formatted way? For example when input speech is, "date of birth is five fifteen sixty-four", that the text output shows, "date of birth is 5/15/64".

Thank you!


Solution

  • When you use Speech-To-Text functionality, you can get results in different formats for a sentence, for example here for a year (1932):

    date sample

    Here is the documentation about each format: https://learn.microsoft.com/fr-fr/azure/cognitive-services/speech-service/rest-apis#nbest

    If the output does not fit your needs, I would highly suggest to use a DateTime recognizer (which is used in other solutions like LUIS) from the text that has been generated in STT output. The sources are here and there are packages available depending on your programming language.