.Make sure compatibility with multiple platforms, including.NET 6.0,. NET Structure 4.6.2, and.NET Standard 2.0 as well as above.Minimize addictions to stop model problems and the need for tiing redirects.Recording Audio Data.One of the key functionalities of the SDK is audio transcription. Designers can record audio reports asynchronously or in real-time. Below is an example of just how to transcribe an audio data:.using AssemblyAI.utilizing AssemblyAI.Transcripts.var client = 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, similar code may be utilized to accomplish transcription.await using var stream = 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 supports real-time sound transcription utilizing Streaming Speech-to-Text. This component is actually specifically valuable for requests requiring immediate processing of audio information.making use of AssemblyAI.Realtime.await using var transcriber = brand-new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for obtaining audio from a mic for example.GetAudio( async (piece) => await transcriber.SendAudioAsync( part)).wait for transcriber.CloseAsync().Utilizing LeMUR for LLM Apps.The SDK incorporates with LeMUR to allow developers to create big language style (LLM) applications on voice records. Listed below is an instance:.var lemurTaskParams = brand-new LemurTaskParams.Prompt="Give a short rundown of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intelligence Models.Additionally, the SDK comes with integrated assistance for audio intelligence versions, allowing feeling evaluation and also various other sophisticated functions.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)// GOOD, NEUTRAL, or NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more details, explore the official AssemblyAI blog.Image source: Shutterstock.