.Guarantee compatibility with numerous platforms, including.NET 6.0,. Web Framework 4.6.2, and.NET Specification 2.0 and also above.Reduce dependences to prevent model disagreements and the requirement for tiing redirects.Recording Sound Information.Among the major performances of the SDK is actually audio transcription. Developers can easily transcribe audio documents asynchronously or even in real-time. Below is an instance of exactly how to record an audio file:.using AssemblyAI.using AssemblyAI.Transcripts.var customer = brand-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 nearby files, identical code may be used to obtain transcription.wait for using var flow = 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 Audio Transcription.The SDK also holds real-time audio transcription using Streaming Speech-to-Text. This attribute is particularly practical for requests needing quick handling of audio information.making use of AssemblyAI.Realtime.await making use of var scribe = brand 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($" Ultimate: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for obtaining audio coming from a mic for instance.GetAudio( async (piece) => await transcriber.SendAudioAsync( chunk)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Applications.The SDK combines with LeMUR to permit designers to develop huge language version (LLM) apps on vocal records. Listed here is an example:.var lemurTaskParams = brand new LemurTaskParams.Trigger="Offer a quick conclusion 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 Versions.In addition, the SDK features integrated support for audio intelligence versions, permitting feeling evaluation and also other sophisticated features.var transcript = await client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = accurate. ).foreach (var cause 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 ").To find out more, explore the main AssemblyAI blog.Image resource: Shutterstock.