.Make certain compatibility with multiple frameworks, including.NET 6.0,. NET Framework 4.6.2, and.NET Specification 2.0 as well as above.Minimize dependences to prevent model disputes and also the demand for tiing redirects.Recording Audio Files.One of the key functions of the SDK is audio transcription. Programmers can record audio data asynchronously or in real-time. Below is an instance of exactly how to record an audio file:.using AssemblyAI.making use of AssemblyAI.Transcripts.var customer = 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 neighborhood documents, comparable code can be utilized to obtain transcription.await making use of var stream = brand-new FileStream("./ nbc.mp3", FileMode.Open).var records = 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 sustains real-time audio transcription making use of Streaming Speech-to-Text. This attribute is actually specifically practical for uses needing urgent handling of audio records.using AssemblyAI.Realtime.wait for using var scribe = 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 receiving audio from a microphone as an example.GetAudio( async (portion) => wait for transcriber.SendAudioAsync( chunk)).await transcriber.CloseAsync().Using LeMUR for LLM Applications.The SDK combines with LeMUR to permit developers to develop sizable foreign language version (LLM) functions on voice information. Listed here is actually an instance:.var lemurTaskParams = brand new LemurTaskParams.Cue="Give a short summary of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Cleverness Designs.Also, the SDK comes with integrated assistance for audio intellect styles, enabling view evaluation as well as other advanced features.var records = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var cause transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// POSITIVE, NEUTRAL, or NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To read more, see the formal AssemblyAI blog.Image source: Shutterstock.