.Ensure compatibility along with a number of structures, including.NET 6.0,. NET Structure 4.6.2, and.NET Criterion 2.0 and above.Minimize dependencies to stop model disputes and the need for tiing redirects.Recording Audio Files.Among the major capabilities of the SDK is audio transcription. Creators can record audio documents asynchronously or in real-time. Below is actually an example of just how to transcribe an audio file:.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 nearby data, similar code can be utilized to obtain transcription.await using var flow = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise holds real-time audio transcription utilizing Streaming Speech-to-Text. This function is especially useful for requests calling for immediate processing of audio information.utilizing AssemblyAI.Realtime.wait for using var transcriber = new RealtimeTranscriber( brand new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for receiving audio from a mic as an example.GetAudio( async (part) => wait for transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Utilizing LeMUR for LLM Applications.The SDK incorporates with LeMUR to permit creators to construct huge foreign language version (LLM) applications on voice records. Here is an instance:.var lemurTaskParams = brand new LemurTaskParams.Cause="Offer a quick summary of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Knowledge Versions.In addition, the SDK features built-in support for audio intelligence styles, making it possible for feeling review as well as other advanced attributes.var transcript = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = real. ).foreach (var result in 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 find out more, see the main AssemblyAI blog.Image source: Shutterstock.