.Make certain being compatible with multiple platforms, including.NET 6.0,. NET Structure 4.6.2, and.NET Requirement 2.0 as well as above.Reduce addictions to prevent variation problems and the demand for tiing redirects.Translating Audio Record.One of the main functionalities of the SDK is actually audio transcription. Designers may translate audio data asynchronously or in real-time. Below is actually an instance of how to transcribe an audio data:.utilizing AssemblyAI.using AssemblyAI.Transcripts.var client = 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, similar code may be utilized to attain transcription.await using var flow = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = await client.Transcripts.TranscribeAsync(.flow,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise sustains real-time audio transcription making use of Streaming Speech-to-Text. This component is actually especially helpful for treatments demanding urgent handling of audio records.utilizing AssemblyAI.Realtime.await using var transcriber = brand-new RealtimeTranscriber( 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 getting sound coming from a microphone for example.GetAudio( async (portion) => wait for transcriber.SendAudioAsync( chunk)).wait for transcriber.CloseAsync().Making Use Of LeMUR for LLM Apps.The SDK incorporates with LeMUR to enable designers to construct large foreign language design (LLM) functions on vocal records. Here is an instance:.var lemurTaskParams = brand new LemurTaskParams.Trigger="Offer a quick summary of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intelligence Designs.Also, the SDK includes built-in help for audio cleverness styles, enabling sentiment evaluation as well as various other sophisticated components.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)// GOOD, NEUTRAL, or even NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more information, visit the main AssemblyAI blog.Image source: Shutterstock.