.Make sure compatibility with a number of platforms, including.NET 6.0,. NET Platform 4.6.2, and.NET Standard 2.0 and above.Lessen reliances to stop version conflicts and also the necessity for tiing redirects.Recording Sound Record.One of the major performances of the SDK is actually audio transcription. Programmers can translate audio reports asynchronously or in real-time. Below is an instance of just how to translate an audio file:.making use of AssemblyAI.making use of AssemblyAI.Transcripts.var customer = brand-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 local area documents, similar code can be made use of to attain transcription.await making use of var stream = brand new FileStream("./ nbc.mp3", FileMode.Open).var records = wait for client.Transcripts.TranscribeAsync(.flow,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK additionally reinforces real-time audio transcription making use of Streaming Speech-to-Text. This function is actually especially helpful for uses demanding urgent handling of audio records.making use of AssemblyAI.Realtime.await using var scribe = 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($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for receiving sound coming from a microphone for example.GetAudio( async (chunk) => await transcriber.SendAudioAsync( portion)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Apps.The SDK incorporates with LeMUR to make it possible for designers to build huge foreign language version (LLM) functions on voice information. Right here is actually an instance:.var lemurTaskParams = brand-new LemurTaskParams.Cue="Give a short rundown of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var reaction = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Versions.Also, the SDK comes with built-in support for audio knowledge models, permitting belief analysis and other sophisticated attributes.var records = await client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = true. ).foreach (var cause transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// FAVORABLE, NEUTRAL, or NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more details, visit the official AssemblyAI blog.Image resource: Shutterstock.