Azure speech to text. Is it possible to replace some phrases with another?

Diakulych Mykola 20 Reputation points
2023-08-25T09:04:12.8433333+00:00

Hi there,

I am trying to enhance speech to text translation with PhraseListGrammar so it gives me preferred variant of phrases like e.g in de-DE instead of dreieinhalb Stunden to be recognized as 3:30 Stunden, or circa to be recognized as ca instead. I've tried detailed output, ITN version of it, to be precise, however it has identical output.

Is there any other, inbuilt, way then actually search through resulted text for phrases and replace it with preferred once?
Thank you in advance for the support.

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
522 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,629 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,911 Reputation points Microsoft Employee Moderator
    2023-08-25T14:04:18.8833333+00:00

    @Diakulych Mykola Phraselist provides a way to enhance the recognition accuracy, in this case are you trying to replace words of recognized text in the output? If that is the case, I think you would need to use custom speech model as phraselist can help in recognition of words that could be misinterpreted from speech. As in the example below from documentation:

    For example, let's say that you want the Speech service to recognize this sentence: "Hi Rehaan, this is Jessie from Contoso bank. " After testing, you might find that it's incorrectly recognized as: "Hi everyone, this is Jesse from can't do so bank." In this case you would want to add "Rehaan", "Jessie", and "Contoso" to your phrase list. Then the names should be recognized correctly.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    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.