Share via

Real-time diarization with DefaultMicrophone Input

Rakesh Indla 5 Reputation points
2023-08-21T13:25:07.4266667+00:00

Hello,

I wanted to implement Real-time diarization with DefaultMicrophone as Input, Is that possible?

https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-stt-diarization?tabs=macos&pivots=programming-language-javascript

From above code,

I have added

  var audioConfig = SpeechSDK.AudioConfig.fromDefaultMicrophoneInput();

let conversationTranscriber = new sdk.ConversationTranscriber(speechConfig, audioConfig);

Note: Here ConversationTranscriber() supports 0 or 1 param only, but we are passing two params.

my subscription region is 'westus', will it support?

I'm quite bemused, Could you please share sample code to achieve in Java/typescript.

Azure OpenAI in Foundry Models
Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform


1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 18,741 Reputation points Moderator
    2023-08-22T00:43:37.77+00:00

    Hello @Rakesh Indla , I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: To implement Real-time diarization with default microphone as input using JavaScript

    Solution: Yes, this is possible. Add this piece of code to use microphone. Here is the code for reference: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-stt-diarization?tabs=macos&pivots=programming-language-javascript

      var audioConfig = SpeechSDK.AudioConfig.fromDefaultMicrophoneInput();
    

    Also check for the SDK installation guide for required version. https://learn.microsoft.com/en-us/azure/ai-services/speech-service/quickstarts/setup-platform?pivots=programming-language-javascript
    In this case after SDK update it worked successfully.

    Thank you again for your time and patience throughout this issue.

    Regards,
    Vasavi

    --Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.