Cannot Connect Locally to when using Microsoft.CognitiveServices.Speech

Michael Lanctot 0 Reputation points
2025-01-03T20:09:00.52+00:00

Hello Everyone,

I am trying to build a method that detects the language of the audio I provide it. My application translates audio but since we batch transcribe and also use a custom model, I cannot use languageIdentification. Therefore, I am trying to detect the language of the audio prior to sending it for transcription so I can give the locale dynamically.

I installed Microsoft.CognitiveServices.Speech via Microsoft Visual Studio (most recent stable build). We utilize Azure Blob services for this project and pull in wav files and convert them to memory streams in the app. I am trying to take these memory streams of audio and pass it to the SDK to detect its language. Here is my method:

    public async Task
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,840 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,168 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.