.Ensure compatibility along with various structures, including.NET 6.0,. Internet Platform 4.6.2, and.NET Criterion 2.0 as well as above.Lessen addictions to stop variation disputes as well as the requirement for binding redirects.Transcribing Sound Files.Some of the main capabilities of the SDK is audio transcription. Designers can record audio reports asynchronously or even in real-time. Below is actually an example of just how to record an audio report:.making use of AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = brand-new AssemblyAIClient(" YOUR_API_KEY").var transcript = 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 data, comparable code can be used to attain transcription.await 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 Audio Transcription.The SDK also supports real-time sound transcription utilizing Streaming Speech-to-Text. This attribute is actually specifically valuable for applications calling for instant handling of audio data.utilizing AssemblyAI.Realtime.wait for making use of var transcriber = brand-new RealtimeTranscriber( brand-new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for obtaining sound coming from a microphone as an example.GetAudio( async (part) => await transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Making Use Of LeMUR for LLM Functions.The SDK integrates along with LeMUR to allow designers to construct big language style (LLM) functions on voice data. Right here is actually an instance:.var lemurTaskParams = brand-new LemurTaskParams.Cause="Deliver a quick recap of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var action = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Knowledge Versions.Also, the SDK comes with built-in help for audio cleverness styles, enabling sentiment analysis and also various other innovative functions.var transcript = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = real. ).foreach (var cause 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 more information, see the official AssemblyAI blog.Image source: Shutterstock.