change target language after cratting the TranslationRecognizer

Sathish K 0 Reputation points
2023-01-13T09:51:50.8766667+00:00

is this possible to change addTargetLanguage SpeechTranslationConfig after the TranslationRecognizer is created ??

or add the traget language on run time

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

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,841 Reputation points Microsoft Employee
    2023-01-24T10:40:48.4633333+00:00

    @Sathish k You could remove the target language using the method RemoveTargetLanguage(String) and then call the method AddTargetLanguage(String). With Add method when speech synthesis is used and several target languages are specified for translation, the speech will be synthesized only for the first language. Does this work in your case?

    0 comments No comments