.Guarantee compatibility along with multiple frameworks, including.NET 6.0,. Internet Framework 4.6.2, and.NET Specification 2.0 and also above.Lessen dependences to prevent version problems as well as the requirement for binding redirects.Translating Audio Record.Among the major capabilities of the SDK is actually audio transcription. Developers may translate audio documents asynchronously or in real-time. Below is an example of just how to translate an audio documents:.making use of AssemblyAI.making use of AssemblyAI.Transcripts.var client = brand-new AssemblyAIClient(" YOUR_API_KEY").var transcript = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For nearby data, comparable code may be utilized to achieve transcription.await making use of var flow = new FileStream("./ nbc.mp3", FileMode.Open).var records = wait for client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK additionally holds real-time audio transcription using Streaming Speech-to-Text. This function is specifically beneficial for applications requiring quick processing of audio records.making use of AssemblyAI.Realtime.await utilizing var transcriber = brand-new RealtimeTranscriber( brand new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Final: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for receiving sound coming from a microphone for example.GetAudio( async (piece) => wait for transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Functions.The SDK integrates with LeMUR to allow programmers to construct big language version (LLM) apps on voice information. Listed below is an instance:.var lemurTaskParams = new LemurTaskParams.Prompt="Deliver a short rundown of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Cleverness Designs.Also, the SDK features built-in help for audio intellect models, permitting belief analysis and also various other innovative components.var transcript = await client.Transcripts.TranscribeAsync( 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)// GOOD, NEUTRAL, or downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For additional information, visit the main AssemblyAI blog.Image resource: Shutterstock.