.Make certain being compatible with various structures, including.NET 6.0,. Web Framework 4.6.2, and.NET Standard 2.0 and above.Reduce dependences to stop model disputes as well as the need for binding redirects.Translating Sound Record.One of the major performances of the SDK is actually audio transcription. Creators can easily record audio reports asynchronously or even in real-time. Below is an example of just how to record an audio data:.utilizing 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 regional reports, comparable code can be made use of to attain transcription.await utilizing var stream = brand new FileStream("./ nbc.mp3", FileMode.Open).var transcript = await client.Transcripts.TranscribeAsync(.flow,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK additionally sustains real-time audio transcription making use of Streaming Speech-to-Text. This feature is actually specifically helpful for treatments requiring prompt handling of audio records.making use of AssemblyAI.Realtime.await making use of var transcriber = brand-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($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for getting sound from a microphone as an example.GetAudio( async (piece) => wait for transcriber.SendAudioAsync( part)).await transcriber.CloseAsync().Utilizing LeMUR for LLM Functions.The SDK integrates with LeMUR to permit creators to build big foreign language style (LLM) apps on vocal data. Here is actually an instance:.var lemurTaskParams = brand new LemurTaskParams.Trigger="Offer a brief summary of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Cleverness Designs.In addition, the SDK features integrated support for audio intellect styles, enabling belief evaluation and various other innovative attributes.var transcript = wait for client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = real. ).foreach (var lead to transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// BENEFICIAL, NEUTRAL, or even NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To find out more, see the official AssemblyAI blog.Image source: Shutterstock.