.Make sure compatibility along with a number of frameworks, including.NET 6.0,. NET Framework 4.6.2, and.NET Requirement 2.0 as well as above.Lessen dependencies to avoid model disputes and the demand for binding redirects.Transcribing Audio Record.One of the primary performances of the SDK is audio transcription. Programmers may record audio files asynchronously or in real-time. Below is actually an example of how to transcribe an audio documents:.using AssemblyAI.utilizing AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var records = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For regional files, similar code can be made use of to obtain transcription.await using var flow = brand new FileStream("./ nbc.mp3", FileMode.Open).var records = await client.Transcripts.TranscribeAsync(.flow,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise reinforces real-time sound transcription making use of Streaming Speech-to-Text. This component is specifically valuable for applications demanding immediate processing of audio records.making use of AssemblyAI.Realtime.await making use of var transcriber = new RealtimeTranscriber( brand-new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for obtaining audio from a mic for instance.GetAudio( async (portion) => wait for transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Using LeMUR for LLM Applications.The SDK incorporates along with LeMUR to allow developers to construct huge language style (LLM) applications on vocal information. Below is actually an example:.var lemurTaskParams = brand-new LemurTaskParams.Motivate="Provide a brief conclusion of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Intelligence Designs.In addition, the SDK possesses built-in assistance for audio intelligence designs, permitting belief study as well as various other state-of-the-art attributes.var transcript = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = real. ).foreach (var result in transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// BENEFICIAL, NEUTRAL, or even NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To read more, explore the official AssemblyAI blog.Image resource: Shutterstock.