.Guarantee being compatible along with multiple platforms, including.NET 6.0,. NET Framework 4.6.2, and.NET Standard 2.0 as well as above.Decrease reliances to stop version disputes as well as the necessity for tiing redirects.Recording Audio Files.One of the main functionalities of the SDK is actually audio transcription. Programmers can translate audio files asynchronously or in real-time. Below is an example of just how to record an audio documents:.utilizing AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = brand-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 local files, identical code may be made use of to accomplish transcription.wait for utilizing var flow = brand new FileStream("./ nbc.mp3", FileMode.Open).var transcript = await client.Transcripts.TranscribeAsync(.stream,.brand new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK also reinforces real-time audio transcription utilizing Streaming Speech-to-Text. This attribute is actually especially helpful for applications requiring quick handling of audio records.using AssemblyAI.Realtime.await making use of var transcriber = brand new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Last: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for getting audio coming from a microphone for instance.GetAudio( async (part) => wait for transcriber.SendAudioAsync( chunk)).await transcriber.CloseAsync().Making Use Of LeMUR for LLM Functions.The SDK includes along with LeMUR to allow designers to develop big language version (LLM) applications on voice data. Here is an instance:.var lemurTaskParams = brand-new LemurTaskParams.Trigger="Give a brief rundown of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Intelligence Versions.Additionally, the SDK includes integrated help for audio intelligence styles, making it possible for sentiment analysis and also various other sophisticated features.var records = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var result in 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 ").For additional information, go to the formal AssemblyAI blog.Image source: Shutterstock.