.Ensure compatibility with multiple frameworks, including.NET 6.0,. Web Structure 4.6.2, and.NET Specification 2.0 as well as above.Decrease reliances to prevent model disputes and also the need for tiing redirects.Recording Sound Information.Some of the major performances of the SDK is actually audio transcription. Creators may transcribe audio documents asynchronously or in real-time. Below is actually an example of just how to translate an audio file:.making use of AssemblyAI.making use of AssemblyAI.Transcripts.var customer = new AssemblyAIClient(" YOUR_API_KEY").var records = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For neighborhood documents, similar code could be utilized to obtain transcription.wait for utilizing var stream = brand-new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK additionally supports real-time audio transcription utilizing Streaming Speech-to-Text. This function is actually particularly useful for applications needing immediate handling of audio data.utilizing AssemblyAI.Realtime.await making use of var transcriber = brand-new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Ultimate: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for acquiring audio coming from a mic for instance.GetAudio( async (chunk) => await transcriber.SendAudioAsync( part)).wait for transcriber.CloseAsync().Using LeMUR for LLM Apps.The SDK incorporates with LeMUR to make it possible for programmers to build sizable language version (LLM) applications on voice records. Here is an example:.var lemurTaskParams = brand new LemurTaskParams.Urge="Deliver a short rundown of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var action = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Versions.Furthermore, the SDK includes built-in support for audio knowledge versions, making it possible for view evaluation and other sophisticated functions.var records = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = accurate. ).foreach (var cause transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// BENEFICIAL, NEUTRAL, or even downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To find out more, check out the official AssemblyAI blog.Image resource: Shutterstock.