Improving TTS latency

tges 26 Reputation points
2021-10-22T11:25:04.607+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 to use. any tips on how to lower the latency?

Thanks!

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

2 answers

Sort by: Most helpful
  1. GiftA-MSFT 11,176 Reputation points
    2021-10-22T20:45:41.113+00:00

    Hi, please review this document on best practices to lower speech synthesis latency.


    --- *Kindly Accept Answer if the information helps. Thanks.*

    1 person found this answer helpful.

  2. tges 26 Reputation points
    2021-10-24T18:29:12.867+00:00

    I'm trying to do the "Pre-connect" method, but the Connection.fromSpeechSynthesizer method does not exist.

    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.

    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.