Microsoft.CognitiveSerivces.Speech Sdk recognizes silence every 15 seconds with SpeechContinousRecognizeAsync and billed for that.

Dhilip Swaminathan 0 Reputation points
2023-05-19T08:44:07.4533333+00:00

I have intergrated Microsoft.CognitiveSerivces.Speech sdk with my .Net Windows Service appication. I have integrated Cognitive Service to listen to audio input for any voice commands using SpeechContinuousRecognitionAsync. When there is voice command, Cognitive Service recognizes and converts the speech to text.. I am good with that.

But every 15 seconds... the Recognized event is hit with Empty result text. And due to this the billing goes up every month.

We are supposed to be billed only if a voice is recognized.

Any help would be appreciated.

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

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,911 Reputation points Microsoft Employee Moderator
    2023-05-19T14:32:55.68+00:00

    @Dhilip Swaminathan If you are running continuous recognition the first 15 seconds is the approximate timeout limit if there is no utterance detected. This is also documented here for reference. There is also a thread that details on how the timeout are set at SDK level, this might be helpful to app developers to change it accordingly.

    With respect to the billing, the billing is based on audio that is processed with per second billing. It is not based on detection of voice in your input. Please see the pricing page for the billing criteria.

    User's image

    If you are running continuous recognition and do not have any utterance the 15 seconds of audio will count as processed audio.

    Based on your scenario, instead of using continuous recognition to listen to input, consider using keyword recognition. Once a key word is detected use the audio after the keyword to convert to text and process it further based on the input. See this QuickStart on creating a keyword and the sample at the end of the page to use the same to save as audio. I hope this helps!!

    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.