.Guarantee compatibility with multiple structures, including.NET 6.0,. Internet Platform 4.6.2, and.NET Specification 2.0 and also above.Minimize dependencies to prevent model disagreements as well as the need for binding redirects.Transcribing Audio Data.One of the key capabilities of the SDK is actually audio transcription. Creators may record audio files asynchronously or in real-time. Below is actually an instance of how to transcribe an audio data:.using AssemblyAI.utilizing AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var transcript = wait for 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, similar code can be utilized to accomplish transcription.wait for utilizing 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 additionally reinforces real-time sound transcription utilizing Streaming Speech-to-Text. This attribute is actually particularly valuable for treatments requiring quick handling of audio data.making use of AssemblyAI.Realtime.wait for 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 "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring sound from a microphone for example.GetAudio( async (chunk) => await transcriber.SendAudioAsync( chunk)).wait for transcriber.CloseAsync().Making Use Of LeMUR for LLM Functions.The SDK combines with LeMUR to allow developers to build large language version (LLM) functions on voice data. Listed here is actually an instance:.var lemurTaskParams = brand-new LemurTaskParams.Cue="Supply a brief summary of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var reaction = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intelligence Versions.Furthermore, the SDK features built-in assistance for audio intellect versions, permitting belief review as well as other state-of-the-art components.var transcript = wait for client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = accurate. ).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, visit the main AssemblyAI blog.Image resource: Shutterstock.