.Guarantee compatibility along with numerous platforms, including.NET 6.0,. Web Framework 4.6.2, and.NET Requirement 2.0 as well as above.Lessen dependences to prevent version disagreements as well as the need for binding redirects.Transcribing Sound Information.Among the major performances of the SDK is audio transcription. Developers can transcribe audio documents asynchronously or in real-time. Below is an instance of how to record an audio file:.making use of AssemblyAI.utilizing AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var records = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For nearby files, identical code could be made use of to obtain transcription.wait for utilizing var stream = new FileStream("./ nbc.mp3", FileMode.Open).var records = wait for client.Transcripts.TranscribeAsync(.stream,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK also supports real-time audio transcription using Streaming Speech-to-Text. This component is actually especially useful for applications calling for urgent handling of audio records.making use of AssemblyAI.Realtime.await using var transcriber = brand new RealtimeTranscriber( brand new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Ultimate: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for getting audio from a mic for example.GetAudio( async (portion) => wait for transcriber.SendAudioAsync( part)).await transcriber.CloseAsync().Making Use Of LeMUR for LLM Functions.The SDK incorporates with LeMUR to enable designers to create sizable foreign language version (LLM) functions on voice information. Here is an example:.var lemurTaskParams = new LemurTaskParams.Trigger="Supply a short review of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intelligence Designs.Furthermore, the SDK features integrated help for audio cleverness versions, permitting view evaluation and other sophisticated attributes.var transcript = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = accurate. ).foreach (var lead to transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// BENEFICIAL, NEUTRAL, or NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more details, visit the official AssemblyAI blog.Image source: Shutterstock.