.Guarantee being compatible with multiple frameworks, including.NET 6.0,. NET Framework 4.6.2, and.NET Criterion 2.0 as well as above.Decrease addictions to prevent model conflicts as well as the demand for binding redirects.Translating Sound Files.One of the major performances of the SDK is actually audio transcription. Designers may transcribe audio data asynchronously or in real-time. Below is an example of exactly how to transcribe an audio data:.using AssemblyAI.using AssemblyAI.Transcripts.var customer = brand-new AssemblyAIClient(" YOUR_API_KEY").var transcript = wait for client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For local files, identical code could be utilized to attain transcription.await making use of var stream = brand new FileStream("./ nbc.mp3", FileMode.Open).var records = wait for client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK likewise supports real-time sound transcription utilizing Streaming Speech-to-Text. This feature is particularly useful for treatments requiring quick processing of audio records.utilizing AssemblyAI.Realtime.wait for utilizing var scribe = new RealtimeTranscriber( brand new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Ultimate: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for obtaining sound from a mic as an example.GetAudio( async (part) => await transcriber.SendAudioAsync( part)).wait for transcriber.CloseAsync().Utilizing LeMUR for LLM Apps.The SDK incorporates along with LeMUR to permit programmers to construct large foreign language style (LLM) apps on voice records. Listed here is actually an instance:.var lemurTaskParams = new LemurTaskParams.Cue="Provide a short rundown of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var reaction = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Cleverness Models.Furthermore, the SDK comes with built-in help for audio knowledge designs, making it possible for belief study as well as various other enhanced attributes.var records = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var result in transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// FAVORABLE, NEUTRAL, or downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more details, explore the official AssemblyAI blog.Image resource: Shutterstock.