.Make certain being compatible with several platforms, including.NET 6.0,. Web Platform 4.6.2, and.NET Standard 2.0 and also above.Lessen dependencies to prevent variation disagreements and also the necessity for binding redirects.Recording Audio Data.Some of the primary functionalities of the SDK is audio transcription. Creators can easily transcribe audio files asynchronously or in real-time. Below is an instance of exactly how to translate an audio file:.utilizing AssemblyAI.utilizing AssemblyAI.Transcripts.var client = 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 local files, comparable code may be made use of to attain transcription.await using var stream = brand-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 Sound Transcription.The SDK also holds real-time sound transcription utilizing Streaming Speech-to-Text. This attribute is specifically helpful for applications requiring instant processing of audio information.using AssemblyAI.Realtime.wait for using var transcriber = 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( transcript =>Console.WriteLine($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring audio coming from a microphone as an example.GetAudio( async (part) => await transcriber.SendAudioAsync( chunk)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Applications.The SDK includes with LeMUR to allow creators to build big language style (LLM) apps on voice information. Listed below is an example:.var lemurTaskParams = brand-new LemurTaskParams.Trigger="Supply a brief summary of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intellect Styles.Additionally, the SDK features built-in support for audio intellect styles, allowing conviction review and also other innovative attributes.var transcript = wait for client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = true. ).foreach (var cause transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// POSITIVE, NEUTRAL, or even downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To learn more, go to the main AssemblyAI blog.Image resource: Shutterstock.