Azure TTS Speaker Separation Problem

JW J 25 Reputation points
2025-03-04T07:24:09.37+00:00

Hello, I followed the instructions at https://learn.microsoft.com/ko-kr/azure/ai-services/speech-service/get-started-stt-diarization?tabs=windows&pivots=programming-language-csharp, but I'm encountering an error. For reference, the subscription key and region being used are from my current paid subscription.User's image

If needed, I can provide the complete code with the subscription key and region string.

Please write the response in English.

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

Accepted answer
  1. Saideep Anchuri 4,110 Reputation points Microsoft External Staff
    2025-03-05T11:24:31.2733333+00:00

    Hi JW J

    I checked the script from yours against .mp3 and .wav files. Issue might be arising due to invalid audio channel configuration. It works against sample .wav files. Please check whether the audios are PCM, 16 bit sampled, mono-channel WAV format. You can convert them to respective format" ffmpeg -i test.mp3 -ac 1 -ar 16000 -sample_fmt s16 test.wav" You can test against sample audios to see the difference                            

    Kindly refer below link: code: 1007. Error details: Invalid audio channel configuration · Issue #2180 · Azure-Samples/cognitive-services-speech-sdk  

     Speech SDK audio input stream concepts - Azure AI services | Microsoft Learn

    Hope this helps. Do let us know if you any further queries.

     


    If this answers your query, do click Accept Answer and Yes for was this answer helpful.

    Thank You.


1 additional answer

Sort by: Most helpful
  1. PRIYADHARSHINI PARTHIBAN 0 Reputation points
    2025-03-04T08:40:02.5966667+00:00

    I am the python code in the above link. It always calls the "Cancelled Event". Its a paid subscription and audio is .wav file.

    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.