.Make sure compatibility with numerous platforms, including.NET 6.0,. Web Framework 4.6.2, and.NET Requirement 2.0 and above.Lessen dependencies to stop version conflicts and the demand for tiing redirects.Translating Sound Files.One of the key performances of the SDK is actually audio transcription. Programmers can easily translate audio data asynchronously or even in real-time. Below is an example of exactly how to record an audio file:.using AssemblyAI.making use of AssemblyAI.Transcripts.var customer = new AssemblyAIClient(" YOUR_API_KEY").var transcript = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For nearby data, similar code may be used to attain transcription.await using var flow = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.flow,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise supports real-time sound transcription making use of Streaming Speech-to-Text. This function is particularly helpful for applications demanding quick processing of audio records.using 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($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Ultimate: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for receiving audio from a mic for example.GetAudio( async (part) => wait for transcriber.SendAudioAsync( piece)).wait for transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Applications.The SDK integrates with LeMUR to make it possible for programmers to develop sizable foreign language version (LLM) functions on voice information. Below is actually an instance:.var lemurTaskParams = brand-new LemurTaskParams.Motivate="Give a short rundown of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var reaction = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intelligence Styles.Furthermore, the SDK possesses built-in support for audio cleverness designs, allowing conviction evaluation as well as other state-of-the-art attributes.var records = wait for client.Transcripts.TranscribeAsync( 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)// BENEFICIAL, NEUTRAL, or even NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To find out more, go to the formal AssemblyAI blog.Image resource: Shutterstock.