.Make certain compatibility with numerous platforms, including.NET 6.0,. NET Structure 4.6.2, and.NET Specification 2.0 and above.Decrease dependences to avoid version disagreements as well as the necessity for binding redirects.Translating Audio Info.Some of the major performances of the SDK is actually audio transcription. Developers can easily record audio documents asynchronously or in real-time. Below is an instance of just how to record an audio documents:.using AssemblyAI.using AssemblyAI.Transcripts.var customer = brand new AssemblyAIClient(" YOUR_API_KEY").var transcript = 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 reports, identical code can be made use of to attain transcription.wait for utilizing var flow = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.stream,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK additionally supports real-time audio transcription utilizing Streaming Speech-to-Text. This function is particularly beneficial for uses requiring instant processing of audio records.using AssemblyAI.Realtime.await making use of var transcriber = new RealtimeTranscriber( brand new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Last: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for getting audio coming from a microphone for instance.GetAudio( async (chunk) => await transcriber.SendAudioAsync( portion)).wait for transcriber.CloseAsync().Making Use Of LeMUR for LLM Applications.The SDK combines with LeMUR to enable creators to build huge language design (LLM) apps on voice information. Below is an instance:.var lemurTaskParams = brand-new LemurTaskParams.Trigger="Give a quick conclusion of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Cleverness Models.Also, the SDK features integrated help for audio cleverness designs, enabling conviction study as well as other innovative features.var transcript = await client.Transcripts.TranscribeAsync( 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 downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more details, check out the formal AssemblyAI blog.Image source: Shutterstock.