.Ensure being compatible along with numerous frameworks, including.NET 6.0,. Web Framework 4.6.2, and.NET Criterion 2.0 and above.Lessen reliances to prevent version problems as well as the need for binding redirects.Translating Sound Record.Among the key functions of the SDK is actually audio transcription. Programmers can easily transcribe audio data asynchronously or even in real-time. Below is actually an instance of just how to transcribe an audio documents:.making use of AssemblyAI.making use of AssemblyAI.Transcripts.var client = 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 neighborhood data, identical code could be made use of to attain transcription.await utilizing var stream = brand-new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK likewise reinforces real-time audio transcription utilizing Streaming Speech-to-Text. This component is actually especially helpful for uses requiring prompt processing of audio records.utilizing AssemblyAI.Realtime.wait for utilizing 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( transcript =>Console.WriteLine($" Ultimate: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for receiving audio from a microphone for instance.GetAudio( async (part) => wait for transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Using LeMUR for LLM Applications.The SDK incorporates with LeMUR to enable designers to develop big foreign language design (LLM) applications on voice information. Below is an example:.var lemurTaskParams = new LemurTaskParams.Cause="Offer a brief rundown of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var action = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Cleverness Styles.Additionally, the SDK features integrated support for audio cleverness styles, allowing feeling analysis and other state-of-the-art attributes.var transcript = wait for client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = true. ).foreach (var result in 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 information, see the main AssemblyAI blog.Image resource: Shutterstock.