How to train Custom Speech-To-Text Model to recognize a word and capitalize the first letter of the phrase.

arvind prajapati 5 Reputation points
2023-01-19T15:09:37.89+00:00

Hi, I have created a custom speech-to-text model that recognizes a phrase. It's recognizing it perfectly, but I want the resulting text in capitalized form. For E.g. the phrase is "Terminator" and the resulting text is "terminator" but I want the resulting text as "Terminator". The "T" of "terminator" should be a capital letter.
How should I train the model for it? I can do it manually by replacing the string, but I want to do it in a systematic way.

Thank you.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,391 questions
{count} votes

1 answer

Sort by: Most helpful
  1. arvind prajapati 5 Reputation points
    2023-02-04T23:06:13.8766667+00:00

    @VasaviLankipalle-MSFT Sorry, for the late response. I was on leave these days. I went through @romungi-MSFT 's comment and found that the "NBest" property of Speech Recognition Result is not available in Golang SDK, so I can't access the "NBest" property. So I have to manipulate the data manually.

    Update: I just found that how can I get the "NBest" property from the result. The detailed output doesn't comes directly in The Result struct in Golang. It comes when the output format is Detailed and RequestWordLevelTimestamps() is called from the speech config variable.

    speechRecognizer.Recognized(func(event speech.SpeechRecognitionEventArgs) {
         detailedOutput := event.Result.Properties.GetProperty(common.SpeechServiceResponseJSONResult, "")
    })
    
    
    

    Thanks for the help.

    0 comments No comments