Improving TTS Latency

tges 26 Reputation points
2021-12-12T20:08:00.153+00:00

Hi,

I'm using Azure TTS in my Android application. I use 2 objects in my implementation which are SpeechConfig and SpeechSynthesizer.
My app is mainly based on a dynamic TTS (e.g. reading input back to the user, which happens very often) but the latency is very bad, which makes my app annoying and impossible to use. any tips on how to lower the latency?

I've tried using a different region but that did not help.

I'm trying to do the "Pre-connect" method as mentioned in the docs, but the Connection.fromSpeechSynthesizer method does not exist for Java.

Also when I tried to use different compress methods (e.g. speechConfig.setSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat.Raw8Khz16BitMonoPcm)) the speech synthesizer just didn't speak at all.

Any idea how to solve it? I also used speechConfig.setProperty("OPENSSL_CONTINUE_ON_CRL_DOWNLOAD_FAILURE", "true"); speechConfig.setProperty("OPENSSL_DISABLE_CRL_CHECK", "true"); but it didn't make much of a difference.

Thanks!

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,713 questions
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
408 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 51,696 Reputation points
    2021-12-13T17:45:59.427+00:00

    Hi,

    Thanks for reaching out to us. I think you are mentioning this guidance: https://video2.skills-academy.com/en-us/azure/cognitive-services/speech-service/how-to-lower-speech-synthesis-latency?pivots=programming-language-java

    Could you please let me know which region you are in and how long is your latency? I am trying to reproduce your issue.

    Regards,
    Yutong


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.