.Make certain compatibility with multiple frameworks, including.NET 6.0,. NET Platform 4.6.2, and.NET Requirement 2.0 and above.Reduce addictions to prevent variation disputes and also the necessity for tiing redirects.Recording Audio Data.One of the primary performances of the SDK is audio transcription. Developers can translate audio documents asynchronously or in real-time. Below is actually an example of exactly how to record an audio report:.utilizing AssemblyAI.utilizing AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var records = await client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For nearby reports, comparable code can be utilized to obtain transcription.wait for utilizing var flow = brand new FileStream("./ nbc.mp3", FileMode.Open).var records = await client.Transcripts.TranscribeAsync(.stream,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK likewise holds real-time audio transcription making use of Streaming Speech-to-Text. This feature is actually specifically helpful for uses requiring quick handling of audio data.utilizing AssemblyAI.Realtime.wait for making use of var scribe = new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for getting audio coming from a mic as an example.GetAudio( async (part) => await transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Utilizing LeMUR for LLM Apps.The SDK integrates with LeMUR to permit developers to construct large foreign language version (LLM) functions on voice data. Listed here is an instance:.var lemurTaskParams = brand new LemurTaskParams.Trigger="Provide a quick review of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Cleverness Versions.Furthermore, the SDK comes with built-in help for audio knowledge styles, permitting view study and also other advanced features.var records = await client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = accurate. ).foreach (var result in transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// FAVORABLE, NEUTRAL, or even NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For additional information, go to the official AssemblyAI blog.Image source: Shutterstock.