Have the specifications of the Speech Translator changed?

Shinji Chiba 11 Reputation points
2022-04-12T03:51:15.233+00:00

Hi, I use Azure cognitive speech translator. How should we get the string before it's translated?

Until the other day, the text of the recognized language (the language before translation) was stored in the e.Result->Text. But I tried it today with same code, this buffer no longer contained characters. Have the specifications of the Speech Translator changed?

void SpeechTranslation( AzureCognitiveSpeech* pAzureCognitiveSpeech )
{
TranslationRecognizer->Recognizing.Connect( [&pAzureCognitiveSpeech]( const TranslationRecognitionEventArgs& e )
{
// e.Result->Text will contain a string of recognized language
OutputDebugString( e.Result->Text.c_str() );

    for( const auto& it : e.Result->Translations )
    {
        // e.Result->Text will contain a string of translated language
        OutputDebugString( it.second->Text.c_str() );
    }
});

...

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,069 questions
Azure AI Translator
Azure AI Translator
An Azure service to easily conduct machine translation with a simple REST API call.
485 questions
{count} votes

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.