.Ensure being compatible with various structures, including.NET 6.0,. Internet Structure 4.6.2, and.NET Criterion 2.0 and also above.Decrease reliances to stop model problems as well as the requirement for binding redirects.Transcribing Sound Information.Among the key capabilities of the SDK is actually audio transcription. Creators may record audio reports asynchronously or in real-time. Below is actually an example of just how to record an audio documents:.using AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = 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 files, comparable code may be used to attain transcription.await making use of 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 additionally sustains real-time sound transcription utilizing Streaming Speech-to-Text. This component is actually especially helpful for applications requiring immediate processing of audio information.making use of AssemblyAI.Realtime.wait for making use of var transcriber = 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($" Final: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for acquiring sound coming from a microphone as an example.GetAudio( async (portion) => await transcriber.SendAudioAsync( chunk)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Apps.The SDK includes along with LeMUR to enable creators to build sizable language model (LLM) applications on vocal records. Listed below is an instance:.var lemurTaskParams = new LemurTaskParams.Prompt="Offer a short review of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Cleverness Designs.Furthermore, the SDK features built-in support for audio intelligence designs, allowing view evaluation and also other state-of-the-art functions.var transcript = await client.Transcripts.TranscribeAsync( 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 ").To find out more, go to the main AssemblyAI blog.Image source: Shutterstock.