.Guarantee compatibility along with various structures, including.NET 6.0,. Internet Framework 4.6.2, and.NET Standard 2.0 and also above.Lessen addictions to avoid variation disputes and also the requirement for binding redirects.Translating Audio Info.One of the major performances of the SDK is actually audio transcription. Developers can easily transcribe audio files asynchronously or even in real-time. Below is actually an instance 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 area data, similar code may be utilized to achieve transcription.await making use of var stream = new FileStream("./ nbc.mp3", FileMode.Open).var records = wait for client.Transcripts.TranscribeAsync(.flow,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK likewise reinforces real-time audio transcription making use of Streaming Speech-to-Text. This feature is actually specifically helpful for applications calling for immediate processing of audio data.utilizing AssemblyAI.Realtime.await 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( records =>Console.WriteLine($" Last: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for getting audio from a microphone for instance.GetAudio( async (piece) => wait for transcriber.SendAudioAsync( portion)).wait for transcriber.CloseAsync().Using LeMUR for LLM Applications.The SDK integrates along with LeMUR to enable designers to develop huge foreign language version (LLM) applications on vocal records. Listed below is actually an example:.var lemurTaskParams = brand-new LemurTaskParams.Cue="Provide a short conclusion of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Versions.Also, the SDK comes with built-in help for audio intelligence designs, allowing conviction evaluation and also various other advanced attributes.var transcript = 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 NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For additional information, go to the main AssemblyAI blog.Image source: Shutterstock.